Registry Public API
The public registry and hosted compiler contract for Decantr browse, search, detail, intelligence-summary, and execution-pack flows. These are the hosted endpoints used by the registry portal, CLI, MCP consumers, and external tooling.
Base URL
https://api.decantr.ai/v1
Canonical response schemas are published at /schemas/.
namespacesort=recommended|recent|namerecommended=trueintelligence_source=authored|benchmark|hybridlimitoffset
Search
GET /search?q=portfolio&type=blueprint&sort=recommended&recommended=true&intelligence_source=hybrid
Public Lists
GET /blueprints?namespace=@official&sort=recommended&recommended=true GET /patterns?namespace=@official&limit=50&offset=0 GET /archetypes?namespace=@official&intelligence_source=authored
Public Detail
GET /blueprints/@official/portfolio GET /patterns/@official/hero
Public Schema Discovery
GET /schema/search-response.v1.json GET /schema/registry-intelligence-summary.v1.json
Hosted Execution Pack Compile
POST /packs/compile?namespace=@official
Content-Type: application/json
{
"version": "2.0.0",
"archetype": "dashboard",
"theme": { "id": "clean", "mode": "light" },
"personality": ["professional"],
"platform": { "type": "spa", "routing": "history" },
"structure": [{ "id": "home", "shell": "sidebar-main", "layout": ["hero"] }],
"features": ["auth"],
"density": { "level": "comfortable", "content_gap": "1.5rem" },
"guard": { "mode": "guided" },
"target": "react"
}
Hosted Selected Execution Pack
POST /packs/select?namespace=@official
Content-Type: application/json
{
"essence": {
"version": "2.0.0",
"archetype": "dashboard",
"theme": { "id": "clean", "mode": "light" },
"personality": ["professional"],
"platform": { "type": "spa", "routing": "history" },
"structure": [{ "id": "home", "shell": "sidebar-main", "layout": ["hero"] }],
"features": ["auth"],
"density": { "level": "comfortable", "content_gap": "1.5rem" },
"guard": { "mode": "guided" },
"target": "react"
},
"pack_type": "page",
"id": "home"
}
Hosted File Critique
POST /critique/file?namespace=@official
Content-Type: application/json
{
"essence": {
"version": "2.0.0",
"archetype": "dashboard",
"theme": { "id": "clean", "mode": "light" },
"personality": ["professional"],
"platform": { "type": "spa", "routing": "history" },
"structure": [{ "id": "home", "shell": "sidebar-main", "layout": ["hero"] }],
"features": ["auth"],
"density": { "level": "comfortable", "content_gap": "1.5rem" },
"guard": { "mode": "guided" },
"target": "react"
},
"filePath": "src/pages/Home.tsx",
"code": "<button style={{ color: "#ff00ff" }}>Click me</button>",
"treatmentsCss": ".brand-accent { color: var(--d-primary); }"
}
Hosted Project Audit
POST /audit/project?namespace=@official
Content-Type: application/json
{
"essence": {
"version": "2.0.0",
"archetype": "dashboard",
"theme": { "id": "clean", "mode": "light" },
"personality": ["professional"],
"platform": { "type": "spa", "routing": "history" },
"structure": [{ "id": "home", "shell": "sidebar-main", "layout": ["hero"] }],
"features": ["auth"],
"density": { "level": "comfortable", "content_gap": "1.5rem" },
"guard": { "mode": "guided" },
"target": "react"
},
"dist": {
"indexHtml": "<!doctype html><html lang="en"><head><meta name="viewport" content="width=device-width, initial-scale=1"><title>Audit</title></head><body><div id="root"></div><script type="module" src="/assets/app.js"></script></body></html>",
"assets": {
"/assets/app.js": "console.log("/");"
}
},
"sources": {
"files": {
"src/pages/Home.tsx": "export function Home() { return <button style={{ color: '#ff00ff' }}>Hi</button>; }"
}
}
}
Showcase Benchmark Surfaces
GET /showcase/manifest GET /showcase/shortlist GET /showcase/shortlist-verification
Registry Intelligence Summary
GET /intelligence/summary?namespace=@official
CLI and MCP Equivalents
decantr search portfolio --type blueprint --sort recommended --recommended --source hybrid decantr list blueprints --source authored decantr registry summary --namespace @official --json decantr registry compile-packs decantr.essence.json --namespace @official --json decantr registry get-pack manifest --namespace @official --json decantr registry get-pack page home --namespace @official --json decantr registry critique-file src/pages/Home.tsx --namespace @official --json decantr registry audit-project --namespace @official --json pnpm audit:public-api
decantr_search_registrydecantr_get_registry_intelligence_summarydecantr_get_showcase_benchmarksdecantr_get_execution_packdecantr_compile_execution_packsdecantr_critiquedecantr_audit_project