cdnjs
Developerapi.cdnjs.com
The cdnjs library catalogue: every hosted front-end library with its versions, file lists, SRI hashes and CDN URLs, maintained by Cloudflare and the cdnjs community.
Capabilities (2)
GET /v1/data/cdnjs/libraries1 creditMatching front-end libraries with name, latest version, description, repository and SRI hashes; 50+ MB unfiltered, so use search or fields.
GET /v1/data/cdnjs/library1 creditOne library's full record: all versions, every file path with size and SRI hash, licence and repository.
Response example
The shape of data from cdnjs/libraries (Library search). A sample, not live data.
{
"results": [
{
"name": "react-is",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/react-is/19.2.5/cjs/react-is.production.min.js"
},
{
"name": "react-dom",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/react-dom/19.3.1/cjs/react-dom.production.min.js"
},
{
"name": "react",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/react/19.3.1/cjs/react.production.min.js"
},
{
"name": "vue",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/vue/3.5.44/vue.global.js"
},
{
"name": "twitter-bootstrap",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.8/js/bootstrap.min.js"
},
{
"name": "bootstrap",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.8/js/bootstrap.min.js"
},
{
"name": "create-react-class",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/create-react-class/15.7.0/create-react-class.min.js"
},
{
"name": "three.js",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.186.1/three.tsl.js"
},
{
"name": "typescript",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/typescript/5.9.3/typescript.min.js"
},
{
"name": "axios",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/axios/1.20.0/axios.min.js"
},
"… 4606 more items"
],
"total": 4616,
"available": 4616
}Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Library search
Use cdnjs (cdnjs) from fastCRW Pergamon, capability "Library search" (libraries). You need to find a JavaScript or CSS library and its current version on the cdnjs CDN. Example options: search=react, fields=name,version,description, limit=10. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "cdnjs" and capability "libraries". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Library detail
Use cdnjs (cdnjs) from fastCRW Pergamon, capability "Library detail" (library). You know a library name and need its versions and file hashes before pinning a CDN URL. Example options: name=jquery, fields=name,version,versions. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "cdnjs" and capability "library". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
The cdnjs site says the project is MIT licensed and the API is free to use. That MIT licence covers the cdnjs SOFTWARE and catalogue metadata; each hosted library carries its own licence, recorded per library. No separate data licence beyond MIT is stated.
https://github.com/cdnjs/cdnjs/blob/master/LICENSEAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: cdnjs (cdnjs.com), maintained by Cloudflare and the cdnjs community.
Cache: up to 3600s
