HeadlinesBriefing favicon HeadlinesBriefing.com

Edge.js Brings Node.js to WebAssembly Sandbox

Hacker News •
×

Wasmer has open-sourced Edge.js, a JavaScript runtime designed to safely run Node.js workloads for AI and Edge computing. Unlike alternatives like Deno or Cloudflare Workers, Edge.js preserves full Node.js compatibility while isolating unsafe execution through WebAssembly. This approach allows existing applications and native modules to run unmodified while system calls get sandboxed via WASIX.

The architecture splits the sandbox into two silos: the JavaScript engine remains native while OS system calls and native code are isolated. This design enables ~5–30% of Node.js native speed when using the --safe flag for sandboxing. Edge.js targets Node.js v24 compatibility and uses the same dependencies as Node.js, ensuring behavior consistency.

Edge.js runs everything Node.js can run without modifications, including Next.js and Astro frameworks. Unlike WinterCG-based approaches, it eliminates fragmentation by supporting any framework without requiring reimplementation. The project aims to provide the most frictionless runtime for Node workloads in sandboxed and serverless environments.