Does an end user need Node.js installed to run a Thinpack .exe on Windows?
No. Running thinpack.exe pack app.js -o app.exe outputs a single standalone Windows x64 executable that runs without Node.js, Bun, or npm install.
.exeMost tools that compile Node.js to a Windows .exe produce 100–150+ MiB files because they copy the entire Node/Bun runtime. Thinpack.js builds a minimal standalone executable so end users can double-click or run your CLI with zero Node.js or npm install.
Grab the Windows x64 archive from GitHub Releases (you can verify its hash against SHA256SUMS), extract it, keep thinpack.exe alongside its runtime template on your build machine, and pack your script:
'console.log("Hello from Thinpack!")' | Set-Content -Encoding Ascii hello.js
.\thinpack.exe pack hello.js -o hello.exe
.\hello.exepath.join(__dirname, ...) or directory listings via fs.readdir/readdirSync under your project root are packed automatically into /app.--include): If your app dynamically loads templates, Babel/ESLint configs, or plugin directories at runtime, pass --include path/to/folder. Everything packed mounts under /app inside the executable.--asset): Embed assets via --asset key=path and read them through node:sea.--backend v8 or THINPACK_BACKEND=v8.Every tool below was measured on Linux x86_64 in docs/benchmarks.md; on Windows x64, Thinpack follows the same capability-trimmed QuickJS (or optional V8) architecture rather than shipping a 100+ MiB runtime copy:
| Program | Thinpack (MiB) | Bun 1.4.4 (MiB) | Node 26.8.1 SEA | Thinpack cold / warm | SEA startup |
|---|---|---|---|---|---|
| Hello World hello.js |
4.03 (~1.80 gz) | 104.10 | 143.70 | — | Failed |
| tsc (ts 5.9) typescript@5.9.3 |
9.00 (5.65 gz) | 109.63 (50.19 gz) | 149.82 (45.35 gz) | 578 / 347 ms | 77 ms |
| ESLint 10 eslint@10.15.0 |
6.93 (3.60 gz) | 107.15 (49.78 gz) | 147.25 (44.96 gz) | 288 / 186 ms | 64 ms |
| Prettier 3 prettier@3.10.1 |
7.41 (4.14 gz) | 110.04 (50.85 gz) | 143.57 (44.32 gz) | 235 / 155 ms | Failed |
| Terser 5 terser@5.51.2 |
6.06 (2.91 gz) | 105.38 (49.48 gz) | 144.94 (44.57 gz) | 226 / 145 ms | 35 ms |
| js-yaml 5 js-yaml@5.5.0 |
5.80 (2.69 gz) | 104.29 (49.28 gz) | 143.75 (44.37 gz) | 150 / 100 ms | Failed |
| pi-coding-agent @earendil-works/pi-coding-agent@1.5.0 |
12.42 (7.16 gz) | 115.24 (51.30 gz) | 157.75 (46.94 gz) | 983 / 702 ms | Failed |
Thinpack never loads N-API or C++ .node native addons; native bindings must use node:ffi. Before distributing a .exe to end users, copy the generated .exe into an empty folder without node_modules and run your primary subcommands (remember process.argv is [execPath, invokedPath, ...args], and the only reserved runtime switch is --warm-cache). To build Linux and macOS binaries alongside your Windows .exe, wire the GitHub Actions release matrix.
No. Running thinpack.exe pack app.js -o app.exe outputs a single standalone Windows x64 executable that runs without Node.js, Bun, or npm install.
Download the matching Windows x64 archive from GitHub Releases and verify its checksum against the published SHA256SUMS file before running thinpack.exe pack.
No—Thinpack does not cross-compile. Use the official thinpack-js/thinpack.js GitHub Action on windows-latest alongside ubuntu-24.04 and macos-latest to publish binaries for all platforms automatically.
Static fs.readFileSync/readdir paths built from __dirname are detected automatically. Pass extra dynamic files via --include <path> (mounted under /app) or --asset key=path for node:sea.
Compare Thinpack against @yao-pkg/pkg, Node SEA, Bun, and Deno.
Copy-paste CI matrix workflow with SHA256SUMS release uploads.
Pack .ts files into binaries without running tsc first.