Skip to content
freetier.wiki

Type at least 2 letters.

Enter to open · Esc to close

cdnjs

cdnjs is a free public CDN from Cloudflare for community-curated open-source JavaScript, CSS, and fonts, with no card and no charge, but it serves only libraries already added to its catalog.

cdnjs is a free, community-run CDN for popular open-source JavaScript, CSS, and font libraries, served from Cloudflare's network, so you can load a library with one script or link tag.

By CloudflareHostingChecked ✓ 23 Nov 2026

Is it a fit?

Good fit

Use cdnjs to load a popular open-source library into a page with one tag, with no npm install or build step.

  • quick prototypes
  • static sites
  • teaching and demo pages
  • open-source projects

Not a fit

Skip it for private or custom files, for libraries cdnjs does not carry, or for production setups where you need a support contract or want to control the files you serve.

  • you need to host private or proprietary files
  • your library is not on cdnjs
  • you need a support contract

You search the library list on cdnjs.com, copy a script or link tag, and paste it into your page. A free API also lists libraries and files. It suits front-end developers who want a library on the page with no build step.

What the free plan gives you

There is no paid plan. cdnjs calls itself a free, open-source CDN for JavaScript, CSS, and font resources. Files are served from Cloudflare's global network, with support for HTTP/3, HTTP/2, QUIC, and Brotli and GZIP compression. The about page says cdnjs is trusted by 12.5% of all websites and serves more than 250 billion requests per month from over 330 edge locations.

Every script and link tag comes with a Subresource Integrity hash, and the service is preloaded for HSTS so requests use HTTPS. The API at api.cdnjs.com needs no authentication. The project started in 2011.

When you hit a limit

The pages list no request limit, bandwidth cap, or paid tier. No account or payment method is involved, so there is nothing to bill. The pages do not say what would happen if one site sent extreme traffic, so treat that as unknown.

The real limit is the catalog. cdnjs is curated and does not pull libraries on demand from npm. If your library is missing, you add it by opening a pull request to the cdnjs packages repository on GitHub with a small JSON file. After it is merged, new versions are picked up on their own from npm or GitHub.

Gotchas

  • cdnjs serves only libraries that the community added. It does not fetch an arbitrary npm package for you.
  • The main cdnjs GitHub repository says it is no longer updated because it grew too large. The assets now live in a Cloudflare R2 bucket.
  • Mirror operators should note that syncing from the old GitHub repository no longer works; the repository asks them to open an issue to request access to the bucket.

Alternatives in this atlas

  • Bunny Fonts: when you only need web fonts delivered from a CDN.
  • Cloudflare Pages: when you want to host and serve your own static site.

Questions people ask

Is cdnjs free?

Yes. cdnjs describes itself as a free, open-source CDN for JavaScript, CSS, and font resources. No account is needed to copy a tag.

Who runs cdnjs?

Cloudflare provides the infrastructure and project maintenance, and the project is community driven. The about page lists several other sponsors.

Can I upload my own files to cdnjs?

Not directly. You can add an open-source library by opening a pull request with a JSON file, and cdnjs then picks up new versions automatically.

How to get started

  1. Open cdnjs.com/libraries and search for the library you need.
  2. Open the library page and pick a version.
  3. Copy the script or link tag for the file, which includes its SRI hash.
  4. Paste the tag into your HTML page.
  5. Optional: query the API at api.cdnjs.com, which needs no authentication, to look up libraries and files.

Other free hosting options

Same category, safest first.

Vercel · Hosting
1 team seat (Hobby plan) · 100 deployments per day and 100 builds per hour · 100 GB Fast Data Transfer/month included
Billing risk: None
No card
Google Cloud · Hosting
10 GB storage · 360 MB/day data transfer (about 10 GB/month) · 2 GB maximum size for a single file
Billing risk: None
No card
Hygraph · Hosting
1,000 content entries (assets count against this limit) · 500,000 API calls/month · 3 seats, 2 standard roles
Billing risk: None
No card
Contentful · Hosting
10 users and 2 roles · 1 Starter Space with 2 environments and 25 content types · 10,000 records and 2 locales
Billing risk: None
No card