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|hybridblueprint_set=all|featured|certified|labslimitoffset
Search
GET /search?q=portfolio&type=blueprint&sort=recommended&recommended=true&intelligence_source=hybrid GET /search?q=studio&type=blueprint&blueprint_set=certified
Public Lists
GET /blueprints?namespace=@official&sort=recommended&recommended=true GET /blueprints?blueprint_set=featured GET /blueprints?blueprint_set=labs 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": "4.0.0",
"dna": {
"theme": { "id": "clean", "mode": "light", "shape": "rounded" },
"spacing": { "base_unit": 4, "scale": "linear", "density": "comfortable", "content_gap": "_gap4" },
"typography": { "scale": "modular", "heading_weight": 600, "body_weight": 400 },
"color": { "palette": "semantic", "accent_count": 1, "cvd_preference": "auto" },
"radius": { "philosophy": "rounded", "base": 8 },
"elevation": { "system": "layered", "max_levels": 3 },
"motion": { "preference": "subtle", "duration_scale": 1, "reduce_motion": true },
"accessibility": { "wcag_level": "AA", "focus_visible": true, "skip_nav": true },
"personality": ["professional"]
},
"blueprint": {
"shell": "sidebar-main",
"sections": [
{
"id": "dashboard",
"role": "primary",
"shell": "sidebar-main",
"description": "Primary dashboard section",
"features": ["auth"],
"pages": [{ "id": "home", "route": "/", "layout": ["hero"] }]
}
],
"features": ["auth"],
"routes": { "/": { "section": "dashboard", "page": "home" } }
},
"meta": {
"archetype": "saas-dashboard",
"target": "react",
"platform": { "type": "spa", "routing": "history" },
"guard": { "mode": "guided", "dna_enforcement": "warn", "blueprint_enforcement": "warn" }
}
}
Hosted Selected Execution Pack
POST /packs/select?namespace=@official
Content-Type: application/json
{
"essence": {
"version": "4.0.0",
"dna": {
"theme": { "id": "clean", "mode": "light", "shape": "rounded" },
"spacing": { "base_unit": 4, "scale": "linear", "density": "comfortable", "content_gap": "_gap4" },
"typography": { "scale": "modular", "heading_weight": 600, "body_weight": 400 },
"color": { "palette": "semantic", "accent_count": 1, "cvd_preference": "auto" },
"radius": { "philosophy": "rounded", "base": 8 },
"elevation": { "system": "layered", "max_levels": 3 },
"motion": { "preference": "subtle", "duration_scale": 1, "reduce_motion": true },
"accessibility": { "wcag_level": "AA", "focus_visible": true, "skip_nav": true },
"personality": ["professional"]
},
"blueprint": {
"shell": "sidebar-main",
"sections": [
{
"id": "dashboard",
"role": "primary",
"shell": "sidebar-main",
"description": "Primary dashboard section",
"features": ["auth"],
"pages": [{ "id": "home", "route": "/", "layout": ["hero"] }]
}
],
"features": ["auth"],
"routes": { "/": { "section": "dashboard", "page": "home" } }
},
"meta": {
"archetype": "saas-dashboard",
"target": "react",
"platform": { "type": "spa", "routing": "history" },
"guard": { "mode": "guided", "dna_enforcement": "warn", "blueprint_enforcement": "warn" }
}
},
"pack_type": "page",
"id": "home"
}
Hosted File Critique
POST /critique/file?namespace=@official
Content-Type: application/json
{
"essence": {
"version": "4.0.0",
"dna": {
"theme": { "id": "clean", "mode": "light", "shape": "rounded" },
"spacing": { "base_unit": 4, "scale": "linear", "density": "comfortable", "content_gap": "_gap4" },
"typography": { "scale": "modular", "heading_weight": 600, "body_weight": 400 },
"color": { "palette": "semantic", "accent_count": 1, "cvd_preference": "auto" },
"radius": { "philosophy": "rounded", "base": 8 },
"elevation": { "system": "layered", "max_levels": 3 },
"motion": { "preference": "subtle", "duration_scale": 1, "reduce_motion": true },
"accessibility": { "wcag_level": "AA", "focus_visible": true, "skip_nav": true },
"personality": ["professional"]
},
"blueprint": {
"shell": "sidebar-main",
"sections": [
{
"id": "dashboard",
"role": "primary",
"shell": "sidebar-main",
"description": "Primary dashboard section",
"features": ["auth"],
"pages": [{ "id": "home", "route": "/", "layout": ["hero"] }]
}
],
"features": ["auth"],
"routes": { "/": { "section": "dashboard", "page": "home" } }
},
"meta": {
"archetype": "saas-dashboard",
"target": "react",
"platform": { "type": "spa", "routing": "history" },
"guard": { "mode": "guided", "dna_enforcement": "warn", "blueprint_enforcement": "warn" }
}
},
"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": "4.0.0",
"dna": {
"theme": { "id": "clean", "mode": "light", "shape": "rounded" },
"spacing": { "base_unit": 4, "scale": "linear", "density": "comfortable", "content_gap": "_gap4" },
"typography": { "scale": "modular", "heading_weight": 600, "body_weight": 400 },
"color": { "palette": "semantic", "accent_count": 1, "cvd_preference": "auto" },
"radius": { "philosophy": "rounded", "base": 8 },
"elevation": { "system": "layered", "max_levels": 3 },
"motion": { "preference": "subtle", "duration_scale": 1, "reduce_motion": true },
"accessibility": { "wcag_level": "AA", "focus_visible": true, "skip_nav": true },
"personality": ["professional"]
},
"blueprint": {
"shell": "sidebar-main",
"sections": [
{
"id": "dashboard",
"role": "primary",
"shell": "sidebar-main",
"description": "Primary dashboard section",
"features": ["auth"],
"pages": [{ "id": "home", "route": "/", "layout": ["hero"] }]
}
],
"features": ["auth"],
"routes": { "/": { "section": "dashboard", "page": "home" } }
},
"meta": {
"archetype": "saas-dashboard",
"target": "react",
"platform": { "type": "spa", "routing": "history" },
"guard": { "mode": "guided", "dna_enforcement": "warn", "blueprint_enforcement": "warn" }
}
},
"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