npm Package Build Stats Analyzer

JSON →
library 8.2.7 ·javascript
verified May 27, 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 18
actors 6 distinct systems
last hit 2d ago human
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
4

top countries 🇫🇷 France · 🇺🇸 United States · 🇨🇦 Canada · VN · 🇫🇮 Finland