Wave 15 — WASM Port

TS-OS in the browser

The full wave-cycle engine — propagate, relax, tension detection, and emergence — running 100% client-side. No Docker. No install. No server.

Wave 15 Architecture
Rust WASM crate
wasm/ts-os-mini
WaveGraph · propagate · relax_all
detect_tension · spawn_emergent · query
TypeScript mirror
lib/wasmTsOs.ts
WaveGraphEngine — same math, instant load.
Auto-upgrades to native WASM if built.
Browser query engine
lib/wasmQueryEngine.ts
12-node TS-OS knowledge graph.
Fallback when Docker stack is offline.
Lab WASM fallback
app/lab/page.tsx
Auto-detects offline backend.
Switches to WASM mode seamlessly.

The Python/Docker runtime remains primary. To enable native WebAssembly execution: bash scripts/build-wasm.sh (requires Rust + wasm-pack). Until then, the TypeScript mirror handles everything with identical math.

Wave 15 — TS-OS (browser)cycle #0
TypeScript

Click a node to push activation (+0.4). Click Run Cycle to propagate → relax → detect tension. Emergence fires when tension > 0.38.

Nodes: 10 · Edges: 13
Strongest: core
Same math as Python wave engine — no server needed. Run bash scripts/build-wasm.sh for native WASM.