{"openapi":"3.1.0","info":{"title":"Form Atlas API","version":"1.0.0","description":"Public source-level UI directory. No authentication. Upstream licenses apply; item-level verification is not implied."},"servers":[{"url":"https://form-atlas-ten.vercel.app"}],"paths":{"/api/catalog":{"get":{"operationId":"getCatalog","summary":"All resources and collections","responses":{"200":{"description":"Catalog","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer"},"resources":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}},"collections":{"type":"array","items":{"type":"object"}}}}}}}}}},"/api/search":{"get":{"operationId":"searchResources","summary":"Search sources","parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":500}},{"name":"category","in":"query","schema":{"type":"string","enum":["all","components","blocks","motion","design-systems","prompts","templates","tools"]}},{"name":"access","in":"query","schema":{"type":"string","enum":["all","open-source","mixed","restricted","discovery"]}},{"name":"collection","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Matching sources","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}}}}}}},"400":{"description":"Invalid parameter"}}}},"/api/resources/{id}":{"get":{"operationId":"getResource","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Source record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"404":{"description":"Unknown resource"}}}},"/context/{id}":{"get":{"operationId":"getResourceContext","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Editorial Markdown context","content":{"text/markdown":{"schema":{"type":"string"}}}},"404":{"description":"Unknown resource"}}}}},"components":{"schemas":{"Resource":{"type":"object","required":["id","name","description","access","license","licenseUrl","siteUrl","repoUrl","agentNotes","checkedAt"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"access":{"type":"string","enum":["open-source","mixed","restricted","discovery"]},"license":{"type":"string"},"licenseUrl":{"type":"string","format":"uri"},"siteUrl":{"type":"string","format":"uri"},"repoUrl":{"type":"string","format":"uri"},"registryUrl":{"type":["string","null"]},"categories":{"type":"array","items":{"type":"string"}},"artifacts":{"type":"array","items":{"type":"string"}},"agentNotes":{"type":"string"},"checkedAt":{"type":"string","format":"date"},"contextUrl":{"type":"string","format":"uri"},"itemLevelVerified":{"type":"boolean","const":false}}}}}}