Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

UNPKG

unpkg.com

  • Free plan
  • Web
  • API
7.6 Club score Visit unpkg.com

What UNPKG is

UNPKG is a free global CDN for files published on npm. A URL identifies a package and can include a version and file path; version selection supports exact versions, npm dist-tags, or semver ranges. Without a version, UNPKG resolves the latest tag, and an omitted file path resolves the package’s default entry point, including package exports and subpaths. For browser apps, import maps can load JavaScript modules directly without a bundler. The esm.unpkg.com service can transform TypeScript and JSX, bundle package internals, and rewrite dependency imports to pinned UNPKG URLs for modern browsers. Module URLs offer options for targets, development mode, export conditions, dependency overrides, aliases, JSX transforms, minification, source maps, metadata, and raw files. Add ?meta to a package root or subdirectory to receive JSON metadata with file paths, sizes, types, and subresource integrity values. UNPKG mirrors npm packages and says files become available within minutes of publication. It runs on Cloudflare's global edge network and Workers. The project describes itself as open source and says it is not affiliated with or supported by npm. UNPKG recommends full version numbers and file paths for the best chance of a cache hit.

Who it suits

UNPKG suits developers serving npm package files or loading JavaScript modules directly in browser apps. It may also suit small projects and prototypes that need to run without a build pipeline.

Good to know, and what to watch

  • Serves files from npm packages through package URLs.
  • Supports package exports, subpaths, and version selection.
  • Can load browser modules with import maps and no bundler.
  • ?meta returns file and integrity metadata.
  • Unresolved versions or ranges redirect to a resolved version.
  • Cache guidance recommends full versions and file paths.
  • UNPKG says it is not affiliated with npm.

UNPKG

Free

Free plan

Getting started

  1. Open https://unpkg.com/
  2. Build a URL with a package name, version, and file path
  3. Choose an exact version, dist-tag, or semver range
  4. Use import maps to load modules directly in a browser app
  5. Use esm.unpkg.com for transformed or bundled browser modules
  6. Append ?meta to request JSON file metadata

The verdict

UNPKG provides direct URLs for npm files and browser modules, with package metadata available through a query parameter. Use full version numbers and file paths when you want the best chance of a cache hit.

Questions people ask

Is UNPKG free?

Yes. UNPKG is free, with a free plan and no usage limits stated on the maker’s pages.

What happens if I omit a package version?

UNPKG uses the package’s latest tag. URLs with unresolved versions or ranges redirect to a resolved version.

Can UNPKG work without a build step?

Yes. Import maps can load JavaScript modules directly in browser apps without a bundler.

What does ?meta return?

Appending ?meta to a package root or subdirectory returns JSON metadata with file paths, sizes, types, and subresource integrity values.

Is UNPKG open source or part of npm?

UNPKG describes itself as an open source project from @mjackson. It says it is not affiliated with or supported by npm.

How quickly do npm packages appear?

UNPKG says files become available on unpkg.com within minutes of publication to npm.

What the maker publishes

Browser apps
UNPKG supports loading JavaScript modules directly in browser apps with import maps and without a build step. source
Browser modules
esm.unpkg.com can transform TypeScript and JSX, bundle package internals, rewrite dependency imports to pinned UNPKG URLs, and serve modules for modern browsers. source
Browser modules
esm.unpkg.com transforms TypeScript and JSX when needed, bundles package internals, rewrites dependency imports to permanent URLs, and serves browser-loadable modules. source
Caching
Files are cached by permanent URLs that include the npm package version; the site recommends full version numbers and file paths for the best chance of a cache hit. source
Caching
UNPKG says it runs on Cloudflare’s global edge network and caches files by permanent URLs containing the npm package version. source
Cloudflare infrastructure
UNPKG says it runs on Cloudflare's global edge network and Cloudflare Workers, serving requests from hundreds of locations worldwide. source
File resolution
When a file path is omitted, UNPKG resolves the package’s default entry point, including support for package exports and subpaths. source
Free plan
Yes source
Inline scripts
The /run helper transforms inline TypeScript, JSX, and TSX scripts through esm.unpkg.com and inserts executable module scripts. source
Inline scripts
The /run helper transforms inline TypeScript, JSX, and TSX scripts through esm.unpkg.com and inserts executable module scripts. source
Integrity metadata
The metadata example includes a SHA-256 subresource integrity value for each file. source
Metadata
Appending ?meta to a package root or subdirectory returns JSON file metadata, including paths, sizes, types, and subresource integrity values. source
Metadata API
Appending ?meta to a package root or subdirectory returns JSON metadata including file paths, sizes, types, and subresource integrity values. source
Module options
Browser module URLs support options for target, development mode, export conditions, dependency overrides, aliases, JSX transforms, minification, source maps, metadata, and raw files. source
Module options
Browser module URLs support options including output target, development mode, custom conditions, dependency overrides, aliases, minification, and source maps. source
No-build apps
The site describes loading JavaScript modules directly into browser apps with import maps, without a bundler. source
Nobuild use cases
The maker describes UNPKG as suited to small projects, prototypes, and other browser apps that need to run without a build pipeline. source
Notable cache behavior
URLs using an unresolved version or range redirect to a resolved version, while the site recommends full version numbers and file paths for the best chance of a cache hit. source
npm integration
UNPKG mirrors npm packages, and the site says files become available on unpkg.com within minutes of publication to npm. source
Package exports
UNPKG supports the full package exports spec, including subpaths, and supports custom export conditions through a query parameter. source
Package updates
The site says npm files become available on UNPKG within minutes of publication. source
Package versions
Package URLs support exact versions, npm dist-tags, and semver ranges, and use the latest tag when no version is specified. source
Project and affiliation
UNPKG describes itself as an open source project from @mjackson and says it is not affiliated with or supported by npm. source
Project status
UNPKG describes itself as an open source project and says it is not affiliated with or supported by npm. source

Checked against the maker's pages on 9 Oct 2026.