I fed console.log('hello') to Node’s single executable builder. The result was 143.46 MiB. Then I measured the node binary I started with: 143.46 MiB, too. The difference, before rounding, was 7,260 bytes.

That’s the useful number. There’s not much left to save by minifying hello. Almost all of the file is what you need to run it in a full copy of Node. I built Thinpack.js to see what happens if you build the runtime around the app instead. Thinpack v0.3.0’s Linux x64 CI build ships the same one-line program in 4.03 MiB, including its runtime.

What Node SEA actually ships

Node SEA embeds the application in a node executable. You get the real Node runtime, which is a good reason to use it. You also get the build you started with, even when your app doesn’t use most of it.

Here’s my measurement with Node 26.8.1, Linux x64, no assets or application snapshot:

File Bytes
node 150,425,704
hello-sea 150,432,964
Added by packaging 7,260
echo "console.log('hello');" > hello.cjs echo '{"main":"hello.cjs","output":"hello-sea"}' > sea.json node --build-sea sea.json ./hello-sea wc -c "$(command -v node)" hello-sea 

I wanted to know how much of those 143 MiB was V8. So I looked at the ELF and its symbol table, rather than calling the entire file the engine:

  • V8: at least 21.33 MiB of identifiable symbols. I summed non-overlapping, file-backed ranges for symbols named v8::…, Builtins_…, and the named V8 embedded blobs. That misses generated or unnamed data and other engine code. It’s a partial count in this particular binary, not the size of a standalone V8 build.
  • Node’s built-in JavaScript: 9.92 MiB of source. That’s 415 strings exposed by process.binding('natives') in this build. It includes internals, not just public modules, and it doesn’t count the native code behind those modules. It measures decoded source, not bytes attributed to the ELF on disk.
  • ICU data: 31.57 MiB in this build. That’s one data symbol, icudt78_dat. The .debug_*, .symtab, and .strtab sections account for another 31.63 MiB in this unstripped file. Different Node builds can carry different data and metadata.

Those numbers don’t add up to a full accounting, and the JavaScript source count isn’t an on-disk component. But they answer the first question: there’s much more in a Node executable than V8 and the public standard library.

What can a packer leave out?

QuickJS takes care of running JavaScript. It doesn’t know what node:fs means. Thinpack still needs a module loader, a way to call the host, and implementations for the Node APIs the app uses. Where practical, it reuses Node’s JavaScript code and connects it to its own host operations.

In one local Linux x64 small-profile build, the QuickJS-NG static archive was 1.45 MiB on disk; GNU size reported about 625 KiB of text plus initialized data across its objects. The first number includes archive and object metadata. The second still isn’t the exact number of bytes the linker keeps. Neither includes the rest of Thinpack.

To measure the two knobs separately, here’s the project’s same-profile runtime template comparison. These are template measurements, separate from the Hello CI result:

Backend Core template All built-ins Cost of enabling the full set
QuickJS 5.20 MiB 11.61 MiB +6.41 MiB
V8 45.82 MiB 52.25 MiB +6.43 MiB

Switching backends changes the core template by 40.62 MiB in that setup. That includes the different engine integration, so it isn’t a standalone V8 measurement. On either backend, enabling all the supported built-ins costs another roughly 6.4 MiB, including their support code. The two savings come from different decisions.

How the executable gets assembled

 app entry | Oxc + module resolution | +--> app files and assets ------> payload | | +--> needed Node built-ins | + their dependencies | + always-on APIs | | | --rebuild | v v +--------------+---------+---------+ executable: | runtime | payload | trailer | +--------------+---------+---------+ 

Add require('node:crypto') to Hello, and --list-capabilities shows four new entries: crypto, stream, events, and string_decoder. The app names only the first one. The others follow from the runtime’s dependency graph. With --rebuild, Thinpack compiles a runtime for that set, then appends the app’s files. The standard library is trimmed at build time. The prebuilt template skips the rebuild and ships all the built-ins.

Does this matter beyond Hello? The v0.3.0 app size baseline records 4.55 MiB for js-yaml and 6.53 MiB for tsc on Linux x64. Size isn’t speed, though. In a separate earlier benchmark, tsc --version took 347 ms warm with Thinpack and 77 ms with that Node SEA build. That measures startup, not a TypeScript compile.

I’d use SEA when I need the actual Node runtime. I’d try Thinpack when the size of the binary matters and I can test the commands I ship. Dynamic imports and assets can need explicit includes, and Thinpack doesn’t implement every Node API. If you maintain a CLI and try the quick start, I’d like to hear what you packed, how large it was, and what ran outside your source tree.