{
 "kind": "tool",
 "slug": "baseline-browser-mapping",
 "path": "tools/baseline-browser-mapping/",
 "name": "baseline-browser-mapping",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Dev workflow and config",
   "tools/dev-workflow/"
  ]
 ],
 "lead": "Which browser versions your site must support.",
 "chips": [
  {
   "label": "Dev workflow and config",
   "path": "tools/dev-workflow/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install baseline-browser-mapping"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/web-platform-dx/baseline-browser-mapping"
  },
  {
   "label": "Website",
   "href": "https://github.com/web-platform-dx/baseline-browser-mapping#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "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.",
   "note": "Apache-2.0 allows use in paid and closed-source products.",
   "src": "https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/LICENSE.txt"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 19, 2026",
   "note": "Latest GitHub release Jul 21, 2026. ",
   "src": "https://github.com/web-platform-dx/baseline-browser-mapping"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "55 projects",
   "status": "info",
   "sub": "#25 of 299 in its category",
   "note": "Dependency in 55 public GitHub projects set up for AI coding agents that we scanned (0.9%).",
   "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 baseline-browser-mapping does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "List supported browsers on your help page",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Build for browsers that have Baseline",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Freeze the browser list per release",
       "text": "A library you publish states the same minimum browsers for version 3.2 next year as on the day it shipped.",
       "idea": false
      },
      {
       "title": "Check your visitors against Baseline",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Nudge visitors on very old browsers",
       "text": "Show a short \"please update your browser\" note when a visitor's browser is older than the minimum version on your list.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "baseline-browser-mapping popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "63",
       "of": "/ 100",
       "l": "Gid Score, #825 overall"
      },
      {
       "n": "266M",
       "l": "downloads a week, npm"
      },
      {
       "n": "66",
       "l": "GitHub stars"
      },
      {
       "n": "55",
       "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 baseline-browser-mapping is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "36 projects, 1.1%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "36 projects, 1.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "25 projects, 1.0%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "6 projects, 1.3%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 49.1% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      },
      {
       "l": "In 41.8% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 72.7% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 50.9% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 54.5% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 54.5% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 72.7% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 87.3% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about baseline-browser-mapping",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Dev workflow and config",
       "path": "tools/dev-workflow/",
       "items": [
        {
         "text": "dotenv",
         "path": "tools/dotenv/"
        },
        {
         "text": "Husky",
         "path": "tools/husky/"
        },
        {
         "text": "python-dotenv",
         "path": "tools/python-dotenv/"
        },
        {
         "text": "lint-staged",
         "path": "tools/lint-staged/"
        },
        {
         "text": "concurrently",
         "path": "tools/concurrently/"
        },
        {
         "text": "Rich",
         "path": "tools/rich/"
        },
        {
         "text": "Pydantic Settings",
         "path": "tools/pydantic-settings/"
        },
        {
         "text": "cross-env",
         "path": "tools/cross-env/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "baseline-browser-mapping",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 63",
        "266M/wk"
       ]
      },
      {
       "name": "Browserslist",
       "why": "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.",
       "path": "tools/browserslist/",
       "facts": []
      },
      {
       "name": "Babel Preset Env",
       "why": "Pick Babel's preset-env when you need to actually convert new JavaScript for the chosen browsers, not just know which versions they are.",
       "path": "tools/babel-preset-env/",
       "facts": []
      },
      {
       "name": "postcss-preset-env",
       "why": "Pick postcss-preset-env when you need to turn new CSS into CSS the chosen browsers understand.",
       "path": "tools/postcss-preset-env/",
       "facts": []
      }
     ],
     "more": "Compare baseline-browser-mapping with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Add the package to your project as a development package.",
       "code": "npm install --save-dev baseline-browser-mapping",
       "src": "https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md"
      },
      {
       "text": "Import the functions you need.",
       "code": "import {\n  getCompatibleVersions,\n  getAllVersions,\n  getTimeline,\n} from \"baseline-browser-mapping\";\n",
       "src": "https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md"
      },
      {
       "text": "Ask for the minimum versions of the core browsers for Baseline Widely available.",
       "code": "getCompatibleVersions();",
       "src": "https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Ignoring \"[baseline-browser-mapping] The data in this module is over two months old\" in build logs, or silencing it for good",
       "fix": "Update the package in the build (npm i baseline-browser-mapping@latest -D), or pin a date with widelyAvailableOnDate for reproducible builds",
       "why": "The data is packaged inside each version; old data gives wrong minimum versions for recent target dates."
      },
      {
       "dont": "getCompatibleVersions({ targetYear: 2024, widelyAvailableOnDate: \"2025-01-01\" })",
       "fix": "Pass only one of targetYear or widelyAvailableOnDate",
       "why": "The two options pick different targets and must not be combined."
      },
      {
       "dont": "getCompatibleVersions({ includeKaiOS: true })",
       "fix": "getCompatibleVersions({ includeDownstreamBrowsers: true, includeKaiOS: true })",
       "why": "KaiOS counts as a downstream browser; without includeDownstreamBrowsers the call throws an error."
      },
      {
       "dont": "Putting BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true in .env and expecting the package to read it",
       "fix": "Set it in the build environment, or load .env first with process.loadEnvFile() or dotenv",
       "why": "The package does not read .env files by itself."
      },
      {
       "dont": "Expecting Samsung Internet or Opera in the default result",
       "fix": "Pass includeDownstreamBrowsers true (our run then listed Samsung Internet 27.0 for Widely available)",
       "why": "The default output covers only the seven core browsers."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Do I need to install it myself?",
       "a": "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.",
       "evidence": {
        "url": "https://github.com/browserslist/browserslist/blob/main/README.md",
        "quote": "includes browsers outside the core browser set that support the requested Baseline feature set based on their Chromium or Gecko version. See baseline-browser-mapping."
       }
      },
      {
       "q": "What does \"Widely available\" mean in years?",
       "a": "A feature is Widely available 30 months after it started working in all core browsers.",
       "evidence": {
        "url": "https://web.dev/baseline",
        "quote": "Widely available: 30 months have passed since the newly interoperable date."
       }
      },
      {
       "q": "Which browsers are in the default list?",
       "a": "Chrome, Edge, Firefox and Safari, on desktop and mobile; other browsers only with includeDownstreamBrowsers.",
       "evidence": {
        "url": "https://web.dev/baseline",
        "quote": "The core browser set Chrome (desktop and Android) Edge Firefox (desktop and Android) Safari (macOS and iOS)"
       }
      },
      {
       "q": "How do I stop the \"data is over two months old\" warning?",
       "a": "Update the package, or pass suppressWarnings true, or set BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true for the build.",
       "evidence": {
        "url": "https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md",
        "quote": "Alternatively, you can use the BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true environment variable when running your build process."
       }
      },
      {
       "q": "Can it run in the browser?",
       "a": "Yes. Its module has no Node-only imports; our demo ran it in a web page.",
       "evidence": {
        "url": "https://github.com/web-platform-dx/baseline-browser-mapping/blob/main/README.md",
        "quote": "If you want to load the script and data directly in a web page without hosting it yourself, consider using a CDN"
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm baseline-browser-mapping"
  ],
  [
   "Category",
   "Dev workflow and config"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "62.6"
  ],
  [
   "Rank in category",
   "#25 of 299"
  ],
  [
   "GitHub",
   "web-platform-dx/baseline-browser-mapping"
  ],
  [
   "Last change",
   "Nov 19, 2026"
  ]
 ],
 "good": [
  "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."
 ],
 "checked_line": "Read by AgentGid from 7 official pages, card checked Nov 11, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/web-platform-dx.png"
}