MCPcopy Index your code
hub / github.com/browserslist/browsersl.ist

github.com/browserslist/browsersl.ist @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
67 symbols 197 edges 43 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Browserslist Website

Browserslist logo by Anton Popov

This website uses Browserslist and Can I Use to display the compatible browsers for a browsers query.

browsersl.ist

HTTP API

You can use the site API in your own applications.

https://browsersl.ist/api/browsers?q=defaults&region=alt-as

Response example

// https://browsersl.ist/api/browsers?q=defaults+and+supports+es6-module&region=alt-as

{
  "config": ">0.3%",
  "lint": [
    {
      "id": "countryWasIgnored",
      "message": "Less than 80% coverage in `China`, `Nigeria`, `Tanzania`, `Ghana`, and `Uganda` regions"
    }
  ],
  "region": "alt-as",
  "coverage": 88.44,
  "versions": {
    "browserslist": "4.21.3",
    "caniuse": "1.0.30001381"
  },
  "updated": 1675156330646,
  "browsers": [
    {
      "id": "chrome",
      "name": "Chrome",
      "coverage": 17.06,
      "versions": {
        "102": 0.72,
        "103": 16.32
      }
    }
    ...
  ]
}

Errors

If you send a request with an error, you will receive error message with the status 400.

// https://browsersl.ist/api/browsers?q=>0%&region=XX

{
  "message": "Unknown region name `XX`."
}

Development

We recommend installing Prettier and EditorConfig plugins to your text editor.

To run a local copy for development:

  1. Install Node.js 22 and pnpm 9.
  2. Install dependencies:

sh pnpm install

  1. Run local server with client-side watcher.

sh pnpm start

To run local server in production mode:

./scripts/run-image.sh

Core symbols most depended-on inside this repo

createTag
called by 16
client/lib/utils.js
getBrowsers
called by 9
server/lib/get-browsers.js
sendError
called by 4
server/lib/send-response.js
parse
called by 3
client/view/ConfigLink/ConfigLink.js
submitForm
called by 3
client/view/Form/Form.js
configToQuery
called by 3
server/lib/parse-config.js
round
called by 3
server/lib/get-coverage.js
formatPercent
called by 2
client/lib/utils.js

Shape

Function 64
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

client/view/Form/Form.js11 symbols
client/view/Browsers/Browsers.js7 symbols
server/lib/parse-config.js6 symbols
server/lib/get-coverage.js5 symbols
client/scripts/build-stats.js5 symbols
client/view/Form/loadBrowsers.js4 symbols
server/lib/send-response.js3 symbols
server/handlers/static.js3 symbols
client/view/Alert/Alert.js3 symbols
client/lib/utils.js3 symbols
server/lib/get-browsers.js2 symbols
client/view/Versions/Versions.js2 symbols

For agents

$ claude mcp add browsersl.ist \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact