browser‑compat‑db: Convert MDN Browser Compatibility Data to SQLite
Download the browser‑compat.db from the db branch and load it into your SQLite environment or Datasette for quick compatibility queries.
Download the browser‑compat.db from the db branch, load it into your SQLite instance or Datasette, and use it to query compatibility data.
Summary
Simon created the browser‑compat‑db repository to convert the extensive mdn/browser‑compat‑data into a ~66 MB SQLite database. The build script, generated by Claude Code (Opus 4.8), uses sqlite‑utils to transform the JSON data into a queryable SQLite file. The database is hosted on GitHub CDN with open CORS headers, enabling direct download and exploration via Datasette Lite.
A GitHub Actions workflow builds the database and force‑pushes it to a db orphan branch. The resulting database can be downloaded from the db branch and explored at https://lite.datasette.io/?url=… , providing developers with a lightweight, programmatic source of browser compatibility information.
Key changes
- Converted mdn/browser‑compat‑data to ~66 MB SQLite database
- Generated build_db.py using Claude Code (Opus 4.8)
- Hosted database on GitHub CDN with open CORS headers
- GitHub Actions workflow builds DB and force‑pushes to db orphan branch
- Database available at https://github.com/simonw/browser‑compat‑db/blob/db/browser‑compat.db
- Can be explored via Datasette Lite at https://lite.datasette.io/?url=…
- Provides programmatic access to compatibility data
- Enables integration into tools or services