finds.dev

vercel/pkg

Package your Node.js project into an executable

View on GitHubHomepage ↗

★ 24,324JavaScriptMITupdated Jan 2024

// the take

pkg bundles a Node.js app plus a patched Node binary into a single executable for Linux, macOS, and Windows. It was the standard way to ship Node CLIs and desktop-adjacent tools without requiring users to have Node installed, for years.

Cross-compilation works without owning the target OS for most platform/arch pairs, which is genuinely hard to replicate elsewhere. The asset/script glob config in package.json handles the common 'non-literal require' problem cleanly. Snapshot filesystem semantics (__dirname resolving to /snapshot/...) are well documented, which matters because it's the thing that silently breaks apps when people port existing code in.

It's dead: last release 5.8.1 in 2024, repo archived, and the README tells you to leave for forks or Node 21's built-in single-executable-application support. Bytecode compilation is explicitly non-deterministic, so reproducible builds require --no-bytecode, which then dumps raw source into the binary. Native addons (.node files) need manual asset wiring and version-matching against the target Node, which is a recurring source of runtime crashes. macOS arm64 support is marked experimental with mandatory code-signing gotchas that aren't optional in practice.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

search the same ground:

// at a glance

Stars
24,324
Forks
1,077
Language
JavaScript
License
MIT
Last commit
3 Jan 2024

// nearby

If pkg isn't quite it.

All repos →