Updated

Technology · Servers & delivery

cdnjs

cdnjs.com
Open source

What is cdnjs?

cdnjs is a free content delivery network for open-source libraries. It serves JavaScript, CSS and font files from Cloudflare's network.[1]

cdnjs is a free, open-source, and community-driven distributed JavaScript library delivery service. It hosts a vast collection of popular JavaScript and CSS libraries, allowing developers to easily include these resources in their web projects without hosting them locally. cdnjs offers high availability and performance through its global CDN infrastructure, reducing load times and bandwidth usage for websites. It supports version control, allowing developers to specify exact library versions, and provides both HTTP and HTTPS access. The service is maintained by volunteers and supported by sponsors, making it a reliable and cost-effective solution for web developers worldwide.

cdnjs belongs toCDNcategory.

Price

Free[1]

File types

JavaScript, CSS and fonts[1]

Network

Powered by Cloudflare[1]

Community

Open source on GitHub[1]

241websites

use it — 9.5% of the 2,539 websites we scanned in the last 12 months

#4of 28

tools in its category seen in our scans (we recognize 69)

103public pages

on UptimeCard — open any of them to see how that site is doing

In short: a free, community-run source for popular open-source libraries on Cloudflare's network. Pin the library version in the URL you copy.[1]

12% of all websites we track run cdnjs

What is cdnjs used for?

In short, from the websites we scan

What it does
cdnjs is one of the CDNs websites use. In our scans it is #4 of the 28 we see.
On real websites
Among 60 public websites we scan that use it: serving front-end libraries (59 sites), speeding asset delivery (19 sites), reducing origin load (15 sites), caching global assets (7 sites). Counted automatically from a short description of each site (one site can do several jobs), so read it as an estimate.
Who uses it
Compared with all public websites we scan, it is more common in Software as a Service (SaaS) (9% of its sites, 6% overall).
Used together with
It is often installed next to Google Tag Manager, Google Analytics, PHP.

Should you use cdnjs?

The 10-second version, from the vendor’s own pages and what we see in our scans

cdnjs fits if…

  • You want popular JavaScript, CSS or font libraries from a free CDN[1]

Look elsewhere if…

  • You want to load any npm package or GitHub file by URL[2]jsDelivr describes itself this way.

cdnjs next to jsDelivr

Statements come from each vendor's own home page; website counts are ours.

cdnjsjsDelivr
What the vendor says
PriceFree[1]Free[2]
Where files come fromOpen source librariesJavaScript, CSS and fonts[1]npm and GitHub[2]
What we see in our scans
Websites running it2419.5% of 2,539 scanned sites31812.5% of 2,539 scanned sites
Typical page load time3.9 s✓100 public sites4.0 s157 public sites
Typical page weight4.5 MBtypical home page3.5 MB✓typical home page
Security grade B or better21%7 of 34 graded sites score B or better29%✓12 of 42 graded sites score B or better

Each row shows what the vendor says about itself.

  • jsDelivr: Another free CDN for open-source projects, serving npm and GitHub files[2]

Choose cdnjs if…

  • You want a library CDN on Cloudflare's network[1]

Choose jsDelivr if…

  • You want any npm package or GitHub file by URL[2]

How cdnjs sites protect themselves

Share of the 241 sites we scanned that run each protection

HSTS62% · 150 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

reCAPTCHA28% · 68 sites

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse

Protections add up, they do not replace each other: a site can run all of them.

What sites use cdnjs for

An estimate from UptimeCard's technology map of 89 public sites

Runs the whole site83 sites

amity.co · appspace.com · articulatestatus.com

Hosts help, docs or support content4 sites

aic.status.akamai.com · buildkitestatus.com · hackeronestatus.com

Publishes a blog or resources1 sites

opengov.com

Runs the marketing site1 sites

granicus.com

Rough guide, not a measurement: each description is written automatically from the site’s technology stack and the site has not confirmed it. A site is counted once, in the first group its description fits (shop, help and docs, blog, marketing site; otherwise the whole site). Descriptions that only guess (“likely”, “may”) are left out.

At a glance

UptimeCard's own scans and tests of 2,539 websites · refreshed weekly

How cdnjs sites scoreout of 100 · hover or tap a score for details

50PerformanceLowaverage site: 5189AccessibilityGoodaverage site: 9196Best practicesGoodaverage site: 9692SEOGoodaverage site: 92

Page load time

Loads about 12% slower than the average site

cdnjs sites
3.9 s
All sites
3.5 s

Most cdnjs sites load in 2.8–5.9 s. Home page weight: 4.5 MB vs 3.4 MB for all sites. 100 public sites measured.

Where are they hosted?

