ParaScript docs
ParaScript is a TypeScript dialect. Files end in .pts. The added syntax — signals and effects, when blocks, ~> and -> reactive bindings, |>, integer ranges, ..! / ..& / ..=, pure, memo, defer, arena — desugars to standard JavaScript at parse time.
The desugared output imports a small npm package, parabun-browser-shims, which contains the runtime side of the language. There is no other ParaScript runtime layer; the output is plain JS.
Sections
Section titled “Sections”- Install — set up the build pipeline. The compile step uses
bun buildtoday; the runtime side is theparabun-browser-shimspackage, aliased to thepara:*specifier in your bundler. - Language reference — every extension, with the desugaring it emits.
- Examples — three worked projects: frontend (DOM, Vite), backend (Node WebSocket server), edge (Cloudflare Workers).
- Modules — API reference for each
para:*import the language compiles into:signals,arena,parallel,pipeline,simd,arrow,csv.
Related projects
Section titled “Related projects”Parabun is a fork of Bun that ships ParaScript natively, plus a stack of native runtime modules (GPU compute, on-device LLM inference, V4L2 camera capture, ALSA audio, GPIO/I²C/SPI). Use Parabun if you want hardware acceleration in TypeScript on a Linux SBC, NUC, or similar.
The standalone path documented here works on any host with a JavaScript engine — browsers, Lambda, Cloudflare Workers, Deno, Node 18+.