Amazon CloudFront vs esm.sh
Amazon CloudFront
aws.amazon.comesm.sh
esm.shSide by side
| Figure | Amazon CloudFront | esm.sh |
|---|---|---|
| Price from | $15/mo | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | Yes |
| Linux | — | Yes |
| API | Yes | — |
| Self-hosted | — | Yes |
| Plans published | 5 | 1 |
| Spec score · CDN Software | 8.4 (#5) | 7.9 (#18) |
| Spec score · CDN services | 8.4 (#8) | 7.7 (#22) |
| Edge compute | CloudFront supports edge customization through CloudFront Functions and AWS Lambda@Edge. | none |
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.
esm.sh
esm.sh is an open-source service for importing JavaScript modules through HTTP URLs, so developers can use packages in browser apps or Deno without build tools. It serves packages from npm, JSR, GitHub and pkg.pr.new, and can transform TypeScript, TSX, Vue and Svelte files for direct imports. Modules are bundled by default; URL options let developers alter bundling, request raw content, set dependency versions or aliases, and select exports. Export selection does not work with CommonJS modules. The service supports CSS imports when a package imports CSS directly from JavaScript, and it can load modules as web workers. Build targets include es2015 through es2024, esnext, Deno, denonext and Node. A lightweight TSX script can compile and cache TSX written directly in HTML. The FAQ describes compatibility with modern browsers that support ES6 modules, including Deno. The public CDN does not support private npm packages; the project directs those users to self-hosting and provides a Docker image and deployment instructions. The project is MIT-licensed, with bug reports directed to GitHub issues.