ToolCompare
All tools

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.

Cdnjs pricing

Cdnjs does not publish a plan ladder we could verify. Free.

Prices read from the vendor's own pricing page on 2026-09-09. Vendors change plans without notice — check the source before you budget. Price verification log.

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.

Pick it or skip it

Pick Cdnjs if

  • Sites that want a free public CDN — every file is served from Cloudflare's global network
  • Projects at scale: the service reports 250B+ requests per month and use on 12.5% of all websites
  • Teams that do not want to self-host popular JavaScript, CSS and font libraries

Skip it if

  • You need a contractual bandwidth or rate-limit guarantee — none is published
  • Your compliance rules forbid loading assets from a third-party network you have no agreement with
  • You depend on a sponsor-funded service staying free; funding comes from donated infrastructure

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.

Frequently asked questions

What is cdnjs, and does it cost anything?
cdnjs is a free, open-source CDN for popular JavaScript, CSS and font libraries, run by Cloudflare and served from its 330+ edge locations; it handles more than 250 billion requests a month and is used by roughly 12.5% of websites. You reference a library by URL with no build step, and every script and link tag comes with a Subresource Integrity hash; content is HTTPS-only and HSTS-preloaded. To add a library you open a pull request with a JSON config in the cdnjs/packages repository; after approval, new versions are pulled automatically from npm or GitHub.
Is cdnjs free to use?
Yes. cdnjs describes itself as a free, open-source CDN for the web's most popular JavaScript, CSS and font resources, with no account or payment required.
Who runs and pays for cdnjs?
Every file is served directly from Cloudflare's global network, with Cloudflare providing the infrastructure and maintenance. The project is funded by Cloudflare, Algolia, DigitalOcean, Statuspage, Sentry and UptimeRobot.
How widely used is cdnjs?
The project reports more than 250 billion requests per month and use on 12.5% of all websites.
How much does Cdnjs cost?
Cdnjs is free to use. We verified this against the vendor's own page; see "What we checked" below for the date.
Does Cdnjs have a free plan?
Yes. Cdnjs is free to use at its base level.
Who is Cdnjs best 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.
What are the main drawbacks of Cdnjs?
The trade-offs we noted: 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..
When should you not use Cdnjs?
Skip Cdnjs if: You need a contractual bandwidth or rate-limit guarantee — none is published; Your compliance rules forbid loading assets from a third-party network you have no agreement with; You depend on a sponsor-funded service staying free; funding comes from donated infrastructure.

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: Open source, free — vendor page verifiedReviewed: 2026-09-09

  • cdnjs — About ↗

    Checked 2026-09-09 · Supports: "A free, open-source CDN for the web's most popular JavaScript, CSS, and font resources", Every file is served directly from Cloudflare's global network; Cloudflare provides infrastructure and maintenance, Reports 250B+ requests per month and use on 12.5% of all websites, Funded by Cloudflare, Algolia, DigitalOcean, Statuspage, Sentry and UptimeRobot

Limit: Vendor pricing page was reviewed by an editor on this date; this record is not a ToolCompare benchmark. Prices and limits change. No usage limits, bandwidth caps, rate limits or paid tiers are published on the about page.

Tools that do the same job as Cdnjs

Same job, different pricing. Verified starting price first.

Browse all tools we track →

More Hosting tools: see the full Hosting category

Work at Cdnjs? Embed the verified-pricing badge

We read this pricing from Cdnjs’s own pricing page on 2026-09-09. The badge says that and nothing more: no rating, no payment. How the badge works

Cdnjs pricing verified by ToolCompare

HTML

<a href="https://toolcompare.net/tools/cdnjs" title="Cdnjs pricing on ToolCompare"><img src="https://toolcompare.net/api/badge/cdnjs" alt="Cdnjs pricing verified by ToolCompare" width="291" height="28"></a>

Markdown (README, docs)

[![Cdnjs pricing verified by ToolCompare](https://toolcompare.net/api/badge/cdnjs)](https://toolcompare.net/tools/cdnjs)