Nexe packages Node.js apps into one native executable so you can ship binaries without a separate Node install.
Overview
Nexe is a command-line utility and programmatic API that bundles a Node.js application, its resources, and a Node runtime into a single executable file. The goal is self-contained deployment, version pinning, and faster startup when distributing apps to machines without npm or Node preinstalled.
The CLI accepts an entry script, optional resource globs embedded in the binary, target platform and architecture selectors, and flags to download prebuilt runtimes or compile Node from source. Piping bundled output from tools like rollup into nexe is supported.
Build options cover cross-platform targets, custom icons on Windows, virtual filesystem packaging, cleaning cached builds, and hooks for patching the downloaded Node sources. Embedded files are read at runtime through the Node fs APIs.
Native addon modules are not fully contained inside the generated binary; their native binaries must ship alongside the executable. Prebuilt executables are fetched from release assets when available, with fallbacks to local builds when versions or platforms are missing.
Key features
- Single-file Node executables
- CLI and Node.js API
- Bundled static resources
- Cross-platform target selection
- Prebuilt or source-built runtimes
- stdin bundling pipeline support
- Custom Windows icon support
- Idempotent repeatable builds
Use cases
- Ship CLI tools without Node installed
- Pin runtime versions per application
- Distribute desktop utilities as one binary
- Bundle web server assets inside the exe