Development — entry 015 of 100

CDNJS

Verified Jul 2026

cdnjs mirrors thousands of open-source JavaScript, CSS, and font libraries on Cloudflare's edge network, and its free `/libraries` and `/libraries/:library` endpoints expose the same catalogue as JSON — name, latest version, file list, SRI hashes, and linked GitHub metadata — backed by Algolia search. No key or signup is required for either the asset CDN or the metadata API, and responses cache for six hours server-side.

cdnjs exposes its entire library catalog as a free, keyless API for searching packages and reading version, file, SRI hash, and GitHub metadata for any hosted library.

cdnjavascriptcssopen-sourcepackage-registry
AuthenticationNone requiredCall it straight away — no key, no signup.
HTTPSSupportedTraffic is encrypted in transit.
CORSEnabledCallable directly from browser JavaScript.
PricingFreeNo paid tier — free for the documented use case.
FormatsJSONResponses can be requested as JSON.

GreatAPIs Score

Score88out of 100
Authentication25/25No authentication required
Pricing20/20Free to use
Docs14/20Documentation URL provided
Formats9/15Single response format
Freshness20/20Verified within 6 months

Embed this badge

Scored 88 on greatapis.com
<a href="https://greatapis.com/api/cdnjs/"><img src="https://greatapis.com/badge/cdnjs.svg" alt="Scored 88 on greatapis.com"></a>

Auth quickstart

  1. No API key required — requests are public and keyless.
Stored keyNo key stored

Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.

Look up a specific library

GEThttps://api.cdnjs.com/libraries/jquery?fields=github,sri

200 application/json

{
  "name": "jquery",
  "latest": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js",
  "version": "3.7.1",
  "sri": "sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==",
  "github": {
    "user": "jquery",
    "repo": "jquery",
    "stargazers_count": 59543
  }
}

Developer reference

Gotchas & limits

  • The `fields` query param whitelists which fields are returned — omit it and you get the full default object, but request specific fields (e.g. `github`, `sri`) to keep responses small
  • `/libraries` search results and `/libraries/:library` are cached for 6 hours, while versioned file responses like `/libraries/:library/:version` are cached for 355 days since released versions are immutable
  • Unknown library or version names return a JSON error body (`{ "error": true, "status": 404, ... }`) alongside a 404 status