HeadlinesBriefing favicon HeadlinesBriefing.com

QuickBEAM Brings JavaScript Runtime to Erlang's BEAM VM

Hacker News •
×

QuickBEAM embeds JavaScript execution within Erlang's BEAM virtual machine, enabling browser-style APIs via OTP/native primitives like DOM and WebSocket. This integration allows JavaScript to run as supervised OTP processes, with direct access to Elixir code and system resources.**

The runtime operates within Erlang/OTP supervision trees, offering memory/reduction limits, crash recovery, and bidirectional messaging. Developers can spawn JS contexts for SSR, sandboxed code execution, or per-connection state management while maintaining OTP's fault tolerance. Notably, it supports TypeScript, npm packages, and native addons without JSON serialization overhead between JS and Erlang.

QuickBEAM's APIs mirror browser environments but are backed by Erlang's native capabilities. For example, DOM manipulation executes directly on BEAM processes, and database queries can integrate Elixir repository functions. Context pools handle high-concurrency scenarios, scaling to thousands of connections through shared runtime threads. The toolchain includes built-in Zig compilation (v0.15+) for performance-critical components.

By eliminating Node.js dependencies, QuickBEAM positions Elixir Volt as a full-stack alternative for frontend/backend development. Early adopters praise its OTP-native sandboxing and reduced cold-start latency. The project actively seeks community input to refine its TypeScript tooling and runtime ergonomics. * * *

QuickBEAM's architecture bridges JavaScript's flexibility with BEAM's reliability, targeting developers seeking polyglot solutions without sacrificing Erlang's battle-tested runtime properties. Its npm compatibility and native DOM access address common pain points in hybrid stack development.