Audience: End UserLast verified against repo: 2026-11-28
How Disk Sizes Are Measured
Why naive folder sizers overreport pnpm disk usage, and how PkgSteward deduplicates hardlinked files to show true freeable space.Why pnpm folders look larger than they really are
When you install packages with pnpm, files are stored once in a central content-addressable store on your drive and linked into each project's node_modules folder using NTFS hardlinks. Ten projects using React or TypeScript share the exact same physical bytes on disk.Standard directory size tools add every file's size every time they see a hardlink, making ten 500 MB pnpm projects look like 5 GB of used disk space when they may only occupy 600 MB in total.How PkgSteward calculates Unique Apparent Bytes and Estimated Space Freed
During a Disk Usage scan, PkgSteward records the unique file identity of every file it visits and counts each hardlinked file only once per scan (reported as Unique Apparent Bytes).Even more importantly, when you preview deleting a pnpm project's node_modules folder, PkgSteward checks whether each file still has other hardlinks remaining in your pnpm store. Files still linked elsewhere are excluded from Estimated space freed, so you never get a false promise about how many gigabytes will be freed.Last verified against repo: 2026-11-28 (
apps/api/README.md)View source doc on GitHub(opens in new tab)