Auto-generated JSON and Markdown endpoints for every game, variant, oracle table, and entity. No auth, no rate limits, no manual updates.
Every published game gets its own namespace. The pattern is consistent — only the slug changes.
/api/rules/{slug}/meta.json
/api/rules/{slug}/rulebook.md
/api/rules/{slug}/variants/{variant}.md
/api/rules/{slug}/games/{game}.md
/api/rules/{slug}/pages/{section}/{page}.md
/api/rules/{slug}/data/{file}.json
/api/rules/{slug}/oracles.json
Loaded live from /api/index.json. This list updates automatically on every build.
| Path | Type | Description |
|---|
Old bundled snapshots being replaced. Consumers should migrate to the /api/ equivalents.
| Old Location | Replacement | Consumer |
|---|
The API is a build artifact. No server, no database, no Worker. Adding a game or variant to the source automatically exposes it at a predictable URL on the next deploy.
games/backgammon/content/variants/standard.md
dist/api/rules/backgammon/variants/standard.md
https://rules.moddable.games/api/rules/backgammon/variants/standard.md
To extend the API with new metadata fields, add them to rulebook frontmatter. The build reads whatever is there — no registration, no schema to update.