返回 2026-06-26
🛠 工具 / 开源

simonw/browser-compat-dbsimonw/browser-compat-db

simonwillison.net·2026-06-24 节选正文

受 Mozilla 最新推出的 MDN MCP 服务启发,开发者将包含全面浏览器兼容性数据的 mdn/browser-compat-data 仓库转换为了 SQLite 数据库。该工具能更好地为大语言模型(LLM)提供结构化的 API 兼容性查询支持。通过将庞大的兼容性数据转化为单文件数据库,大幅提升了数据检索的灵活性和集成便利性。这种方案为构建可靠的 AI 编程助手提供了高质量的数据底座。

Simon Willison

simonw/browser-compat-db. Inspired by Mozilla's new MDN MCP service - source code here - I decided to try converting their comprehensive mdn/browser-compat-data repository full of browser compatibility data into a SQLite database.

This new GitHub repo includes a Claude Code for web (Opus 4.8) generated script for doing that using sqlite-utils.

I wanted the resulting ~66MB SQLite database to be available via the GitHub CDN with open CORS headers. GitHub releases don't have those, but any file stored in a regular GitHub repository does - so I had Codex Desktop (GPT-5.5) build a GitHub Actions workflow that builds the database and then force-pushes it to a db "orphan" branch.

You can download the resulting database from here, and since it's hosted with open CORS headers you can also explore it with Datasette Lite.

需要完整排版与评论请前往来源站点阅读。