{
 "kind": "tool",
 "slug": "browserslist",
 "path": "tools/browserslist/",
 "name": "Browserslist",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Build tools and bundlers",
   "tools/build-tools/"
  ]
 ],
 "lead": "One list of browsers your site supports.",
 "chips": [
  {
   "label": "Build tools and bundlers",
   "path": "tools/build-tools/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install browserslist"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/browserslist/browserslist"
  },
  {
   "label": "Website",
   "href": "https://github.com/browserslist/browserslist#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "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",
   "note": "MIT allows use in paid and closed-source apps and build pipelines.",
   "src": "https://github.com/browserslist/browserslist/blob/main/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 16, 2026",
   "note": "Latest GitHub release Nov 16, 2026. ",
   "src": "https://github.com/browserslist/browserslist"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "13 projects",
   "status": "info",
   "sub": "#72 of 185 in its category",
   "note": "Dependency in 13 public GitHub projects set up for AI coding agents that we scanned (0.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 11, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Browserslist does",
   "parts": [
    {
     "t": "prose",
     "text": "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?\"."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Same browsers for CSS and JavaScript",
       "text": "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.",
       "idea": false
      },
      {
       "title": "See what your setting really means",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Support only well-established features",
       "text": "Target the browsers that support every web feature that has worked everywhere for at least 30 months, instead of guessing version numbers.",
       "idea": false
      },
      {
       "title": "Follow your own visitors, not the world",
       "text": "A shop with mostly US or mostly mobile visitors bases its list on that country's share or on its own analytics numbers.",
       "idea": false
      },
      {
       "title": "Lighter build for new browsers",
       "text": "Keep two lists, for example \"modern\" and \"production\", and pick one per build with an environment setting.",
       "idea": false
      },
      {
       "title": "Warn visitors on old browsers",
       "text": "Show a gentle \"your browser is not supported\" note to people whose browser falls outside your list.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Browserslist popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "67",
       "of": "/ 100",
       "l": "Gid Score, #534 overall"
      },
      {
       "n": "282M",
       "l": "downloads a week, npm"
      },
      {
       "n": "13.6K",
       "l": "GitHub stars"
      },
      {
       "n": "13",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Browserslist is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "9 projects, 0.3%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "7 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 51.7% of its projects",
       "v": "Jest",
       "path": "tools/jest/"
      },
      {
       "l": "In 82.8% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 48.3% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 69.0% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 37.9% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 34.5% of its projects",
       "v": "Babel (JavaScript)",
       "path": "tools/babel-npm/"
      },
      {
       "l": "In 27.6% of its projects",
       "v": "baseline-browser-mapping",
       "path": "tools/baseline-browser-mapping/"
      },
      {
       "l": "In 75.9% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Browserslist",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/ai",
        "Open Collective: https://opencollective.com/browserslist",
        "Tidelift: https://tidelift.com/funding/github/npm/browserslist",
        "20 GitHub sponsors"
       ]
      },
      {
       "title": "More in Build tools and bundlers",
       "path": "tools/build-tools/",
       "items": [
        {
         "text": "Vite",
         "path": "tools/vite/"
        },
        {
         "text": "Turborepo",
         "path": "tools/turbo/"
        },
        {
         "text": "esbuild",
         "path": "tools/esbuild/"
        },
        {
         "text": "Babel (JavaScript)",
         "path": "tools/babel-npm/"
        },
        {
         "text": "Laravel Vite Plugin",
         "path": "tools/laravel-vite-plugin/"
        },
        {
         "text": "React Compiler Babel Plugin",
         "path": "tools/babel-plugin-react-compiler/"
        },
        {
         "text": "Nx",
         "path": "tools/nx/"
        },
        {
         "text": "vite-tsconfig-paths",
         "path": "tools/vite-tsconfig-paths/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Browserslist",
       "me": true,
       "facts": [
        "MIT",
        "Gid 67",
        "282M/wk"
       ]
      },
      {
       "name": "baseline-browser-mapping",
       "why": "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.",
       "path": "tools/baseline-browser-mapping/",
       "facts": []
      }
     ],
     "more": "Compare Browserslist with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Add your list to package.json (or a .browserslistrc file); build tools that use Browserslist find it on their own.",
       "code": "  \"browserslist\": [\n    \"defaults\"\n  ]\n",
       "src": "https://github.com/browserslist/browserslist/blob/main/README.md"
      },
      {
       "text": "Check which browsers your setting selects, from the project folder.",
       "code": "npx browserslist",
       "src": "https://github.com/browserslist/browserslist/blob/main/README.md"
      },
      {
       "text": "Call it from your own build code when you need the list as data.",
       "code": "const browserslist = require('browserslist')\n\n// Your CSS/JS build tool code\nfunction process(source, opts) {\n  const browsers = browserslist(opts.overrideBrowserslist, {\n    stats: opts.stats,\n    path: opts.file,\n    env: opts.env\n  })\n  // Your code to add features for selected browsers\n}\n",
       "src": "https://github.com/browserslist/browserslist/blob/main/README.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Leaving caniuse-lite at the version from the day the project was created",
       "fix": "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",
       "why": "Queries like \"last 2 versions\" read the installed data; old data picks old browsers and adds fixes nobody needs."
      },
      {
       "dont": "Writing only \"last 2 versions\" as the whole setting",
       "fix": "Use \"defaults\", or \"last 2 versions, not dead, > 0.2%\" if you change it",
       "why": "\"last n versions\" alone leaves out popular older versions."
      },
      {
       "dont": "Calling browserslist.coverage(browserslist('> 1% in US')) and reading it as US coverage",
       "fix": "Pass the region as the second argument, browserslist.coverage(list, 'US')",
       "why": "Without the region coverage() uses world numbers; in our run the same list gave 81.9% worldwide and 76.5% of US users."
      },
      {
       "dont": "Using \"baseline widely available\" on an older browserslist pinned in the lock file",
       "fix": "Make sure browserslist is 4.26.0 or newer (4.29.5 checked)",
       "why": "Baseline queries were added in 4.26.0."
      },
      {
       "dont": "Keeping a browserslist older than 4.28.2 in a tool that accepts queries from users",
       "fix": "Update to 4.29.5",
       "why": "4.28.2 fixed prototype pollution and 4.28.7 fixed unbounded memory growth."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "What does \"defaults\" mean?",
       "a": "It is the same as \"> 0.5%, last 2 versions, Firefox ESR, not dead\". In our run it picked 36 browser versions.",
       "evidence": {
        "url": "https://github.com/browserslist/browserslist/blob/main/README.md",
        "quote": "`defaults`: Browserslist’s default browsers (`> 0.5%, last 2 versions, Firefox ESR, not dead`)."
       }
      },
      {
       "q": "Where do tools look for my browser list?",
       "a": "In a .browserslistrc file, the browserslist key in package.json, a browserslist file, or the BROWSERSLIST environment variable, in that order.",
       "evidence": {
        "url": "https://github.com/browserslist/browserslist/blob/main/README.md",
        "quote": "Browserslist will use browsers and Node.js versions query from one of these sources"
       }
      },
      {
       "q": "Can I target \"safe\" web features without picking versions?",
       "a": "Yes. Since version 4.26.0 you can write \"baseline widely available\" or a year like \"baseline 2022\".",
       "evidence": {
        "url": "https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md",
        "quote": "Added Baseline queries"
       }
      },
      {
       "q": "How do I fix the \"browsers data (caniuse-lite) is ... old\" warning?",
       "a": "Update the caniuse-lite version in your lock file; the update-browserslist-db tool does this for you.",
       "evidence": {
        "url": "https://github.com/browserslist/update-db/blob/main/README.md",
        "quote": "`npx update-browserslist-db@latest` updates `caniuse-lite` version in your npm, yarn, or pnpm lock file."
       }
      },
      {
       "q": "Can I use it in a paid product?",
       "a": "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.",
       "evidence": {
        "url": "https://github.com/browserslist/caniuse-lite/blob/main/README.md",
        "quote": "The data in this repo is available for use under a CC BY 4.0 license"
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm browserslist"
  ],
  [
   "Category",
   "Build tools and bundlers"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "67.3"
  ],
  [
   "Rank in category",
   "#72 of 185"
  ],
  [
   "GitHub",
   "browserslist/browserslist"
  ],
  [
   "Last change",
   "Nov 16, 2026"
  ]
 ],
 "good": [
  "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."
 ],
 "checked_line": "Read by AgentGid from 11 official pages, card checked Nov 11, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/browserslist.png"
}