
About UNPKG
UNPKG is a content delivery network for everything published on npm. You request a file from a package by its URL, and the file is served from Cloudflare's edge network.
What it does
Use a URL with the package name, version and file path to load a script or stylesheet in any page. Add ?meta to a package URL to see its files and metadata as JSON. UNPKG also serves ES modules from esm.unpkg.com and has a helper that runs inline TypeScript and JSX in the browser. Each file is checked against its digest before it is cached.
Key features
- Load any file from any npm package
- Pin exact versions for production pages
- JSON metadata and file listings with ?meta
- ES module builds from esm.unpkg.com
- Run inline TypeScript and JSX in the browser
Who it's for
Developers who prototype in a single HTML file, teachers and people building small tools without a build step. Teams that want to inspect npm packages from scripts or AI agents can use the JSON metadata as well.
Pricing and good to know
UNPKG is free to use. The site also describes UNPKG Shield, which pins or swaps compromised packages at the edge. For production, pin a full version of a package so the response comes straight from the edge cache, and avoid URLs that leave out the version.
Highlights
- Load any file from an npm package by URL
- Read package file lists and metadata as JSON
- Import ES modules from esm.unpkg.com
- Run inline TypeScript and JSX in the browser
- Pin exact package versions for stable loading











