Thinpack.js vs bun build --compile

Bun is dramatically faster at startup. Thinpack.js produces binaries 9x to 25x smaller without renaming bin/ launchers or passing external flags for standard packages.

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 (TypeScript 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

Key Engineering Differences

Where Thinpack.js Wins

  • 9x–25x smaller artifacts: tsc packs to 9.00 MiB (5.65 MiB gzip) vs Bun's 109.63 MiB (50.19 MiB gzip).
  • Cleaner CLI static analysis: All six benchmarked CLIs ran without renaming extensionless bin/tsc or passing --external jiti (unlike bun --compile).
  • Selective capability linking: Unused Node built-in code isn't even compiled into --rebuild binaries.

Where Bun Wins

  • ~4x faster cold start: pi --help finishes in 192 ms on Bun vs 777 ms on Thinpack QuickJS.
  • Lower peak RSS on large apps: 84–91 MB on Bun vs 104 MB on Thinpack for pi-coding-agent.
  • Mature all-in-one toolchain: If 110 MiB download size doesn't hurt your distribution channel, Bun is ready out of the box.

Shipping smaller Node.js CLIs? Star thinpack.js on GitHub

thinpack.js is 100% MIT-licensed and actively developed in Rust + JavaScript. If you ship Node.js CLIs and want 4–12 MiB binaries instead of 104–158 MiB runtimes, starring the repository helps other developers discover it and prioritizes new Node compatibility fixtures.