{"openapi":"3.1.0","info":{"title":"01orbital Registry API","version":"1.0.0","summary":"Read the 01orbital component registry.","description":"A shadcn-compatible registry of React components, page blocks and generative artwork. These endpoints return the registry index and each item's source, in the shadcn registry format. Free items need no credentials; paid items need a license token.","contact":{"name":"01orbital","email":"hello@01orbital.dev","url":"https://01orbital.dev"},"license":{"name":"See the license page","url":"https://01orbital.dev/license"}},"externalDocs":{"description":"Install guide","url":"https://01orbital.dev/docs/install"},"servers":[{"url":"https://01orbital.dev"}],"tags":[{"name":"Registry","description":"The index and its items."}],"paths":{"/r/registry.json":{"get":{"operationId":"listRegistryItems","tags":["Registry"],"summary":"List or search the registry","description":"Returns every item's name, type, title and description. Without a license token the list holds the free items; with a valid token it holds every item. Send `q` to search, and `limit` and `offset` to page through the result.","security":[{},{"licenseToken":[]}],"parameters":[{"name":"q","in":"query","required":false,"description":"Words to search names, titles and descriptions for. Leave out to list everything.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Keep only these kinds of item: ui, component, block and so on, with or without the registry: prefix. Comma-joined, or sent more than once.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"The most items to return. Leave out, or send 0, for all of them.","schema":{"type":"integer","minimum":0,"default":0}},{"name":"offset","in":"query","required":false,"description":"How many matching items to skip.","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"The registry index.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryIndex"}}}},"400":{"description":"`limit` or `offset` is not a non-negative integer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"invalid_pagination"}}}},"429":{"description":"Too many requests from this address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"rate_limited"}}}}}}},"/r/{name}.json":{"get":{"operationId":"getRegistryItem","tags":["Registry"],"summary":"Get one registry item","description":"Returns one item with its source files, dependencies and registry dependencies, as the shadcn CLI installs it. Free items need no credentials. A paid item answers 401 until the request carries a valid license token.","security":[{},{"licenseToken":[]}],"parameters":[{"name":"name","in":"path","required":true,"description":"The item's registry name, as listed by `listRegistryItems`.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]*$"},"example":"accordion"}],"responses":{"200":{"description":"The registry item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryItem"}}}},"400":{"description":"The name is not a valid item name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"invalid_name"}}}},"401":{"description":"The item is paid, and the request has no license token (`license_required`) or one that is invalid, expired or revoked (`license_invalid`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"license_required"}}}},"404":{"description":"No item has this name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"item_not_found"}}}},"429":{"description":"Too many requests from this address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"rate_limited"}}}}}}},"/r/styles/{style}/{name}.json":{"get":{"operationId":"getRegistryItemInStyle","tags":["Registry"],"summary":"Get one registry item in a shadcn style","description":"The same item as `getRegistryItem`, drawn in a shadcn style: its box tokens take that style's values, and a stock shadcn part is returned as a pointer to shadcn's own copy in that style. The shadcn CLI fills `{style}` from components.json. Only Base UI styles (`base-*`) are supported.","security":[{},{"licenseToken":[]}],"parameters":[{"name":"style","in":"path","required":true,"description":"A Base UI shadcn style, as components.json names it.","schema":{"type":"string","pattern":"^base-[a-z]+$"},"example":"base-lyra"},{"name":"name","in":"path","required":true,"description":"The item's registry name, as listed by `listRegistryItems`.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]*$"},"example":"accordion"}],"responses":{"200":{"description":"The registry item, in that style.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryItem"}}}},"400":{"description":"The name is not a valid item name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"invalid_name"}}}},"401":{"description":"The item is paid, and the request has no license token (`license_required`) or one that is invalid, expired or revoked (`license_invalid`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"license_required"}}}},"404":{"description":"No item has this name (`item_not_found`), or the style is not a Base UI shadcn style (`unsupported_style`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"item_not_found"}}}},"429":{"description":"Too many requests from this address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"code":"rate_limited"}}}}}}}},"components":{"securitySchemes":{"licenseToken":{"type":"http","scheme":"bearer","description":"The buyer's license token, the value of ORBITAL_TOKEN. Ask the license holder for it; never guess one."}},"schemas":{"RegistryIndexItem":{"type":"object","description":"One item as the index lists it.","required":["name","type"],"properties":{"name":{"type":"string","description":"The registry name, used to fetch or install it."},"type":{"type":"string","description":"The shadcn item type, such as registry:ui, registry:component or registry:block."},"title":{"type":"string","description":"A readable name."},"description":{"type":"string","description":"What the item is and when to use it."}},"additionalProperties":true},"RegistryIndex":{"type":"object","description":"The registry index, after https://ui.shadcn.com/schema/registry.json, with a `pagination` object added.","required":["name","homepage","items","pagination"],"properties":{"$schema":{"type":"string","format":"uri"},"name":{"type":"string","description":"The registry's name."},"homepage":{"type":"string","format":"uri"},"items":{"type":"array","items":{"$ref":"#/components/schemas/RegistryIndexItem"}},"pagination":{"type":"object","required":["total","offset","limit","hasMore"],"properties":{"total":{"type":"integer","description":"How many items match."},"offset":{"type":"integer","description":"Items skipped."},"limit":{"type":"integer","description":"The size of the page returned."},"hasMore":{"type":"boolean","description":"Whether more items follow this page."}}}}},"RegistryFile":{"type":"object","description":"One source file of an item.","required":["path","type"],"properties":{"path":{"type":"string","description":"The file's path in the kit."},"type":{"type":"string","description":"The shadcn file type."},"content":{"type":"string","description":"The file's source."},"target":{"type":"string","description":"Where the CLI writes the file, when it is fixed."}},"additionalProperties":true},"RegistryItem":{"type":"object","description":"A registry item, after https://ui.shadcn.com/schema/registry-item.json.","required":["name","type"],"properties":{"$schema":{"type":"string","format":"uri"},"name":{"type":"string"},"type":{"type":"string"},"title":{"type":"string"},"author":{"type":"string"},"description":{"type":"string"},"dependencies":{"type":"array","description":"npm packages the item needs.","items":{"type":"string"}},"registryDependencies":{"type":"array","description":"Other registry items the item needs.","items":{"type":"string"}},"files":{"type":"array","items":{"$ref":"#/components/schemas/RegistryFile"}}},"additionalProperties":true},"Error":{"type":"object","description":"Every error from these endpoints has this shape.","required":["error","code","message","hint","docs"],"properties":{"error":{"type":"string","description":"A short label."},"code":{"type":"string","description":"A stable name for the failure, to branch on.","enum":["invalid_name","invalid_pagination","item_not_found","license_required","license_invalid","rate_limited","unsupported_style"]},"message":{"type":"string","description":"What went wrong, in a sentence."},"hint":{"type":"string","description":"What to do about it."},"docs":{"type":"string","format":"uri","description":"This description's address."}}}}}}