
About cdnjs
cdnjs is a free, open source CDN that hosts widely used web libraries. Its JavaScript, CSS and font files are cached on Cloudflare's network, so pages can load them quickly.
What it does
Instead of hosting a library yourself, you link to its file on cdnjs from your page. The site has a searchable catalogue of libraries, a public API for that catalogue and a status page for the network. The project accepts contributions on GitHub, and people can fund its upkeep through GitHub Sponsors, Open Collective or Patreon.
Key features
- Searchable catalogue of popular libraries
- JavaScript, CSS and font files
- Files cached on Cloudflare's network
- Public API for library information
- Status page and network map
Who it's for
Web developers who want to load common libraries from a shared CDN rather than from their own server. It is also useful for prototypes and for small sites that need a few well-known scripts or stylesheets.
Pricing and good to know
The CDN is free to use and its code is open source. The homepage gives usage figures for the network and lists sponsors, including Cloudflare. Because the library files come from a shared catalogue, check the version you link to before you rely on it in production.
Highlights
- Find popular libraries in a searchable catalogue
- Link JavaScript, CSS and font files directly
- Serve files from Cloudflare's cached network
- Query the public API for library details
- Check network status on the status page











