pastelsky/bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project

TypeScript

9,605

737 commits

updated Oct 8, 2026

See the code

README

bundlephobia.com

Know the performance impact of including an npm package in your app's bundle.

Bundlephobia's looking for contributors and co-maintainers

Features

  • Works with ES6 packages
  • Can build css and scss packages as well (beta)
  • Reports historical trends
  • See package composition

Badges

Built using bundlephobia

Support

Liked bundlephobia? Used it's API to build something cool? Let us know!

We could use some 💛 and sponsorship on –

FAQ

1. Why does search for package X throw MissingDependencyError ?

This error is thrown if a package requires a dependency without adding it in its dependencies or peerDependencies list. In the absence of such a definition, we cannot reliably report the size of the package - since we cannot resolve any information about the package.

In such a case, it's best to report an issue with the package author asking the missing package to be added to its package.json

2. I see a BuildError for package X, but I'm not sure why.

You can see a detailed stack trace in your devtools console, and open an issue with the relevant details. Working on a more ideal solution for this.

Contributing

See Contributing

Installation service

Build workers use INSTALLATION_SERVICE_ENDPOINT when configured. The singleton installation service resolves registry tags and ranges immediately before install, then queues exact-version package-manager work and reuses each completed installation across requests and service restarts. Analyses write generated entries and bundles to separate temporary artifact directories. Without the service, package-build-stats installs packages locally as before. When the endpoint is configured but unavailable, build workers return an error instead of starting duplicate local installations. Remote builds are bounded to ten minutes; abandoned subscriptions expire after fifteen minutes, while released installations remain reusable for five minutes.

Sponsors

cost
dependencies
npm-package
performance
webpack

pastelsky/bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project

TypeScript

9,605

737 commits

updated Oct 8, 2026

See the code

README

bundlephobia.com

Know the performance impact of including an npm package in your app's bundle.

Bundlephobia's looking for contributors and co-maintainers

Features

  • Works with ES6 packages
  • Can build css and scss packages as well (beta)
  • Reports historical trends
  • See package composition

Badges

Built using bundlephobia

Support

Liked bundlephobia? Used it's API to build something cool? Let us know!

We could use some 💛 and sponsorship on –

FAQ

1. Why does search for package X throw MissingDependencyError ?

This error is thrown if a package requires a dependency without adding it in its dependencies or peerDependencies list. In the absence of such a definition, we cannot reliably report the size of the package - since we cannot resolve any information about the package.

In such a case, it's best to report an issue with the package author asking the missing package to be added to its package.json

2. I see a BuildError for package X, but I'm not sure why.

You can see a detailed stack trace in your devtools console, and open an issue with the relevant details. Working on a more ideal solution for this.

Contributing

See Contributing

Installation service

Build workers use INSTALLATION_SERVICE_ENDPOINT when configured. The singleton installation service resolves registry tags and ranges immediately before install, then queues exact-version package-manager work and reuses each completed installation across requests and service restarts. Analyses write generated entries and bundles to separate temporary artifact directories. Without the service, package-build-stats installs packages locally as before. When the endpoint is configured but unavailable, build workers return an error instead of starting duplicate local installations. Remote builds are bounded to ten minutes; abandoned subscriptions expire after fifteen minutes, while released installations remain reusable for five minutes.

Sponsors

cost
dependencies
npm-package
performance
webpack

Project health

Overall

4.9/10

Maintained

10/10

Code review

0/10
OpenSSF Scorecard

Significant stargazers

(top 24 of 143)

Feross Aboukhadijeh

14,909 followers · starred Mar 2018

Gregor Martynus

1,818 followers · starred Nov 2018

Alexander Akait

1,062 followers · starred Aug 2019

Yuki Okushi

1,519 followers · starred Oct 2022