baseline-browser-mapping
Which browser versions your site must support.
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.txt2. Maintained
Latest GitHub release Jul 21, 2026.
github.com/web-platform-dx/baseline-browser-mapping3. Used by agents' projects
Dependency in 55 public GitHub projects set up for AI coding agents that we scanned (0.9%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
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
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
Often used with
More about baseline-browser-mapping
More in Dev workflow and config
Alternatives
baseline-browser-mapping This page
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.
Pick Babel's preset-env when you need to actually convert new JavaScript for the chosen browsers, not just know which versions they are.
Pick postcss-preset-env when you need to turn new CSS into CSS the chosen browsers understand.
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.”
Add the package to your project as a development package.
npm install --save-dev baseline-browser-mappingFrom github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md
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
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
The data is packaged inside each version; old data gives wrong minimum versions for recent target dates.
The two options pick different targets and must not be combined.
KaiOS counts as a downstream browser; without includeDownstreamBrowsers the call throws an error.
The package does not read .env files by itself.
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.