A web-based playground that runs rubyfmt via WebAssembly in the browser.
- Rust
- Node.js (v18+)
- Git (for cloning the Emscripten SDK)
The build script will automatically install:
- Emscripten SDK
- Rust
wasm32-unknown-emscriptentarget
Run the full build (WASM + web assets):
./build.shThe built site will be in web/dist/.
After running ./build.sh at least once:
cd web
npm run devThis starts a dev server with hot reload at http://localhost:5173.
If you change the Rust code, rebuild with ./build.sh
Serve the web/dist/ directory with any static file server. The site is fully static with no backend required.