Registry
AI-readable component metadata for LLMs and code generation tools, generated from the source.
What it is
The registry describes 84 components and 9 blocks. It is generated from the real TypeScript types, the variant definitions and the demos on this site, so it cannot drift from the code. The CLI, this site and the Figma plugin all read it.
Files
- /llms.txtIndex of every component and block, for LLM tools
- /ai-usage.mdRules and a component reference for code generation
- /registry.jsonAll components: props, variants, slots, examples
- /schema.jsonJSON Schema for registry.json
- /components/button.mdOne Markdown file per component
Shape
{
"name": "button",
"title": "Button",
"category": "Actions",
"description": "Primary interactive control...",
"platforms": {
"web": {
"import": "@xerobi/ui/button",
"exports": [{ "name": "Button", "kind": "component", "props": [...] }],
"variants": { "variant": ["default", "outline", ...], "size": [...] },
"slots": ["button"],
"examples": [{ "title": "Variants", "code": "..." }]
}
}
}Platforms
Today the registry describes the web library. Each entry keeps its data under platforms.web, and the schema reserves reactNative and flutter, so those can be generated into the same files without changing consumers. The design tokens they share already exist for both platforms.