Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Browserslist

One list of browsers your site supports.

Build tools and bundlersNPM

GitHubWebsite

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/LICENSE

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

67 / 100
Gid Score, #534 overall
282M
downloads a week, npm
13.6K
GitHub stars
13
agent projects use it
Browserslist: downloads per weeknpm, browserslist 282,034,371
Browserslist: GitHub starsbrowserslist/browserslist 13,590

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

9 projects, 0.3%
7 projects, 0.2%

Often used with

In 51.7% of its projects
In 82.8% of its projects
In 48.3% of its projects
In 69.0% of its projects
In 37.9% of its projects
In 34.5% of its projects
In 27.6% of its projects
In 75.9% of its projects

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

See all

More in Build tools and bundlers

Alternatives

Browserslist This page

MITGid 67282M/wk

baseline-browser-mapping

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.

Compare Browserslist with another tool

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.”

  1. 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

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

    npx browserslist

    From github.com/browserslist/browserslist/blob/main/README.md

  3. 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

Leaving caniuse-lite at the version from the day the project was created
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.

Writing only "last 2 versions" as the whole setting
Use "defaults", or "last 2 versions, not dead, > 0.2%" if you change it

"last n versions" alone leaves out popular older versions.

Calling browserslist.coverage(browserslist('> 1% in US')) and reading it as US coverage
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.

Using "baseline widely available" on an older browserslist pinned in the lock file
Make sure browserslist is 4.26.0 or newer (4.29.5 checked)

Baseline queries were added in 4.26.0.

Keeping a browserslist older than 4.28.2 in a tool that accepts queries from users
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.