This is a simple example that demonstrates building a Lobster project to WebAssembly.
Check out the live demos.
You need a built binary of the Lobster language, Python 3.10+, and Emscripten added to PATH.
build.py
is the entry point for building a Lobster project to WASM. In the simplest case, you can build your Lobster script (src/main.lobster
) with python3 build.py
.
Optionally, you can start an HTTP server from build/
on http://127.0.0.1:8080/
after building has completed with the command python3 build.py --serve
.
See python3 build.py --help
for other usage.