cdnjs vs Cloudflare CDN
cdnjs
cdnjs.comCloudflare CDN
cloudflare.comSide by side
| Figure | cdnjs | Cloudflare CDN |
|---|---|---|
| Price from | Free | $20/mo |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | Yes |
| API | Yes | Yes |
| Plans published | 1 | 4 |
| Spec score · CDN Software | 7.8 (#19) | 8.8 (#2) |
| Spec score · CDN services | 7.4 (#28) | 9.2 (#1) |
| Founded | 2011 | 2009 |
| Free plan | Yes | Yes |
| What it does | cdnjs serves JavaScript, CSS, and font resources for use in web projects. | Cloudflare CDN caches static and dynamic content in data centers in over 335 cities and serves it from the edge to accelerate delivery and absorb traffic from origin servers. |
Plans
Cloudflare CDN
- FreeFree
- Pro$20 a month
- Business$200 a month
- ContractPriced on request
In their own words
cdnjs
cdnjs is a free web and API service for adding JavaScript, CSS and font resources to web projects. Libraries can be referenced with script or link tags, so projects do not need a build step or npm installation. Files are delivered through Cloudflare’s global network, which cdnjs lists as having more than 330 edge locations. HTTP/3, HTTP/2 and QUIC are supported, along with Brotli and GZIP compression. cdnjs is HSTS preloaded and supplies Subresource Integrity hashes for script and link tags. Its community-curated catalog lists 4,616 libraries. After approval, automation checks npm or GitHub for new versions and manages minification, compression, hash generation and publishing. The service does not pull arbitrary libraries on demand. An unauthenticated API is available at https://api.cdnjs.com. The listed cdnjs plan costs nothing.
Cloudflare CDN
Cloudflare CDN has no write-up on Specifiction yet; its figures are above.