API

Static endpoints emitted at build. All responses are cacheable and safe to curl.

GET /api/index.json

Full manifest — components, patterns, tokens, voice with summary fields and counts.

GET /api/components/<slug>.json

Full component record: metadata, resolved tokens, related, source code.

GET /api/patterns/<slug>.json

Pattern record, plus resolved components_used.

GET /bundles/<slug>.md

Copy-paste markdown bundle. Paste into any AI agent.

GET /tokens.json

All tokens keyed by <category>.<name>.

GET /search-index.json

Fuzzy-search index (Fuse.js shape).

Example

Grab a component's full context bundle and pipe it straight into your clipboard:

curl -s https://system.djasha.me/bundles/magnetic-button.md | pbcopy

Stability

These endpoint shapes are frozen for v1. Phase 2 will add authenticated POST endpoints via the Payload admin — existing GET shapes will remain backward-compatible.