View all files | ||||
https://github.com/mdn/browser-compat-data
The browser-compat-data ("BCD") project contains machine-readable browser (and JavaScript runtime) compatibility data for Web technologies, such as Web APIs, JavaScript features, CSS properties and more. Our goal is to document accurate compatibility data for Web technologies, so web developers may write cross-browser compatible websites easier. BCD is used in web apps and software such as MDN Web Docs, CanIUse, Visual Studio Code, WebStorm and more.
Read how this project is governed.
Chat with us on Matrix at chat.mozilla.org#mdn!
Are you interested in contributing to this project? Check out the Contributing to browser-compat-data documentation.
Tip
Looking for something? Consult the alphabetical index of the project documentation.
You can install @mdn/browser-compat-data as a node package.
Then, you can import BCD into your project with either import or require():
You can import @mdn/browser-compat-data using a CDN.
You can obtain the raw compatibility data for @mdn/browser-compat-data using a CDN and loading the data.json file included in releases.
Once you have imported BCD, you can access the compatibility data for any feature by accessing the properties of the dictionary.
BCD exports TypeScript type definitions. Type definitions are automatically generated from the schema definitions.
The @mdn/browser-compat-data package contains a tree of objects, with support and browser data objects at their leaves. There are over 15,000 features in the dataset; this documentation highlights significant portions, but many others exist at various levels of the tree.
The definitive description of the format used to represent individual features and browsers is the schema definitions.
Apart from the explicitly documented objects below, feature-level support data may change at any time. See Semantic versioning policy for details.
The package contains the following top-level objects:
An object containing the following package metadata:
Data for Web API features.
Data for browsers and JavaScript runtimes. See the browser schema for details.
Data for CSS features, including:
Data for HTML features, including:
Data for HTTP features, including:
Data for JavaScript language features, including:
Data for MathML features, including:
Data for Media types, including:
An image type is considered supported if it displays correctly when used in an <img> element's src attribute, or as a CSS background-image.
Data for SVG features, including:
Data for WebAssembly features.
Data for WebDriver features, including:
Data for WebExtensions features, including:
For the purposes of semantic versioning (SemVer), the public API consists of:
The details of browser compatibility change frequently, as browsers ship new features, standards organizations revise specifications, and Web developers discover new bugs. We routinely publish updates to the package to reflect these changes.
You should expect lower-level namespaces, feature data, and browser data to be added, removed, or modified at any time. That said, we strive to communicate changes and preserve backward compatibility; if you rely on a currently undocumented portion of the package and want SemVer to apply to it, please open an issue.
Now that you know what this project is, let's mention what this project isn't. This project is not:
If you find a problem with the compatibility data (such as incorrect version numbers) or there is a new web feature you think we should document, please file a bug.
Thank you for your interest in contributing to this project! See Contributing to browser-compat-data for more information.
Here are some projects using the data, as an npm module or directly:
Thanks to:
|
The BrowserStack Open Source Program for testing services |
Sauce Labs Open Source for testing services |
LambdaTest Open Source for testing services |