Node.js apps as one executable. Hello World on Linux x64: 4.1 MiB (Thinpack/QuickJS), 104.1 MiB (Bun), 143.7 MiB (Node SEA). Also supports V8.
// momentum
// why it's here
- Created 11 days ago and already shipping
- Built almost entirely by one person
- Health 98/100 with only 6 stars
- 11 open issues handled by one or two people
// how to help
// readme
Quick start
On macOS or Linux, run this in a new directory:
curl -fsSL https://raw.githubusercontent.com/thinpack-js/thinpack.js/main/scripts/install.sh | sh
printf '%s\n' 'console.log("Hello from Thinpack!")' > hello.js
"$HOME/.local/bin/thinpack" pack hello.js -o hello
./hello
On Windows x64, extract the matching release archive, then run this in the extracted directory:
'console.log("Hello from Thinpack!")' | Set-Content -Encoding Ascii hello.js
.\thinpack.exe pack hello.js -o hello.exe
.\hello.exe
Both print Hello from Thinpack!. Replace hello.js with your appโs entry point. Pack for the target OS and architecture. Keep thinpack and its runtime template together on the build machine; ship just the output executable.
Size and compatibility
A single-line console.log("hello") packs to 4.03 MiB (4,230,361 bytes) on Linux x64 CI with QuickJS and --rebuild. This is the standalone executable, including the runtime.