This header animation runs WebAssembly compiled by JZ.
JZ (javascript zero) compiles JavaScript ahead of time to a plain .wasm module: no engine, no GC, no type annotations, auto-SIMD, byte-identical output.
Valid JZ is valid JS – drop the compile step and the same file keeps running.
| Good for | Not for |
|---|---|
| DSP, audio, synthesis | UI, DOM, frontend |
| Images, video, pixels | Network, hot I/O, serving |
| Simulation, physics, games | Dynamic objects, monkey-patching |
| Parsers, codecs, compression | Allocation-heavy, long-lived states |
| Scientific, numeric, edge ML | Security, cryptography, arbitrary-precision integers |
| Hashing, checksums, RNG | Tiny calls where the JS/WASM boundary dominates |
import jz from 'jz'
const { exports } = jz`export const square = x => x * x`
exports.square(7) // 49
JZ infers types from your code.
Unstable yet, pre-1.0.0, but main contract gets stabilized soon.