Back to articles
Rotifer v0.3: TypeScript WASM — Zero-Barrier Gene Authoring

Rotifer v0.3: TypeScript WASM — Zero-Barrier Gene Authoring

via Dev.toRotifer Protocol

The biggest barrier to writing WASM genes was the toolchain. v0.3 removes it entirely: write a TypeScript function, run rotifer compile , get a sandboxed WASM gene. Zero configuration. TS → WASM Pipeline The new compilation pipeline chains three stages automatically: TypeScript → esbuild (bundle) → WASI shim → Javy (QuickJS→WASM) → Rotifer IR rotifer compile my-gene # auto-detects index.ts, compiles to WASM rotifer compile my-gene --lang ts # force TypeScript mode Under the hood, Javy embeds QuickJS into a WASM module. The result is a fully sandboxed gene that runs in the same wasmtime sandbox as hand-written Rust genes — with the same fuel metering, memory limits, and security isolation. No Rust. No AssemblyScript. No WASM toolchain setup. Same language you already use. WASI Sandbox Support The Rust core's WasmtimeSandbox now supports two execution modes: Direct — genes exporting an express function (original mode) WASI — genes using the _start entry point (Javy output) A minimal WASI

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles