This project supports building to WebAssembly (WASM) for running in the browser.
Before building, make sure you have the following installed:
CMake
Install from https://cmake.org/download/
Emscripten SDK (emsdk)
Follow these steps to install and activate Emscripten:
Important! Install this in its own folder, not inside nd100x !!
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh # For Linux/macOS
# On Windows: emsdk_env.bat
✅ This will install the Emscripten compiler and tools (like emcc, emcmake, etc.).
.wasm file into an existing HTML/JS project, you can load it manually via fetch() or let Emscripten’s generated .js file handle loading for you.To test in a browser, you need to serve the files over HTTP (due to browser security restrictions). You can use Python’s simple HTTP server:
cd build-wasm
python3 -m http.server
Then open http://localhost:8000 in your browser.