Skip to content

mdn/bcd-utils

Repository files navigation

bcd-utils

Utilities for processing MDN's Browser Compatibility Data (BCD).

This monorepo includes tools to process browser-compat-data (BCD) for use in MDN's frontend (yari) and backend (rumba).

Structure

This repository consists of two packages:

/api

Generates JSON files from BCD to be consumed by MDN's yari frontend, powering the BCD tables.

  • Usage:

    cd api
    npm ci
    npm update @mdn/browser-compat-data
    npm run generate
  • Output:
    Writes one JSON file per BCD feature to /api/out/current/*.json and /api/out/<version>/*.json.

/updates

Generates JSON files from BCD to be consumed by MDN's rumba backend, powering the Updates feature.

  • Usage:

    cd updates
    npm ci
    npm run updates
  • Output:
    Writes JSON files for BCD updates by browser release to /updates/v0/bcd-updates-*.json.

Contributing

Please read the CODE_OF_CONDUCT.md before contributing.

License

This project is licensed under MPL-2.0.