@zephrui/ai-registry
v0.1.1
Published
Machine-readable component registry and schemas for AI tools
Downloads
230
Readme
@zephrui/ai-registry
Machine-readable component registry for the Zephr design system. Powers the MCP server, CLI, and docs playground.
Install
npm install @zephrui/ai-registryUsage
import {
searchComponents,
getComponentSpec,
generateComponentPrompt,
listComponents,
getTemplateCatalog
} from "@zephrui/ai-registry";
// Search by name or intent
const results = searchComponents("dashboard");
// Get full spec (props schema, a11y notes, AI hints)
const spec = getComponentSpec("button");
// Generate a prompt for any AI assistant
const prompt = generateComponentPrompt("button", {
assistant: "Cursor",
stylePack: "notion",
accentColor: "#335cff"
});