NormalScript: A Tiny JS Bytecode VM for Embedding Resumable Agent Code
intellectronica · x · 2026-11-27
NormalScript is a small, fast bytecode VM for a strict subset of JavaScript that embeds directly into Node ≥ 24 or Bun ≥ 1.4 apps — no WASM, native addons, or workers — to run small scripts and agent code.
- Can pause mid-run, serialize state to bytes, and resume anywhere, ideal for long-running agent orchestration
- Promise-first API with async/await, classes, generators, plus timeoutMs and AbortSignal support
- No event loop or timers, no ambient I/O (fetch/fs/process/DOM): all capabilities must be passed in as host functions, forming a natural capability sandbox
- Strict subset only: no eval, Proxy, Reflect, private fields, ArrayBuffer, or TypeScript syntax; no module loader
MIT licensed and open source.
Related event: opencode team open-sources NormalScript, a pausable JS bytecode VM(2 posts)→
More from coding & agent
- Coordinator skill orchestrates Claude, Codex and Gemini agent fleets with lane-based briefs — udmrzn · 2026-11-27
- How Hostinger runs 10+ parallel coding agents with two feedback loops — Aiden_Tech_Ai · 2026-11-27
- Proactive agents should act 'for you,' not 'as you,' argues developer — majidmanzarpour · 2026-11-27
- Plato's Key beats SVD adapters in verified test, hitting 95% NDCG@10 for embedding migration — udmrzn · 2026-11-27
- Engineers face an identity crisis as AI ushers in a new set of problems to solve — attentionmech · 2026-11-27
- MeMo paper replaces RAG with a trained Memory model, doubling NarrativeQA to 53.6% — udmrzn · 2026-11-27