# baseline-browser-mapping — card for AI agents

Maps browser versions to their maximum supported Baseline features for compatibility targeting.

Category: Dev workflow and config · npm package `baseline-browser-mapping` · latest version 2.11.34 (checked 2026-11-01)
Install: `npm install baseline-browser-mapping`
License: Apache-2.0 (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: 62.6 (#825 of all tools, 59 of 299 in its category)
- Used in 55 public projects set up for AI coding agents (0.9%)
- Downloads last week: 266,182,184 (as of 2026-11-24), +42.6% over 4 weeks
- GitHub stars: 66 (as of 2026-11-24)
- Last push: 2026-11-19

## Often used with
Radix UI 49.1%, Testing Library 41.8%, React 72.7%, Class Variance Authority 50.9%, clsx 54.5%, Lucide React 54.5%

## Links
- AgentGid page: https://agentgid.com/tools/baseline-browser-mapping/
- Homepage: https://github.com/web-platform-dx/baseline-browser-mapping#readme
- Repository: https://github.com/web-platform-dx/baseline-browser-mapping


## baseline-browser-mapping: which browser versions your site must support

baseline-browser-mapping is a free JavaScript package from the W3C WebDX Community Group. It turns "Baseline", the web's shared label for features that work in all major browsers, into exact minimum versions of Chrome, Edge, Firefox and Safari. Build tools such as Browserslist read it, so most projects get it without asking for it.

### Where to use it
- List supported browsers on your help page: Your site's help or about page says "works in Chrome 124+, Safari 17.4+" and the numbers come from the Baseline target you build for, not from a guess.
- Build for browsers that have Baseline: Your build tools convert new CSS and JavaScript only as far as browsers with the Baseline feature set need, so pages stay small and still work.
- Freeze the browser list per release: A library you publish states the same minimum browsers for version 3.2 next year as on the day it shipped.
- Check your visitors against Baseline: Join the browser versions in your analytics with this data to see how many visitors have every Baseline feature before you use a new one.
- Nudge visitors on very old browsers: Show a short "please update your browser" note when a visitor's browser is older than the minimum version on your list. (idea, not from the official pages)

### How to start
- Add the package to your project as a development package.

```
npm install --save-dev baseline-browser-mapping
```

- Import the functions you need.

```
import {
  getCompatibleVersions,
  getAllVersions,
  getTimeline,
} from "baseline-browser-mapping";
```

- Ask for the minimum versions of the core browsers for Baseline Widely available.

```
getCompatibleVersions();
```


### License
Free to use in paid and closed products under the Apache-2.0 license. If you ship its files, keep the license text with them; no credit on your site is needed.

### Good to know
- The browser data is built into the package and goes stale. When it is over two months old and you target a recent date, it prints a warning asking you to update.
- For the Widely available target, old data matters little; for Newly available, update often.
- The project is active. It checks its sources daily and ships new versions often; 2.11.35 came out on 2 November 2026.
- Versions of Samsung Internet, Opera, UC, Yandex and other browsers built on Chrome or Firefox engines are an estimate for some of them. They are left out unless you ask for them.
- It runs fully on your machine; nothing is sent anywhere when you call it.

Checked 2026-11-11 against: https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md, https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/LICENSE.txt, https://registry.npmjs.org/baseline-browser-mapping, https://registry.npmjs.org/baseline-browser-mapping/2.11.35, https://registry.npmjs.org/browserslist/latest, https://github.com/browserslist/browserslist/blob/main/README.md, https://web.dev/baseline

### Mistakes to avoid
- Don't: Ignoring "[baseline-browser-mapping] The data in this module is over two months old" in build logs, or silencing it for good → Do: Update the package in the build (npm i baseline-browser-mapping@latest -D), or pin a date with widelyAvailableOnDate for reproducible builds (The data is packaged inside each version; old data gives wrong minimum versions for recent target dates.)
- Don't: getCompatibleVersions({ targetYear: 2024, widelyAvailableOnDate: "2025-01-01" }) → Do: Pass only one of targetYear or widelyAvailableOnDate (The two options pick different targets and must not be combined.)
- Don't: getCompatibleVersions({ includeKaiOS: true }) → Do: getCompatibleVersions({ includeDownstreamBrowsers: true, includeKaiOS: true }) (KaiOS counts as a downstream browser; without includeDownstreamBrowsers the call throws an error.)
- Don't: Putting BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true in .env and expecting the package to read it → Do: Set it in the build environment, or load .env first with process.loadEnvFile() or dotenv (The package does not read .env files by itself.)
- Don't: Expecting Samsung Internet or Opera in the default result → Do: Pass includeDownstreamBrowsers true (our run then listed Samsung Internet 27.0 for Widely available) (The default output covers only the seven core browsers.)

### Questions
- Do I need to install it myself? Usually not. Browserslist uses it for its Baseline queries, so it arrives with most front-end build setups; install it yourself when you call its functions directly.
- What does "Widely available" mean in years? A feature is Widely available 30 months after it started working in all core browsers.
- Which browsers are in the default list? Chrome, Edge, Firefox and Safari, on desktop and mobile; other browsers only with includeDownstreamBrowsers.
- How do I stop the "data is over two months old" warning? Update the package, or pass suppressWarnings true, or set BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true for the build.
- Can it run in the browser? Yes. Its module has no Node-only imports; our demo ran it in a web page.

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