apps/playground/src/wasm_loader.ts: createWasmLoader(source, factory) adapts the generated glue's createBindings (crates/lawsynth-wasm-bindings/web/lawsynth_wasm.mjs, whose output already matches LawSynthWasmBindings key-for-key) into the WasmRuntime loader, validating the required API. The factory is dependency- injected — not imported — so the app carries no build-time dependency on the compiled .wasm (produced by scripts/build-wasm.sh on a networked machine) and the wiring is testable offline. defaultWasmSource() resolves the .wasm beside the deployed glue. 5 tests (fake-factory round-trip through WasmRuntime.simulate, missing-API + factory-failure rejection as wasm-unavailable/capability boundaries, source URL resolution). Full playground suite green (12/12 files). Production wiring is a copy step (glue + built .wasm beside the app + point the loader at defaultWasmSource); documented in the crate README.
LawSynth Playground
The Playground is a client-only World editor and bounded local simulation host.
It accepts generated JavaScript bindings for lawsynth-wasm; it does not claim
that the Rust crate itself exposes browser bindings. World source, datasets,
parameter overrides, simulations, local saves, and share links are validated and
size-limited at their browser boundaries.