crossbind reads your C++ header and binds what it declares: no glue code and no binding file.
native.h declares two functions and native.cpp defines them. main.js imports them from the header like any module, and await initNative() loads the native code once.
Each call has an await: a browser app runs the module in a Web Worker by default, where every call returns a promise. On the playground's page thread the await changes nothing, so the same code runs in both.
Try it
Greet someone else and add two other numbers. A change below the imports of main.js runs at once; a change to the C++ or the imports compiles first.