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
WaveGraph · propagate · relax_all
detect_tension · spawn_emergent · query
wasm/ts-os-miniWaveGraph · propagate · relax_all
detect_tension · spawn_emergent · query
TypeScript mirror
WaveGraphEngine — same math, instant load.
Auto-upgrades to native WASM if built.
lib/wasmTsOs.tsWaveGraphEngine — same math, instant load.
Auto-upgrades to native WASM if built.
Browser query engine
12-node TS-OS knowledge graph.
Fallback when Docker stack is offline.
lib/wasmQueryEngine.ts12-node TS-OS knowledge graph.
Fallback when Docker stack is offline.
Lab WASM fallback
Auto-detects offline backend.
Switches to WASM mode seamlessly.
app/lab/page.tsxAuto-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.