UNPKG
UNPKG is a free CDN for files published on npm, addressed through URLs built from a package, version, and file path.
What UNPKG is
UNPKG is a free CDN for files published on npm, addressed through URLs built from a package, version, and file path. URLs can specify an exact version, an npm dist-tag, or a semver range; without a version, UNPKG uses the latest tag. If the file path is omitted, it resolves the package’s default entry point, including package exports and subpaths. For browser apps, developers can use import maps to load JavaScript modules without a build step. The esm.unpkg.com service can transform TypeScript and JSX, bundle package internals, and rewrite dependency imports to pinned UNPKG URLs for modern browsers. Appending ?meta to a package root or subdirectory returns JSON metadata such as file paths, sizes, types, and subresource integrity values. UNPKG mirrors npm packages and says files appear 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. Full version numbers and file paths are recommended for the best chance of a cache hit.
Good
- Serves files published on npm through package URLs.
- Supports version tags, semver ranges, exports, and subpaths.
- Browser apps can load modules with import maps without a build step.
- Metadata endpoint returns file details and integrity values.
- Files are said to appear within minutes of npm publication.
Watch out
- Unresolved versions or ranges redirect to resolved versions.
- The project is not affiliated with or supported by npm.
Who it suits
UNPKG suits developers who need to serve npm package files or load JavaScript modules directly in browser apps. It may be useful for small projects and prototypes that do not need a build pipeline.
Verdict
UNPKG offers package-file delivery and browser module options without a build step. Developers should use full version numbers and file paths when aiming for cache hits.
Plans and prices
From UNPKG's own pricing page, checked 9 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| UNPKG | Free | No plan or usage limits stated on the maker’s pages |
The facts
Each one read from UNPKG's own pages, with the date it was checked.
Where it runs
- Browser apps
- UNPKG supports loading JavaScript modules directly in browser apps with import maps and without a build step.checked 9 Oct 2026
- 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.checked 9 Oct 2026
- No-build apps
- The site describes loading JavaScript modules directly into browser apps with import maps, without a bundler.checked 4 Oct 2026
What it does
- Caching
- UNPKG says it runs on Cloudflare’s global edge network and caches files by permanent URLs containing the npm package version.checked 9 Oct 2026
- Cloudflare infrastructure
- UNPKG says it runs on Cloudflare's global edge network and Cloudflare Workers, serving requests from hundreds of locations worldwide.checked 4 Oct 2026
- File resolution
- When a file path is omitted, UNPKG resolves the package’s default entry point, including support for package exports and subpaths.checked 9 Oct 2026
- Inline scripts
- The /run helper transforms inline TypeScript, JSX, and TSX scripts through esm.unpkg.com and inserts executable module scripts.checked 9 Oct 2026
- Integrity metadata
- The metadata example includes a SHA-256 subresource integrity value for each file.checked 4 Oct 2026
- Metadata
- Appending ?meta to a package root or subdirectory returns JSON file metadata, including paths, sizes, types, and subresource integrity values.checked 9 Oct 2026
- Metadata API
- Appending ?meta to a package root or subdirectory returns JSON metadata including file paths, sizes, types, and subresource integrity values.checked 4 Oct 2026
- Module options
- Browser module URLs support options including output target, development mode, custom conditions, dependency overrides, aliases, minification, and source maps.checked 9 Oct 2026
- 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.checked 9 Oct 2026
- 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.checked 9 Oct 2026
- npm integration
- UNPKG mirrors npm packages, and the site says files become available on unpkg.com within minutes of publication to npm.checked 4 Oct 2026
- Package exports
- UNPKG supports the full package exports spec, including subpaths, and supports custom export conditions through a query parameter.checked 4 Oct 2026
- Package updates
- The site says npm files become available on UNPKG within minutes of publication.checked 9 Oct 2026
- Package versions
- Package URLs support exact versions, npm dist-tags, and semver ranges, and use the latest tag when no version is specified.checked 9 Oct 2026
- Project and affiliation
- UNPKG describes itself as an open source project from @mjackson and says it is not affiliated with or supported by npm.checked 9 Oct 2026
- Project status
- UNPKG describes itself as an open source project and says it is not affiliated with or supported by npm.checked 4 Oct 2026
- Support
- The site directs questions or concerns to @unpkg and says not to contact npm for UNPKG support.checked 9 Oct 2026
- Version resolution
- Package URLs can use an exact version, an npm dist-tag, or a semver range; if no version is specified, UNPKG uses the latest tag.checked 4 Oct 2026
- What it does
- UNPKG is a fast, global CDN for loading any file published on npm using a URL.checked 9 Oct 2026
Money
- Free plan
- Yeschecked 24 Sep 2026
Alternatives to UNPKG
- 1
Azion Content Delivery
Free planWebAPILinuxmacOS7.8From $25 a month - 2
Uploadcare
Free planAndroidiOSWebAPI7.6From $66 a month - 3

Cloudflare CDN
Free planWebAPI7.4From $20 a month - 4

ImageKit
Free planAndroidiOSAPI7.4From $9 a month - 5
Cloudinary
Free planWebAPIExtension7.2Free plan - 6

Gcore CDN
Free planWeb7.1€0.01 usage-based
