TiloBox
Back to directory
pkg project preview

pkg

Package your Node.js project into executable binaries for Windows, macOS, and Linux.

LicenseMIT
GitHub stars24.5k
Last commit1 weeks ago
Tags5 topics
Standalone ExecutableNode Binary CompilerVercel PkgDeveloper ToolsCross Platform Cli
Overview

Why consider pkg?

pkg is an open-source CLI tool written in TypeScript by Vercel. It packages Node.js applications and their node_modules into single self-contained standalone executable binaries across Windows, macOS, and Linux without requiring target machines to have Node.js installed.

Guided learning

Learn pkg by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 2 sections
In this guide2 sections

Overview of pkg

pkg bundles Node.js scripts into single executable files for zero-dependency distribution.

Quickstart

bash
1npm install -g pkg
2pkg app.js --targets node18-linux-x64,node18-win-x64

pkg is licensed under the permissive MIT License.

Related tools

More options with a similar category or technology profile.

pkg FAQs

pkg is listed as a Developer Tools tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

pkg is listed under the MIT license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

pkg is listed as an alternative to Electron. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.