{"by":"dannote","descendants":16,"id":47558094,"kids":[47566623,47565815,47565872,47566321,47565340,47569764,47569765,47568557],"score":113,"text":"QuickBEAM is a JavaScript runtime embedded inside the Erlang&#x2F;OTP VM.<p>If you’re building a full-stack app, JavaScript tends to leak in anyway — frontend, SSR, or third-party code.<p>QuickBEAM runs that JavaScript inside OTP supervision trees.<p>Each runtime is a process with a `Beam` global that can:\n- call Elixir code\n- send&#x2F;receive messages\n- spawn and monitor processes\n- inspect runtime&#x2F;system state<p>It also provides browser-style APIs backed by OTP&#x2F;native primitives (fetch, WebSocket, Worker, BroadcastChannel, localStorage, native DOM, etc.).<p>This makes it usable for:\n- SSR\n- sandboxed user code\n- per-connection state\n- backend JS with direct OTP interop<p>Notable bits:<p>- JS runtimes are supervised and restartable\n- sandboxing with memory&#x2F;reduction limits and API control\n- native DOM that Erlang can read directly (no string rendering step)\n- no JSON boundary between JS and Erlang\n- built-in TypeScript, npm support, and native addons<p>QuickBEAM is part of Elixir Volt — a full-stack frontend toolchain built on Erlang&#x2F;OTP with no Node.js.<p>Still early, feedback welcome.","time":1774731803,"title":"Show HN: QuickBEAM – run JavaScript as supervised Erlang/OTP processes","type":"story","url":"https://github.com/elixir-volt/quickbeam"}