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

baseline-browser-mapping

Which browser versions your site must support.

Dev workflow and configNPM

GitHubWebsite

1. License

“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.”

Apache-2.0 allows use in paid and closed-source products.

github.com/web-platform-dx/baseline-browser-mapping/blob/main/LICENSE.txt

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 baseline-browser-mapping does

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.

What people build with 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 Idea

Show a short "please update your browser" note when a visitor's browser is older than the minimum version on your list.

baseline-browser-mapping popularity

63 / 100
Gid Score, #825 overall
266M
downloads a week, npm
66
GitHub stars
55
agent projects use it
baseline-browser-mapping: downloads per weeknpm, baseline-browser-mapping 266,182,184
baseline-browser-mapping: GitHub starsweb-platform-dx/baseline-browser-mapping 66

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How baseline-browser-mapping is used

  • baseline-browser-mapping is a dependency in 55 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.1% of the 4,867 JavaScript/TypeScript ones), #25 of 299 in dev workflow and config.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 317; those are left out of every share on this page.
  • Projects that use it most often also use Radix UI (49.1%), Testing Library (41.8%), React (72.7%).

By coding agent

36 projects, 1.1%
36 projects, 1.2%
25 projects, 1.0%
6 projects, 1.3%

Often used with

In 49.1% of its projects
In 41.8% of its projects
In 72.7% of its projects
In 50.9% of its projects
In 54.5% of its projects
In 54.5% of its projects
In 72.7% of its projects
In 87.3% of its projects

More about baseline-browser-mapping

More in Dev workflow and config

Alternatives

baseline-browser-mapping This page

Apache-2.0Gid 63266M/wk

Browserslist

Pick Browserslist when you want one shared browser list for all build tools, with queries like "> 0.5%" or "last 2 versions" as well as Baseline ones; it uses this package for the Baseline queries.

Babel Preset Env

Pick Babel's preset-env when you need to actually convert new JavaScript for the chosen browsers, not just know which versions they are.

postcss-preset-env

Pick postcss-preset-env when you need to turn new CSS into CSS the chosen browsers understand.

Compare baseline-browser-mapping with another tool

Get started

Tell your AI assistant

“Add baseline-browser-mapping@2.11.35 as a dev package, call getCompatibleVersions({ widelyAvailableOnDate:"<release date>" }) and write the minimum browser versions it returns into our docs and Browserslist config.”

  1. Add the package to your project as a development package.

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

    From github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md

  2. Import the functions you need.

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

    From github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md

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

    getCompatibleVersions();

    From github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md

Mistakes to avoid

Ignoring "[baseline-browser-mapping] The data in this module is over two months old" in build logs, or silencing it for good
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.

getCompatibleVersions({ targetYear: 2024, widelyAvailableOnDate: "2025-01-01" })
Pass only one of targetYear or widelyAvailableOnDate

The two options pick different targets and must not be combined.

getCompatibleVersions({ includeKaiOS: true })
getCompatibleVersions({ includeDownstreamBrowsers: true, includeKaiOS: true })

KaiOS counts as a downstream browser; without includeDownstreamBrowsers the call throws an error.

Putting BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true in .env and expecting the package to read it
Set it in the build environment, or load .env first with process.loadEnvFile() or dotenv

The package does not read .env files by itself.

Expecting Samsung Internet or Opera in the default result
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.