npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

npm2exe

v0.4.0

Published

Pack a JavaScript local project to a Portable Executable

Readme

NPM to EXE

Pack a JavaScript local project to a portable executable.

NPM Dependency CI & CD

NPM

Usage

package.json

{
  "name": "my-app",
  "version": "1.0.0",
  "bin": "dist/index.js",
  "devDependencies": {
    "typescript": "^6",
    "npm2exe": "^0.4"
  },
  "scripts": {
    "build": "tsc",
    "bundle": "npm run build  &&  npm2exe ."
  }
}

Command

cd path/to/project
npm install
npm run bundle

more options

  • --arch <x86|ia32|x64|arm|arm64> target runtime architecture (ia32 maps to x86, arm maps to armv7l)
  • --platform <linux|darwin|win|win32> target platform (default current platform)
  • --node-version <version> specific runtime version (for example v22.18.0)
  • --output <name> output bundle file name (default package name; Windows appends .exe)
  • --compression-level <0-9> compression level (default 0, no compression; higher levels trade speed for a smaller archive)
  • --verbose or -V enable Verbose output

npm2exe reads your package.json#bin, installs only production dependencies into a temporary staging directory, downloads a matching stock Node.js runtime, then wraps both into a self-extracting package.

Feature comparison

| Feature | npm2exe | Node SEA | pkg | nexe | caxa | | ---------------- | ------------------------------------------------------------------------------ | ------------------------------------ | --------------------------------------------------------- | ----------------------------------------- | ------------------------------------------- | | OS / CPU | ✅ linux / darwin / win; x64 / arm64 / armv7l; Windows x86 | ✅ stock Node target | ✅ Linux / macOS / Windows / Alpine / static Linux | ✅ target triple | ✅ Windows / macOS / Linux | | Node version | ✅ build >=22; runtime auto-resolved or overridden | ✅ Node SEA in official Node | ✅ build >=22; node22 / node24 / latest | ✅ runtime version in target string | ✅ build >=22.15.0 | | Entry model | ✅ package.json#bin, one or many launchers | ⚠️ one main only | ⚠️ one package entry | ⚠️ one input or stdin bundle | ✅ command array; multi-target output | | Monorepo | ✅ workspace: staging | ❓ no dedicated flow documented | ❓ no dedicated flow documented | ❓ no dedicated flow documented | ❓ no dedicated flow documented | | Installed layout | ✅ real app tree in home/profile | ⚠️ in-binary VFS | ⚠️ snapshot FS + cache extraction | ⚠️ single executable VFS | ✅ extracted app tree in temp/cache | | Native addons | ✅ normal on-disk loading | ⚠️ must extract first | ⚠️ supported, but extracted to cache | ❌ ship beside binary | ✅ extracted before run | | Config | ✅ low (npm2exe configuration) | ⚠️ medium | ⚠️ medium / high | ⚠️ medium / high | ⚠️ low / medium | | Wrapper form | ✅ 7z SFX / makeself | ⚠️ injected stock Node binary | ⚠️ patched runtime or SEA | ⚠️ compiled single executable | ⚠️ Rust self-extractor |

In short: SEA, pkg, and nexe lean toward a tighter single-binary image, while caxa and npm2exe lean toward extracting and running a real app tree. That makes npm2exe especially friendly to regular Node.js install behavior and workspace: monorepos.

GitHub Actions release workflow

cd path/to/your/project

npx git-utility download https://github.com/idea2app/npm2exe main .github/workflows/ .github/workflows/

Notes: