1. License
“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
MIT allows use in paid and closed-source apps and build pipelines.
github.com/browserslist/browserslist/blob/main/LICENSE3. Used by agents' projects
Dependency in 13 public GitHub projects set up for AI coding agents that we scanned (0.2%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily; card checked Nov 11, 2026. Tap a verdict to see its source.How we checkedReport an error
What Browserslist does
Browserslist is a free JavaScript library that turns a short line like "defaults" or "last 2 versions" into an exact list of browser versions. Your CSS and JavaScript build tools read that one setting, so they all add fixes for the same browsers. It does not change your code itself; it only answers "which browsers?".
What people build with it
Same browsers for CSS and JavaScript
Write your browser list once in package.json, and tools like Autoprefixer, Babel and postcss-preset-env all add prefixes and fixes for exactly those browsers.
See what your setting really means
Before a release, check which browser versions a line like "> 0.5%, last 2 versions, not dead" picks and what share of people they cover.
Support only well-established features
Target the browsers that support every web feature that has worked everywhere for at least 30 months, instead of guessing version numbers.
Follow your own visitors, not the world
A shop with mostly US or mostly mobile visitors bases its list on that country's share or on its own analytics numbers.
Lighter build for new browsers
Keep two lists, for example "modern" and "production", and pick one per build with an environment setting.
Warn visitors on old browsers
Show a gentle "your browser is not supported" note to people whose browser falls outside your list.
Browserslist popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Browserslist is used
- Browserslist is a dependency in 13 of the 6,258 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 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 29 projects, and what it is used with below comes from all of them.
- Projects that use it most often also use Jest (51.7%), ESLint (82.8%), dotenv (48.3%).
By coding agent
Often used with
More about Browserslist
Funding
- GitHub Sponsors: https://github.com/ai
- Open Collective: https://opencollective.com/browserslist
- Tidelift: https://tidelift.com/funding/github/npm/browserslist
- 20 GitHub sponsors
More in Build tools and bundlers
Alternatives
Browserslist This page
Pick baseline-browser-mapping when you only need the minimum browser versions for a Baseline year or "widely available", as data in your own code; Browserslist uses it under the hood for its baseline queries.
Get started
Tell your AI assistant
“Add a browserslist setting to package.json ("defaults" unless I say otherwise), pin browserslist@4.29.5 if code calls it directly, and show me the output of npx browserslist so I can see which browsers we support.”
Add your list to package.json (or a .browserslistrc file); build tools that use Browserslist find it on their own.
"browserslist": [ "defaults" ]From github.com/browserslist/browserslist/blob/main/README.md
Check which browsers your setting selects, from the project folder.
npx browserslistFrom github.com/browserslist/browserslist/blob/main/README.md
Call it from your own build code when you need the list as data.
const browserslist = require('browserslist') // Your CSS/JS build tool code function process(source, opts) { const browsers = browserslist(opts.overrideBrowserslist, { stats: opts.stats, path: opts.file, env: opts.env }) // Your code to add features for selected browsers }From github.com/browserslist/browserslist/blob/main/README.md
Mistakes to avoid
Queries like "last 2 versions" read the installed data; old data picks old browsers and adds fixes nobody needs.
"last n versions" alone leaves out popular older versions.
Without the region coverage() uses world numbers; in our run the same list gave 81.9% worldwide and 76.5% of US users.
Baseline queries were added in 4.26.0.
4.28.2 fixed prototype pollution and 4.28.7 fixed unbounded memory growth.
Questions
What does "defaults" mean?
It is the same as "> 0.5%, last 2 versions, Firefox ESR, not dead". In our run it picked 36 browser versions.
Where do tools look for my browser list?
In a .browserslistrc file, the browserslist key in package.json, a browserslist file, or the BROWSERSLIST environment variable, in that order.
Can I target "safe" web features without picking versions?
Yes. Since version 4.26.0 you can write "baseline widely available" or a year like "baseline 2022".
How do I fix the "browsers data (caniuse-lite) is ... old" warning?
Update the caniuse-lite version in your lock file; the update-browserslist-db tool does this for you.
Can I use it in a paid product?
Yes. Browserslist is MIT; the browser data is CC BY 4.0 and needs a mention of caniuse.com if you pass the data on.