Thinpack.js vs Node.js Single Executable Applications (SEA)

Node.js SEA embeds your script inside a full ~143.5 MiB Node binary. Thinpack.js shrinks the same tools down to 4–12 MiB and preserves ESM + import.meta boundaries without flattening everything into one CJS blob.

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

Why File Boundaries Matter

Because Thinpack preserves module file paths inside its virtual filesystem at /app instead of collapsing every package into a single CJS bundle, tools like tsc, eslint, prettier, js-yaml, and pi-coding-agent run cleanly where the Node SEA CJS blob breaks in fileURLToPath(import.meta.url) or dynamic import().

Even better, Thinpack supports --asset key=path readable via node:sea, making migration straightforward if you already use SEA's asset API—while cutting your download footprint from ~150 MiB to under 10 MiB.

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.