pastelsky/bundlephobia
pastelsky/bundlephobia has 9,620 GitHub stars and 280 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-08 06:24 UTC. Last push 2026-11-05.
🏋️ Find out the cost of adding a new frontend dependency to your project
What you can do
- Works with ES6 packages
- Can build css and scss packages as well (beta)
- Reports historical trends
- See package composition
Measured star growth
- in 24h
- +1
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
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
- badgen.net - example size of react:
- shields.io - example size of react:
Built using bundlephobia
- Size in browser - As seen on package searches at yarnpkg.com
- bundlephobia-cli - A Command Line client for bundlephobia
- importcost - An Atom plugin to display size of imported packages
- JS Bundle Size Cross-Browser Extension - Chrome and Firefox extension automatically adding package size to the github and npm pages.
- npmcharts.com - bundle size stats at top of page
- Rollpkg - A build tool to create packages with Rollup and TypeScript
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
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,770 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,357 starsreact/react
The library for web and native user interfaces.
252,423 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,632 stars