Preparing for system design interviews?  Try bugzed.com →

npm Package Build Stats Analyzer

JSON →
library 8.2.7 ·javascript
verified Jun 17, 2026

package-build-stats is a JavaScript/TypeScript library designed to analyze the build size and performance metrics of npm packages. It simulates a package build process, including installation, minification (with Terser or esbuild), and gzipping, to provide detailed statistics such as gzipped size, uncompressed size, and bundle composition. The library is currently at version 8.2.7 and demonstrates an active release cadence with frequent updates and improvements. A key differentiator is its ability to utilize various package managers like Bun, pnpm, or Yarn for faster installations, and its beta support for analyzing local packages during development. It also allows for granular analysis by specifying custom top-level exports, beyond just the default export, and exposes a comprehensive event queue for monitoring build lifecycle events. This tool is the robust backend engine behind services like Bundlephobia, making it suitable for production use cases requiring accurate package size insights.

total hits 13
actors 4 distinct systems
last hit 18d ago AhrefsBot
GPTBot
4
Amazonbot
4
Script
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇩🇪 Germany