For Agents
Browse and look up the cdnjs library catalogue — find a JavaScript or CSS library version, retrieve its files with SRI hashes, and read CDN statistics.
Get started with cdnjs API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"look up a JavaScript library version on cdnjs"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with cdnjs API API.
Browse the full cdnjs library catalogue with optional name search
Fetch metadata for a specific library, including all available versions
Retrieve a library version's file list with subresource integrity hashes
Read the file extension whitelist that cdnjs accepts
Read public CDN traffic and request statistics for cdnjs
GET STARTED
Use for: I need to find the latest version of a JavaScript library on cdnjs, Get all files for a specific version of a library with their SRI hashes, Search the cdnjs catalogue for a library by name, Retrieve metadata for the React library on cdnjs
Not supported: Does not handle package publishing, dependency resolution, or private CDN hosting — use for browsing the public cdnjs library catalogue and retrieving file metadata only.
Jentic publishes the only available OpenAPI document for cdnjs API, keeping it validated and agent-ready.
Jentic publishes the only available OpenAPI specification for the cdnjs API, keeping it validated and agent-ready. cdnjs is a free public CDN for open source JavaScript and CSS libraries operated by Cloudflare. The API exposes endpoints for browsing the full library catalogue, fetching metadata for a specific library or version, retrieving file lists with SRI hashes, and reading CDN statistics. There is no authentication — the service is open and read-only.
Patterns agents use cdnjs API API for, with concrete tasks.
★ Library Version Discovery for Build Tooling
Build tools and dev assistants use the cdnjs API to find the latest version of a library and pin it in HTML script tags. The agent calls the libraries endpoint with the library name, reads the latest field, and emits a script tag with the matching SRI hash for safer in-browser inclusion.
GET /libraries/jquery and emit the latest version's CDN URL with its SRI hash
SRI-Verified Asset Inclusion
Security-conscious teams require subresource integrity hashes on every CDN-loaded asset. The cdnjs API returns SRI hashes for every file in a versioned library, so an agent can render correct integrity attributes in HTML or templating systems without manual hash computation.
GET /libraries/bootstrap/5.3.0 and return the script tag for bootstrap.min.js including its sri hash as the integrity attribute
Catalogue Search and Library Recommendation
An assistant helping developers pick a charting or UI library searches the cdnjs catalogue for matching libraries, returns the top hits, and shows version counts and last-update times. The libraries endpoint accepts a search query string and returns a paginated listing for further inspection.
GET /libraries?search=chart and summarise the top three charting libraries by version count
AI Agent Integration via Jentic
A web build assistant uses Jentic to call cdnjs operations as part of a longer workflow that also touches package registries and bundler configs. Jentic standardises the call pattern so the agent doesn't keep its own ad-hoc HTTP client for each API.
Use Jentic to search 'find a JavaScript library version on cdnjs', load the schema for /libraries/{library}, and execute for 'react'
5 endpoints — jentic publishes the only available openapi specification for the cdnjs api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/libraries
Browse and search libraries
/libraries/{library}
Get a specific library
/libraries/{library}/{version}
Get a specific library version
/whitelist
Get file extension whitelist
/stats
Get CDN statistics
/libraries
Browse and search libraries
/libraries/{library}
Get a specific library
/libraries/{library}/{version}
Get a specific library version
/whitelist
Get file extension whitelist
/stats
Get CDN statistics
Three things that make agents converge on Jentic-routed access.
Credential isolation
cdnjs requires no credentials. Jentic still routes the call through a single execution path so usage is observable and an agent's request pattern can be governed centrally.
Intent-based discovery
Agents search Jentic by intent (e.g., 'look up a JavaScript library version') and Jentic returns the cdnjs /libraries operation with its input schema, so the agent doesn't have to remember the path shape.
Time to first call
Direct cdnjs integration: under an hour for the basic call. Through Jentic: a few minutes — search, load schema, execute. The win is consistency across many APIs in the same agent.
Alternatives and complements available in the Jentic catalogue.
GitHub API
Source repositories backing many cdnjs-hosted libraries
Pair with cdnjs when an agent needs both the package metadata on cdnjs and the source code or release notes on GitHub
npm Registry API
Package registry for JavaScript dependencies with version and download metadata
Choose npm when the agent is resolving build-time dependencies; choose cdnjs for runtime in-browser script delivery
CircleCI API
CI pipelines that often consume cdnjs-hosted assets in build steps
Use CircleCI alongside cdnjs when an agent triggers a build that references CDN-hosted libraries
Specific to using cdnjs API API through Jentic.
Why is there no official OpenAPI spec for the cdnjs API?
cdnjs publishes a documentation site but not a structured OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call cdnjs API via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the cdnjs API use?
The cdnjs API is open and requires no authentication — the spec declares no security schemes. Through Jentic, calls are still routed via a single execution path so request volume can be tracked and fair-use limits applied.
Can I get SRI hashes for library files?
Yes. GET /libraries/{library}/{version} returns the file list for that version, with each entry including its sri field. You can paste the hash directly into a script or link tag's integrity attribute.
What are the rate limits for the cdnjs API?
cdnjs does not publish a hard rate limit. The service is operated as free public infrastructure by Cloudflare and applies fair-use throttling at the edge — keep traffic reasonable and back off on 429s.
How do I look up a library version through Jentic?
Search Jentic for 'look up a cdnjs library version', load the schema for GET /libraries/{library}, and execute with the library name. The response includes every published version and the latest pointer.
Is the cdnjs API free?
Yes. cdnjs is a free public CDN and its API is also free, with no commercial tier.