iberezh
← All writing
· Next.js

How much of Next.js actually runs

I wanted to know how much of Next.js actually runs.

A fresh Next.js 16 app installs 323 MB of node_modules. The next package is 192 MB, and half of that is source maps.

I logged every file Node opened from it: next start: 3.6 MB (1.9%) next build: 13.3 MB (6.9%)

where the rest goes: - the page runtime ships 8 times: dev/prod, webpack/turbopack, stable/experimental - 475 docs files are bundled inside the package

for Docker, output: 'standalone' copies 45 MB. 28 MB of that is sharp, the image library, even though this app has no <Image>

how I measured it: a --require hook that logs every file read and require under node_modules/next. then next start with 2 pages and an API route, and a full next build. sizes are file bytes, not du

Discussion on X

Next: DuckDB vs ClickHouse on the same 100M rows →