Mostly Cloudflare and Amazon Web Services

  • Cloudflare34%
  • Amazon Web Services26%
  • Google Cloud7%
  • Fastly6%
  • Other27%
United States 59%Canada 18%France 2%

Who uses it?

Software as a Service (SaaS) sites use cdnjs 1.5× more than average

Technology and Software57%
Business Services9%
Software as a Service (SaaS)1.5× avg9%
Educational Resources1.4× avg7%

Share of 103 classified public sites. “× average” compares with all 961 public sites.

Browser-security check

21% of graded sites pass

7of 34 score B or better

Rates each site’s own security settings, not cdnjs. 34 public sites graded so far.

How cdnjs sites are built

Closest partners. The number says how many times more often the tool runs on cdnjs sites than on an average website. Hover a partner for its share of sites.

Font Awesome4×jQuery CDN4×Slick4×jsDelivr3×Bootstrap3×Google Hosted Libraries3×Microsoft Clarity2×

Stacks we see most. Tools that tend to run together with cdnjs on the same websites. The percentage is the share of all 241 cdnjs sites that run the whole stack.

10 stacks · swipe, drag or use the arrows
#1

cdnjs + jsDelivr + jQuery CDN

7.5%18 of 241 sites
#2

cdnjs + jsDelivr + Unpkg

5.8%14 of 241 sites
#3

cdnjs + jsDelivr + Google Hosted Libraries + Webflow

3.3%8 of 241 sites
#4

cdnjs + jsDelivr + Yoast SEO

4.1%10 of 241 sites
#5

cdnjs + Yoast SEO + Contact Form 7

3.7%9 of 241 sites
#6

cdnjs + Google Hosted Libraries + jQuery CDN

2.5%6 of 241 sites
#7

cdnjs + Google Hosted Libraries + GSAP

2.5%6 of 241 sites
#8

cdnjs + Yoast SEO + Fastly

2.5%6 of 241 sites
#9

cdnjs + Google Hosted Libraries + Unpkg

2.1%5 of 241 sites
#10

cdnjs + jQuery CDN + Animate.css

2.1%5 of 241 sites

Usually installed alongside

The bigger the bubble, the more of the 241 cdnjs sites also run the tool. Colour shows what the tool does. Hover or tap a bubble for details.

Google Tag Manager73%Google Analytics73%Facebook Pixel30%Linkedin Insight Tag22%Microsoft Advertising18%DoubleClick Floodlight17%OneTrust18%HubSpot15%Yoast SEO13%
Tag managerAnalyticsAdvertisingCookie consentMarketingSearch visibility

Similar tools in its category

CDN: 69 tools known, 28 seen in our scans

How websites combine cdnjs with other tools

Relationships found on the websites that use it, from the same map status pages show.

Needs another tool 44Overlaps with another 35Built on a platform 23Complements another tool 19Integrates with another 3

Websites using cdnjs

241 websites use cdnjs: 9.5% of the 2,539 websites we scanned in the last 12 months. A selection is shown below.

Scores are out of 100: P Performance · A Accessibility · B Best practices · S SEO. Green 80+, yellow 65–79, orange 50–64, red below 50. The dot shows whether our last scan found the site failing (red) or not (green); Red, amber or blue: an active incident on the site's status page (outage, degraded, maintenance) or a failing scan; amber also means a certificate ending within 30 days. Hover the dot for details.

Questions about cdnjs

What is cdnjs?
cdnjs is a free content delivery network for open-source libraries. It serves JavaScript, CSS and font files from Cloudflare's network.
What is cdnjs used for?
cdnjs is one of the CDNs websites use. In our scans it is #4 of the 28 we see. Among 60 public websites we scan that use it: serving front-end libraries (59 sites), speeding asset delivery (19 sites), reducing origin load (15 sites), caching global assets (7 sites). Counted automatically from a short description of each site (one site can do several jobs), so read it as an estimate. Compared with all public websites we scan, it is more common in Software as a Service (SaaS) (9% of its sites, 6% overall). It is often installed next to Google Tag Manager, Google Analytics, PHP.
Is cdnjs free?
Yes. It describes itself as the free CDN for open-source libraries.[1]
What network does it run on?
cdnjs is powered by Cloudflare and caches files on Cloudflare's network.[1]
Can I contribute?
Yes. The project is open on GitHub and accepts contributions.[1]
How many websites use cdnjs?
We found cdnjs on 241 of the 2,539 websites we scanned in the last 12 months (9.5%). 103 of them have a public status page.
What are the alternatives to cdnjs?
Other CDNs we recognize include Cloudflare, Amazon CloudFront, jsDelivr, Akamai.

Is your website built with cdnjs?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card