Hosting
Cdnjs
Cloudflare-backed public CDN for versioned assets from open-source web libraries.
What it is
cdnjs is a free, community-run CDN for open-source web-library assets, delivered through Cloudflare. Consumers select a library, exact version and file, then reference its public URL; the service also exposes library metadata through an API. Example markup published by Cloudflare uses a versioned URL and Subresource Integrity attributes. cdnjs' code repository is MIT-licensed, but each distributed library keeps its own license. It is a dependency-delivery service rather than private storage, a package-security review or a contractual availability guarantee.
Key features
Library catalog
Indexes versioned files from supported open-source JavaScript and CSS libraries.
Cloudflare delivery
Serves cached public assets through Cloudflare's network.
API access
Exposes library, version and file metadata for discovery and tooling.
Integrity-ready snippets
Provides examples and hashes that can be used with browser SRI and crossorigin attributes.
Strengths and trade-offs
What works well
- No-cost public delivery: Supported open-source library assets are served globally through Cloudflare.
- Versioned paths: URLs can identify an exact library release and file for reproducible front-end loading.
- Integrity metadata: Published examples support browser Subresource Integrity checks when the correct hash is used.
- Open project and API: Public repositories and metadata endpoints make the catalog inspectable and automatable.
Where it falls short
- Catalog scope is narrow: It is not private asset storage or a general-purpose origin/CDN product.
- Package trust remains external: CDN availability does not prove that a library release or transitive code is safe.
- Third-party dependency: Page delivery, privacy posture and CSP must account for requests to an external domain.
- Licenses vary: The cdnjs repository license does not replace the license of each hosted library.
Who it is for
Front-end developers who need simple public delivery of a supported open-source dependency and can pin, audit and fall back from that dependency.
Our verdict
cdnjs is a convenient free path for public, versioned web dependencies; use exact versions and valid SRI, review the library's own license and code, and self-host or provide a fallback when availability, privacy or supply-chain control is critical.
Closest alternatives we track
Same category, ordered by verified starting price.
Cloud Foundry
Free
Open-source application platform for deploying and operating code across private and public infrastructure.
ISPConfig
Free
BSD-licensed Linux hosting control panel for single-server and multi-server environments.
JSDelivr
Free
Free multi-provider CDN for public open-source packages from npm, GitHub and related catalogs.
What we checked
- Public APIOffers a documented API you can build against.Yes
- Mobile appHas a native app for iOS or Android, not just a mobile website.No
- Open source / self-hostableSource is open and the tool can be run on your own infrastructure.Yes
- SSO (SAML)Supports SAML single sign-on on at least one plan.No
“Not checked” means exactly that — we have not verified it, and we do not guess.
Evidence and freshness
Status: Official sources reviewedReviewed: 2026-08-24
- Cloudflare — cdnjs service ↗
Checked 2026-08-24 · Supports: open-source library delivery, Cloudflare operation, versioned URL example, Subresource Integrity example, one-year asset caching, terms privacy and abuse-policy boundary, aggregate usage measurement
- cdnjs — Asset repository ↗
Checked 2026-08-24 · Supports: public asset repository, automated repository role, separate package metadata repository, separate website and API repositories, MIT project license, per-library license distinction, Cloudflare sponsorship
- cdnjs — Package metadata repository ↗
Checked 2026-08-24 · Supports: package definitions, automatic-update configuration, community contribution workflow, catalog maintenance boundary
- cdnjs — API repository ↗
Checked 2026-08-24 · Supports: public API implementation, library metadata access, open-source API code
Limit: Official Cloudflare and cdnjs repositories were reviewed; ToolCompare did not benchmark delivery, test a live outage or fallback, audit package provenance, scan hosted releases for malware, verify every SRI hash, assess privacy or licensing for a specific application, or obtain an availability SLA. Library contents, versions and policies can change.