Size Limit is a JavaScript performance budget tool that measures the real cost of your JavaScript bundle and prevents regressions by enforcing limits in CI. It calculates not just raw bundle size, but also download and execution time under configurable network conditions, giving a more realistic sense of what users experience. The tool is modular: it offers a CLI and multiple plugins (file, webpack, time) plus presets tailored to different use cases, from big single-page apps to small npm libraries. When integrated with GitHub Actions, CircleCI, or other CI systems, it runs on every commit or pull request, failing the pipeline if a change exceeds the configured budget. It can also annotate pull requests with comments that highlight how the bundle changed, making performance regressions visible to reviewers early. With the --why flag, size-limit can analyze what contributes most to bundle size and show a dependency breakdown (using Statoscope).

Features

  • CI-friendly performance budget tool that fails builds when bundle cost exceeds thresholds
  • Supports ES modules, tree-shaking and includes all dependencies and polyfills in its calculations
  • Multiple plugins and presets for apps, big libraries and small libraries with different build setups
  • Can estimate real-world download and execution time, with configurable network speed and latency
  • GitHub Action and other CI examples that post bundle size diffs as comments on pull requests
  • --why analysis mode using Statoscope to explain where bundle size comes from and what to optimize

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Size Limit

Size Limit Web Site

Other Useful Business Software
Loan management software that makes it easy. Icon
Loan management software that makes it easy.

Ideal for lending professionals who are looking for a feature rich loan management system

Bryt Software is ideal for lending professionals who are looking for a feature rich loan management system that is intuitive and easy to use. We are 100% cloud-based, software as a service. We believe in providing our customers with fair and honest pricing. Our monthly fees are based on your number of users and we have a minimal implementation charge.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Size Limit!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2025-11-27