Updated

Technology · Servers & delivery

Unpkg

unpkg.com
Open source

What is Unpkg?

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]

105websites

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

#8of 28

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]

3.5% of all websites we track run Unpkg

What is Unpkg used for?

In short, from the websites we scan

What it does
Unpkg is one of the CDNs websites use. In our scans it is #8 of the 28 we see.
On real websites
Among 34 public websites we scan that use it: serving npm packages (32 sites), delivering files fast (3 sites). Counted automatically from a short description of each site (one site can do several jobs), so read it as an estimate.
Used together with
It is often installed next to Google Tag Manager, Google Analytics, Cloudflare.

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 it1054.1% of 2,539 scanned sites31812.5% of 2,539 scanned sites2419.5% of 2,539 scanned sites
Typical page load time3.8 s✓45 public sites4.0 s157 public sites3.9 s100 public sites
Typical page weight4.4 MBtypical home page3.5 MB✓typical home page4.5 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 105 sites we scanned that run each protection

HSTS70% · 73 sites

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

reCAPTCHA28% · 29 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,539 websites · refreshed weekly

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

52PerformanceLowaverage site: 5192AccessibilityGoodaverage site: 9196Best practicesGoodaverage site: 9692SEOGoodaverage site: 92

Page load time

Loads about 10% slower than the average site

Unpkg sites
3.8 s
All sites
3.5 s

Most Unpkg sites load in 2.9–5.6 s. Home page weight: 4.4 MB vs 3.4 MB for all sites. 45 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 105 Unpkg sites that run the whole stack.

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

Unpkg + jsDelivr + cdnjs

13.3%14 of 105 sites
#2

Unpkg + web-vitals + OneTrust

10.5%11 of 105 sites
#3

Unpkg + jsDelivr + Google Hosted Libraries + Webflow

6.7%7 of 105 sites
#4

Unpkg + jsDelivr + OneTrust

6.7%7 of 105 sites
#5

Unpkg + jsDelivr + Sentry + Wistia

4.8%5 of 105 sites
#6

Unpkg + cdnjs + OneTrust

4.8%5 of 105 sites
#7

Unpkg + cdnjs + Google Hosted Libraries

4.8%5 of 105 sites
#8

Unpkg + OneTrust + GSAP

4.8%5 of 105 sites
#9

Unpkg + cdnjs + jQuery CDN

3.8%4 of 105 sites

Usually installed alongside

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

Google Tag Manager83%Google Analytics71%Facebook Pixel27%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, 28 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

105 websites use Unpkg: 4.1% 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 Unpkg

What is Unpkg used for?
Unpkg is one of the CDNs websites use. In our scans it is #8 of the 28 we see. Among 34 public websites we scan that use it: serving npm packages (32 sites), delivering files fast (3 sites). Counted automatically from a short description of each site (one site can do several jobs), so read it as an estimate. It is often installed next to Google Tag Manager, Google Analytics, Cloudflare.
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 105 of the 2,539 websites we scanned in the last 12 months (4.1%). 47 of them have a public status page.
What are the alternatives to Unpkg?
Other CDNs we recognize include Cloudflare, Amazon CloudFront, jsDelivr, cdnjs.

Is your website built with Unpkg?

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