Single file deploy
One binary per target. No Node.js install, no node_modules, no dependency churn on the deployment host.
Ship your Node.js project as one self-contained binary. No runtime install. No npm. Just run.


npm install -g @yao-pkg/pkgRequires Node.js >= 22 on the build host.
pkg index.jspkg .const { exec } = require('@yao-pkg/pkg');
await exec(['index.js', '--target', 'host', '--output', 'app']);pkg reads package.json, follows the bin entry, walks your dependencies, and produces executables for Linux, macOS, and Windows.
Want to target a specific platform?
pkg -t node22-linux-arm64 index.jsTwo build modes: Standard (pkg .) gives you bytecode protection and compression; Enhanced SEA (pkg . --sea) runs on stock Node.js with no patches. Pick via SEA vs Standard.
See the full use cases →