{"uid":"cap_ExuKOmynY8UONyKaR3zKN","slug":"codepulse-api-cdnjs-registry-lookup-57013098","name":"CodePulse API - cdnjs Registry Lookup","description":"Resolves Javascript/CSS file paths hosted on cdnjs.","url":"https://codepulse-api.hahavoid0.workers.dev/registry/cdnjs","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["library"],"properties":{"library":{"type":"string","description":"Library name (e.g. jquery)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"library":"react","filename":"umd/react.production.min.js"},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_p9lJQuVIVFiZDgXFuWYfG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up CDN file paths and library metadata for a given package on the cdnjs registry","exampleAgentPrompt":"Can you look up the cdnjs registry entry for react and tell me the correct CDN filename — specifically the umd/react.production.min.js path — and whether it's supported?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the library name, resolved CDN filename, a boolean indicating whether the library is supported on cdnjs, a confidence level (e.g. 'high'), a data freshness date, and any warnings about the result.","failureModes":["Library not found on cdnjs — result may return supported:false with low confidence","Misspelled library name leads to incorrect or empty result","Filename not found for the specified library — warnings array populated","Stale registry data if library was recently added or removed — data_as_of field indicates freshness","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when an AI agent needs to resolve the exact CDN file path for a JavaScript/CSS library hosted on cdnjs, particularly when building HTML pages, embedding scripts, or verifying CDN availability. Prefer this over manual guessing or scraping cdnjs.com directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:34:06.352Z","isFirstParty":false}