- Skypack is a modern CDN for JavaScript that lets you load npm packages directly in the browser as ES modules, without installing them locally or using a bundler.
- Key features:
- Serves npm packages as browser-ready ES Modules.
- Applies automatic optimizations like minification, compression, and HTTP/2 or HTTP/3 delivery.
- Fixes compatibility issues so many Node-focused packages work directly in the browser.
- Example import:
import confetti from "https://cdn.skypack.dev/canvas-confetti"; - More examples:
https://cdn.skypack.dev/preact@10https://cdn.skypack.dev/bootstrap@next/dist/css/bootstrap.min.css
- In short: Skypack turns npm packages into optimized, browser-ready ES modules with zero build step.
Read more on the official website.