Updated

Technology · Servers

Unpkg

unpkg.com
Open source

UNPKG is a content delivery network for everything on npm. You load a file from any npm package with a URL that names the package, the version and the file.[1]

Unpkg is a fast, global content delivery network for everything published to npm, the world's largest software registry. It allows developers to quickly and easily load any file from any package using a simple URL structure. Unpkg automatically serves the latest version of a package by default, but also allows for specific versions to be requested. It supports both HTTP and HTTPS protocols and can serve both minified and full versions of files. One of Unpkg's key features is its ability to resolve and serve files from complex npm packages with multiple dependencies. This service is particularly useful for quickly prototyping or testing npm packages in the browser without the need for local installation. With its simplicity and direct integration with npm, Unpkg has become an invaluable tool for many web developers.

Unpkg belongs toCDNcategory.

What it is

A content delivery network for everything on npm[1]

How you use it

A URL that names the package, version and file[1]

Runs on

Cloudflare's global edge network, using Cloudflare Workers[1]

Source code

An open source project[1]

106websites

use it — 4.1% of the 2,560 websites we scanned in the last 12 months

#8of 29

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

47public pages

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

In short: a quick way to load npm files straight from a URL; pin the full version and file path so the file comes from the cache.[1]

5.09% of all websites we track run Unpkg▲ 0.01 points since 20 Sep

Should you use Unpkg?

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

Unpkg fits if…

  • You want to load a file from an npm package with a script tag or browser import[1]
  • You want to browse a package's files or read their metadata over a URL[1]

Look elsewhere if…

  • You need files from GitHub as well as npm[2]jsDelivr describes itself as covering both.
  • You want a catalog of open source libraries[3]cdnjs serves open source libraries on Cloudflare's network.
A URL without a full version is not a direct cache hit and redirects first[1]
It is not run or supported by npm[1]

UNPKG next to the other free CDNs for code

Statements come from each service's own page; website counts and speed are ours.

UnpkgjsDelivrcdnjs
What each one serves
Files servedEverything on npmany file in any package[1]npm and GitHubfor JS and ESM delivery[2]Open source librariesJavaScript, CSS and fonts[3]
NetworkCloudflareWorkers on the edge network[1]Multi-CDNa global network[2]Cloudflarecached on its network[3]
What we see in our scans
Websites running it1064.1% of 2,560 scanned sites32212.6% of 2,560 scanned sites2489.7% of 2,560 scanned sites
Typical page load time4.6 s40 public sites4.7 s151 public sites4.6 s✓97 public sites
Typical page weight3.7 MBtypical home page3.6 MB✓typical home page3.9 MBtypical home page
Security grade B or better25%2 of 8 graded sites score B or better29%✓12 of 42 graded sites score B or better21%7 of 34 graded sites score B or better

Scan rows count public pages only; a tool needs at least 5 measured sites to appear.

  • jsDelivr: A free CDN for open source projects, with files from npm and GitHub[2]
  • cdnjs: A free CDN for open source libraries, cached on Cloudflare's network[3]

Choose Unpkg if…

  • You want any npm file by version, tag or semver range[1]

Choose jsDelivr if…

  • You also load files from GitHub[2]

Choose cdnjs if…

  • You want a library catalog on Cloudflare[3]

How Unpkg sites protect themselves

Share of the 106 sites we scanned that run each protection

HSTS69% · 73 sites

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

reCAPTCHA28% · 30 sites

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

Cloudflare Bot Management22% · 23 sites

Cloudflare bot management solution identifies and mitigates automated traffic to protect websites from bad bots

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

What sites use Unpkg for

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

Runs the whole site29 sites

acquia.com · b2c2.com · blueprism.com

Runs the marketing site4 sites

immuta.com · saucelabs.com · smokeball.com

Hosts help, docs or support content1 sites

balena.io

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,560 websites · refreshed weekly

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

52PerformanceLowaverage site: 5090AccessibilityGoodaverage site: 8996Best practicesGoodaverage site: 9392SEOGoodaverage site: 92

Page load time

Loads about 8% slower than the average site

Unpkg sites
4.6 s
All sites
4.3 s

Most Unpkg sites load in 3.5–6.6 s. Home page weight: 3.7 MB vs 3.3 MB for all sites. 40 public sites measured.

Where are they hosted?

Mostly Cloudflare and Amazon Web Services

  • Cloudflare45%
  • Amazon Web Services19%
  • Fastly4%
  • Google Cloud4%
  • Other28%
United States 57%Canada 19%Australia 2%

Who uses it?

Technology and Software is the biggest group

Technology and Software53%
Business Services1.4× avg17%
Software as a Service (SaaS)9%
Cybersecurity4%

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

How Unpkg sites are built

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

web-vitals9×LottieFiles6×Webflow4×lit-element3×Google Hosted Libraries3×lit-html3×jsDelivr3×cdnjs3×HubSpot Analytics2×

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

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

Unpkg + Cloudflare + jsDelivr + cdnjs + Bootstrap

7.5%8 of 106 sites
#2

Unpkg + Cloudflare + jsDelivr + Google Hosted Libraries + Webflow

5.7%6 of 106 sites
#3

Unpkg + Cloudflare + jsDelivr + Sentry + Wistia

4.7%5 of 106 sites
#4

Unpkg + OneTrust + GSAP

4.7%5 of 106 sites
#5

Unpkg + Bootstrap + GSAP

4.7%5 of 106 sites
#6

Unpkg + Cloudflare + Osano

4.7%5 of 106 sites
#7

Unpkg + OneTrust + Adobe Experience Manager

3.8%4 of 106 sites

Usually installed alongside

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

Google Tag Manager82%Google Analytics71%Facebook Pixel26%Linkedin Insight Tag25%OneTrust24%Microsoft Advertising19%DoubleClick Floodlight16%HubSpot19%Webflow14%Cart Functionality13%
Tag managerAnalyticsCookie consentAdvertisingMarketingPage builderOnline store

Similar tools in its category

CDN: 69 tools known, 29 seen in our scans

How websites combine Unpkg with other tools

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

Needs another tool 20Overlaps with another 16Complements another tool 4Integrates with another 4Built on a platform 1

Websites using Unpkg

106 websites use Unpkg: 4.1% of the 2,560 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 Unpkg

What is UNPKG?
A fast, global content delivery network for everything on npm. You load any file from any npm package with a URL.[1]
What happens if I leave out the version?
The latest tag is used by default, and the URL redirects to a full version first.[1]
Is UNPKG run by npm?
No. It is an open source project and says it is not affiliated with or supported by npm.[1]
How many websites use Unpkg?
We found Unpkg on 106 of the 2,560 websites we scanned in the last 12 months (4.1%). 47 of them have a public status page.
What is Unpkg often used with?
Among the websites we scan, Unpkg is often found alongside Google Tag Manager (82.1% of its sites), Google Analytics (70.8% of its sites), Cloudflare (64.2% of its sites).
What are the alternatives to Unpkg?
Other CDNs we recognize include Cloudflare, Amazon CloudFront, jsDelivr, cdnjs.

Is your website built with Unpkg?

UptimeCard checks it around the clock, tells you the minute it stops answering, and gives your visitors a status page.