Package your Node.js project into a single self-contained executable.
π Full documentation: yao-pkg.github.io/pkg
pkg takes your Node.js project and ships it as a single binary that runs on devices without Node.js installed. Cross-compile for Linux, macOS, and Windows from any host.
npm install -g @yao-pkg/pkgpkg .That's it. pkg reads package.json, follows the bin entry, walks your dependencies, and produces executables for Linux, macOS, and Windows.
Everything lives on the docs site:
- Getting started β install, CLI reference, first build
- Targets β cross-compile for other platforms
- Configuration β
pkgproperty inpackage.json, scripts, assets, ignore - SEA vs Standard mode β which packaging mode to pick and why
- Snapshot filesystem β how paths work at runtime
- Native addons, ESM support, API
- Troubleshooting
- Architecture β traditional mode vs enhanced SEA mode
- Contributing β release process, running tests
This is yao-pkg/pkg β the actively maintained fork of the archived vercel/pkg. New releases ship as @yao-pkg/pkg.

