visaljs
JavaScript in. A native binary out.
A simple ahead-of-time compiler. It reads your JavaScript, turns it into C, and compiles it to a native binary, all in one step.
Smaller binaries, less memory
One small binary to copy and run, with nothing else to install. The same servers, from a bare node:http one to Next.js, built by visaljs, Bun and Node.
Binary size
- visaljs3.4 MB
- Bun109 MB
- Node127 MB
Memory under load
- visaljs13.6 MB
- Bun62.4 MB
- Node82.1 MB
Binary size
- visaljs4.8 MB
- Bun109 MB
- Node127 MB
Memory under load
- visaljs18.5 MB
- Bun68.4 MB
- Node106.0 MB
Binary size
- visaljs12 MB
- Bun110 MB
- Node128 MB
Memory under load
- visaljs28.3 MB
- Bun86.0 MB
- Node102.3 MB
Binary size
- visaljs21 MB
- Bun—
- Node—
Memory under load
- visaljs57.7 MB
- Bun232.5 MB
- Node554.7 MB
Binary size
- visaljs45 MB
- Bun—
- Node—
Memory under load
- visaljs110.2 MB
- Bun269.6 MB
- Node581.9 MB
Measured nightly on GitHub's runners, last on 2026-10-22. Node and Bun can't build Next.js or vinext into one binary: their rows runnext start and vinext start, without a size.
Node compatibility
Use Node v24's built-in modules in your compiled program.
35/58 modules fully supported
- assert
- assert/strict
- async_hooks
- buffer
- console
- dgram
- diagnostics_channel
- dns
- dns/promises
- domain
- events
- fs/promises
- https
- net
- os
- path
- path/posix
- path/win32
- punycode
- querystring
- readline
- readline/promises
- sea
- stream
- stream/promises
- string_decoder
- sys
- test/reporters
- timers
- timers/promises
- tls
- trace_events
- util
- util/types
- zlib
- child_process
- cluster
- constants
- crypto
- fs
- http
- http2
- inspector
- inspector/promises
- module
- perf_hooks
- process
- repl
- stream/consumers
- stream/web
- test
- tty
- url
- v8
- vm
- worker_threads
- sqlite
- wasi
How to use
A single command: point it at your JavaScript, and visaljs does its best to compile it, npm packages included. All you need is Node 22 or later and a C compiler.
npx visaljs build app.js ./app
Builds app.js and the npm packages it imports into one native binary, ./app.
npx visaljs build ./my-app
In your project's folder: visaljs tries to detect your framework and entry file, and compiles them into one native binary named after the folder.