size-limit
CLI tool to check and enforce JavaScript bundle size limits.
Build tools and bundlers npm MIT
How size-limit is used
size-limit is a dependency in 14 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 33 projects, and what it is used with below comes from all of them. Projects that use it most often also use Playwright (JavaScript) (84.8%), Vitest (84.8%), Vite (81.8%).
size-limit popularity over time
Gid Score 51: downloads 63, use in agent projects 35, GitHub stars 44, downloads trend 60 (each 0-100). How it is calculated.
Often used with size-limit
| Playwright (JavaScript) | 84.8% of size-limit projects · 5.0× more than average |
|---|---|
| Vitest | 84.8% of size-limit projects · 4.1× more than average |
| Vite | 81.8% of size-limit projects · 4.2× more than average |
| Prettier | 81.8% of size-limit projects · 3.9× more than average |
| Husky | 75.8% of size-limit projects · 7.4× more than average |
| Testing Library | 72.7% of size-limit projects · 7.2× more than average |
| lint-staged | 72.7% of size-limit projects · 9.3× more than average |
| tsx | 72.7% of size-limit projects · 4.8× more than average |
From all 33 projects in our scan that use size-limit, including the dependency samples.
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| GitHub Copilot | 0.3% of projects set up for it |
| Gemini CLI | 1.5% of projects set up for it |
| Cursor | 0.2% of projects set up for it |
Share of public repos configured for each agent that list size-limit as a dependency.
How size-limit is funded
GitHub Sponsors
| @ai | 17 current sponsors |
|---|
GitHub shows how many people and companies sponsor an account, not how much they pay. Sponsors of a person back all of their work, which here includes Nanoid (JavaScript), Browserslist, Nano Stores.
Ways to fund size-limit
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | npm install size-limit |
|---|---|
| Main stacks | Next.js (21), TypeScript / JavaScript (11), Rust (1) |
| Example projects | diegosouzapw/OmniRoute, primer/react, ag-grid/ag-charts, ai-integr8tor/diegosouzapw-OmniRoute, cascade-protocol/sati |
Alternatives to size-limit
In our scan, none of the most used tools in Build tools and bundlers does the same job as size-limit: they are add-ons, companions or tools for a different task.
More in Build tools and bundlers: Vite Turborepo esbuild Babel (JavaScript) Laravel Vite Plugin React Compiler Babel Plugin Nx vite-tsconfig-paths