Amazon CloudFront vs UNPKG
Amazon CloudFront
aws.amazon.comUNPKG
unpkg.comSide by side
| Figure | Amazon CloudFront | UNPKG |
|---|---|---|
| Price from | $15/mo | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | Yes |
| API | Yes | Yes |
| Plans published | 5 | 1 |
| Spec score · CDN Software | 8.4 (#5) | 7.8 (#20) |
| Spec score · CDN services | 8.4 (#8) | 8.1 (#13) |
| Free plan | Yes | Yes |
| What it does | Amazon CloudFront is a content delivery network that securely delivers data, videos, applications, and APIs globally with low latency and high transfer speeds. | UNPKG is a fast, global CDN for loading any file published on npm using a URL. |
Plans
Amazon CloudFront
- FreeFree
- Pro$15 a month
- Business$200 a month
- Premium$1,000 a month
- Custom pricingPriced on request
In their own words
Amazon CloudFront
Amazon CloudFront is a content delivery network for delivering data, videos, applications, and APIs around the world. It uses more than 750 globally dispersed Points of Presence, with automated network mapping and intelligent routing. CloudFront works with Amazon S3, Amazon EC2, Elastic Load Balancing, and custom HTTP origins; edge behavior can be customized with CloudFront Functions and AWS Lambda@Edge. Listed uses range from websites and dynamic APIs to live and on-demand video, software distribution, game patches, and IoT updates. Security options include HTTPS/TLS, signed URLs and cookies, token authentication, geographic restrictions, and limiting S3 origin access to CloudFront. It integrates with AWS Shield, AWS WAF, and Amazon Route 53 for layered protection, including against DDoS attacks. CloudWatch metrics and logs to S3 or Kinesis Data Streams provide monitoring options. CloudFront has a free plan at free, with 1 million requests and 100GB data transfer. Paid plans start at $15 a month per distribution; Pro, Business, and Premium each list 50TB of transfer.
UNPKG
UNPKG is a free CDN for files published on npm, with package files addressed by URLs containing a package name, version, and file path. A URL can specify an exact version, an npm dist-tag, or a semver range; when the version is omitted, UNPKG resolves 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, import maps can 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. Module URLs support options including targets, export conditions, aliases, minification, source maps, and raw files. Adding ?meta to a package root or subdirectory returns JSON metadata with file paths, sizes, types, and subresource integrity values. UNPKG says npm files become available within minutes of publication. Its files run through Cloudflare's global edge network and Workers, and versioned URLs are cached. The project describes itself as open source and says it is not affiliated with or supported by npm.