cdnjs
cdnjs is a free, open-source content delivery network that hosts the static assets (JS, CSS, fonts, etc.) of thousands of popular web libraries, letting developers include them via a public CDN URL. This particular repository is the robot-only asset store; library metadata and contributions live in separate repos.
MITPermissive — free to use in commercial and proprietary software, with attribution.View license →
Production readiness
3/5- Actively maintainedSlower activity (6–12 months)
- No known vulnerabilitiesNot yet scanned
- Clear, usable licenseMIT (permissive)
- Proven adoptionWidely used
- Has documentationDocumentation indexed
Our analysis
cdnjs is a long-running public CDN that mirrors and serves the static assets of thousands of front-end and JavaScript libraries from a globally distributed network (fronted by Cloudflare). This repo specifically holds the hosted asset files and is machine-managed.
When to use cdnjs
Use cdnjs when you want to load a well-known library (jQuery, Bootstrap, Lodash, fonts, etc.) from a fast, free, globally-cached CDN without bundling it yourself, or when you need a stable versioned URL for quick prototypes, demos, or simple sites.
When not to
Avoid relying on a public CDN for production apps that need tree-shaking, bundling, offline support, strict supply-chain control, or modern ESM imports — a build tool plus npm or jsDelivr/esm.sh with ESM support is usually a better fit. Privacy-sensitive sites may also dislike third-party requests.
Strengths
- Massive, long-established library catalog with reliable global delivery via Cloudflare
- Completely free and open source with strong sponsor backing
- Versioned, immutable URLs and SRI hashes for integrity-checked includes
- Searchable API and website for discovering available assets
Trade-offs
- This repo no longer accepts pull requests (robot-only); contribution must go through the packages repo
- Public CDN introduces an external dependency and privacy/third-party request considerations
- Primarily UMD/global script delivery rather than first-class modern ESM workflows
- Not a developer tool you install — it's hosted infrastructure, so less control than self-hosting or bundling
Maturity
Very mature and widely used across the web, backed by Cloudflare, Algolia, and DigitalOcean. The project is split into multiple maintained repositories, with this one operating as an automated asset store.
Table of Contents
Introduction
This is the robot-only repository for cdnjs, where all the library assets that are hosted on cdnjs are stored. For the JSON files that control the libraries we host, please see the "human" cdnjs/packages repository.
Other Repositories
For the JSON files controlling the libraries we host on cdnjs, please take a look at the "human" cdnjs/packages repository.
For our website, please refer to the cdnjs/static-website repository.
For the cdnjs API, please refer to the cdnjs/api-server repository.
For the full cdnjs branding and brand-related assets/guidelines, please see the cdnjs/brand repository.
For our monthly CDN stats and usage reports, check out the cdnjs/cf-stats repository.
You can find all our repositories at github.com/cdnjs!
Contributing
As this repository is now considered robot-only, pull requests are no longer accepted for this repository. If you are looking to contribute to cdnjs, please take a look at the cdnjs/packages repository or any of our other open-source repositories on GitHub!
Sponsors
cdnjs wouldn't be the success that it is today without our sponsors' kind support. These companies currently support cdnjs:
If you are interested in becoming a sponsor, please feel free to contact us!
License
Each library is released under its own license. This cdnjs repository is published under MIT license.