# Browserslist — card for AI agents

Share target browser specifications between build tools like Autoprefixer and Babel.

Category: Build tools and bundlers · npm package `browserslist` · latest version 4.29.5 (checked 2026-11-01)
Install: `npm install browserslist`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 67.3 (#534 of all tools, 29 of 185 in its category)
- Used in 13 public projects set up for AI coding agents (0.2%)
- Downloads last week: 282,034,371 (as of 2026-11-24), +37.4% over 4 weeks
- GitHub stars: 13,590 (as of 2026-11-24)
- Last push: 2026-11-16

## Often used with
Jest 51.7%, ESLint 82.8%, dotenv 48.3%, Tailwind CSS 69.0%, Testing Library 37.9%, Babel (JavaScript) 34.5%

## Links
- AgentGid page: https://agentgid.com/tools/browserslist/
- Homepage: https://github.com/browserslist/browserslist#readme
- Repository: https://github.com/browserslist/browserslist


## Browserslist: one list of browsers your site supports

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?".

### Where to use 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.

### How to start
- Add your list to package.json (or a .browserslistrc file); build tools that use Browserslist find it on their own.

```
"browserslist": [
    "defaults"
  ]
```

- Check which browsers your setting selects, from the project folder.

```
npx browserslist
```

- 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
}
```


### License
Browserslist itself is free under the MIT license, also in paid products; keep its license notice. The browser usage data it reads is CC BY 4.0, which asks you to mention caniuse.com if you pass that data on.

### Good to know
- The list depends on the browser data installed with it. Old data means "last 2 versions" picks old browsers, so refresh it regularly.
- With no setting at all, tools fall back to "> 0.5%, last 2 versions, Firefox ESR, not dead".
- For phone browsers like Chrome on Android, the data knows only the newest version, so version ranges return just that one.
- The makers ask you not to drop browsers just because you do not know them; Opera Mini and QQ Browser have large audiences.
- Shared settings from other packages load only if the package name starts with browserslist-config-, for safety.

Checked 2026-11-11 against: https://github.com/browserslist/browserslist/blob/main/README.md, https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md, https://github.com/browserslist/browserslist/blob/main/LICENSE, https://github.com/browserslist/browserslist/blob/main/node.js, https://github.com/browserslist/update-db/blob/main/README.md, https://github.com/browserslist/caniuse-lite/blob/main/README.md, https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md, https://browsersl.ist/, https://registry.npmjs.org/browserslist, https://registry.npmjs.org/browserslist/4.29.5, https://registry.npmjs.org/node-releases/2.0.63

### Mistakes to avoid
- Don't: Leaving caniuse-lite at the version from the day the project was created → Do: Refresh the browser data in the lock file regularly (update-browserslist-db, or update caniuse-lite with your package manager) and commit the lock file (Queries like "last 2 versions" read the installed data; old data picks old browsers and adds fixes nobody needs.)
- Don't: Writing only "last 2 versions" as the whole setting → Do: Use "defaults", or "last 2 versions, not dead, > 0.2%" if you change it ("last n versions" alone leaves out popular older versions.)
- Don't: Calling browserslist.coverage(browserslist('> 1% in US')) and reading it as US coverage → Do: Pass the region as the second argument, browserslist.coverage(list, 'US') (Without the region coverage() uses world numbers; in our run the same list gave 81.9% worldwide and 76.5% of US users.)
- Don't: Using "baseline widely available" on an older browserslist pinned in the lock file → Do: Make sure browserslist is 4.26.0 or newer (4.29.5 checked) (Baseline queries were added in 4.26.0.)
- Don't: Keeping a browserslist older than 4.28.2 in a tool that accepts queries from users → Do: Update to 4.29.5 (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.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
