Description
UNPKG is a fast, global content delivery network for everything published on npm. You load any file from an npm package by URL, using the package name, a version, a semver range or an npm tag, and the path to the file. The site gives examples such as a preact file at a pinned version. If you leave out the version, the latest tag is used. Adding a trailing slash to a package URL lists its files, and you can open an older version by putting its version number in the URL. The site also covers browser modules, inline scripts, a metadata API, cache performance and supply chain security. Links to its GitHub project and to its maintainers are on the page.…
Preview
Highlights
- Load any npm package file by URL
- Pin versions, semver ranges or tags
- Browse package files in a directory listing
- Browser modules and inline scripts
- Metadata API
Ratings & Reviews
No ratings yet
Be the first to rate UNPKG.
People also visit
Skypack
Search millions of open source JavaScript packages on Skypack. Free to use
UNPKG FAQ
What does UNPKG do?
It serves files from packages on npm over a CDN, so a web page can load them with a URL.
How do I choose a version?
Put a version number, a semver range or an npm tag such as latest in the URL. Without a version, the latest tag is used.
Can I browse a package's files?
Yes. Add a trailing slash to a package URL to see a listing of its files.
Can I get an older version?
Yes. Include the version number in the URL.
Is there an API?
Yes. The site describes a metadata API.
What are the best UNPKG alternatives?
Popular alternatives to UNPKG include jsDelivr, Statically and Skypack. See all UNPKG alternatives









