Overview
cdnjs is a free content delivery network for open-source web libraries. Instead of hosting a copy of a JavaScript or CSS library on your own server, you link to the copy on cdnjs and visitors load it from a server near them.
The project started in 2011 and is community-driven: it is maintained by Matt Cowley together with Cloudflare's engineering team, and Cloudflare supplies the network it runs on. The site is a searchable catalogue. Each library page lists the available versions and files and gives ready-to-paste script and link tags, complete with Subresource Integrity hashes so the browser can confirm the file has not been altered. Everything is served over HTTPS.
It is a curated collection rather than a mirror of everything: a library is added by opening a pull request with a small JSON description in the project's packages repository, and after that new releases on npm or GitHub are picked up automatically. A public API at api.cdnjs.com lets tools search the catalogue without any key. It suits anyone building a web page who wants a quick, dependable link to a common library.
Categories
Features
- Hosts JavaScript, CSS and font files from open-source libraries
- Searchable catalogue with every hosted version of each library
- Copy-ready script and link tags for each file
- Subresource Integrity hashes supplied for all tags
- Served over HTTPS from Cloudflare's global network
- New library versions picked up automatically from npm or GitHub
- Public API at api.cdnjs.com with no authentication
Privacy
See the official privacy policy. The site points to Cloudflare's privacy policy rather than publishing its own, since Cloudflare operates the network that serves the files.
Pros & Cons
Pros
- Free to use with no account or API key
- Integrity hashes are provided for every file
- Runs on Cloudflare's network with hundreds of edge locations
- Project code and package list are open on GitHub
Cons
- Only libraries accepted into the curated list are available
- Your site depends on a third-party host being reachable
- Visitors' browsers make requests to Cloudflare, which some privacy rules require you to disclose
- Serves individual files only: no bundling or on-the-fly builds
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Provides CDN, DNS, and web security services.
Freemium Web API -
Serves npm and GitHub-hosted files via a free CDN.
Free No Signup Web API -
Delivers website content through a global edge CDN.
Freemium API