Sourceror is a compiler toolchain that transforms a subset of JavaScript (Source) into WebAssembly. The current stable version is 0.8.5, with a moderate release cadence of irregular updates. Key differentiators: it targets educational use via the js-slang runtime, ships TypeScript types, and requires Node's experimental WASM modules for CLI usage.
npm install sourcerorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a simple Source function to a WebAssembly module using the default export.
Run node --experimental-wasm-modules your-script.js
Use import syntax instead of require()
Update to 0.8+ and use the default export as a function
Use import instead of require(), or set { "type": "module" } in package.jsonEnsure your project is ESM by adding "type": "module" in package.json