Run JavaScript anywhere. Safely.
Edge.js is a secure JavaScript runtime, designed for Edge computing and AI workloads.
Edge.js uses WebAssembly for sandboxing when in --safe mode, so even the most insecure programs can run on it safely. Edge also is:
- β Fully compatible with Node.js.
- π Sandboxed by design.
- π§© Pluggable with any JS engine: V8, JavaScriptCore or QuickJS.
- πͺ Compatible with any package manager: NPM/PNPM/Yarn/Bun.
curl -fsSL https://edgejs.org/install | bashYou can use it as you would do it with Node.js:
const http = require("node:http"); http .createServer((_req, res) => { res.end("hello from edge\n"); }) .listen(3000, () => { console.log("listening on http://localhost:3000"); });
$ edge server.js
If you want to use it in your current workflow, just wrap your commands with edge:
$ edge node myfile.js $ edge npm install $ edge pnpm run dev
First, clone the repo and initialize only the napi submodule:
git clone --recurse-submodules https://github.com/wasmerio/edgejs.git
cd edgejsBuild the CLI locally:
make build ./build-edge/edge server.js
./build-edge/edge --run dev
Or run the tests:
make test NODE_TEST_RUNNER="$(pwd)/build-edge/edge" \ ./test/nodejs_test_harness --category=node:assert
We have created a public ROADMAP, so you can contribute into the project easily!
0.xProduction readiness: platform coverage across Linux, Windows, macOS, iOS, and Android; reliability in constrained environments; security audits; and successful real production use.1.xNeed for speed: faster startup, faster core paths, and performance that competes with or beats Node.js, Bun, and Deno on most workloads.2.xEnhancements: first-class TypeScript support and a smoother developer experience.
For architecture detail, see ARCHITECTURE.md.