ai/size-limit
Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit. observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 95
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 38
- age_days: 3356
- days_rel: 34
- days_push: 34
- n_releases_24m: 10
Adoption not part of the score
6941 stars · 1760 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Size Limit is a performance budget tool for JavaScript that calculates the real cost (size and execution time) of your app or library and fails CI if it exceeds configured limits. It integrates with GitHub Actions and other CI systems to flag oversized dependencies in pull requests.
Use cases
- keep my npm library bundle size under a limit
- fail CI when a pull request adds a heavy dependency
- measure how long a browser takes to download and execute my JS
- post bundle size changes as a comment on pull requests
- analyze why my bundle is large with --why
- set performance budgets for a JavaScript app
When to choose
- you maintain a JS library or app and want to enforce bundle size or time budgets in CI
- you want PR feedback on bundle size changes
- you need tree-shaking-aware, dependency-inclusive size calculations
When to avoid
- you need full runtime performance profiling rather than bundle cost estimation
- your project is not JavaScript-based
- you want visual bundle analysis only without budget enforcement
Facets
cli-tool · maturity stable
benchmarking ci-cd developer-tools cli developer-tools performance web-development frontend cli cross-platform performance-budget bundle-size javascript ci pull-request-checks tree-shaking nodejs
2 sources
- readme: https://github.com/ai/size-limit · fetched 2026-08-28 · 30504ec7de31
- registry_npm: https://registry.npmjs.org/size-limit · fetched 2026-08-29 · d0ea81660c25
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ai/size-limit | main | 92 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem