cdnjs
{{short description|Content delivery network for web resources}}
{{Lowercase title}}
{{Infobox software
| name = cdnjs
| logo = Cdnjs logo.svg
| logo size = 180px
| screenshot =
| caption =
| developer = [https://github.com/ryankirkman/ Ryan Kirkman], [https://github.com/thomasdavis/ Thomas Davis], [https://github.com/mattipv4/ Matt Cowley], [https://github.com/xtuc/ Sven Sauleau], [https://github.com/tc80/ Tyler Caslin]
| released = {{Start date and age|2011|02|25}}{{cite web |title=cdnjs/cdnjs GitHub API |url=https://api.github.com/repos/cdnjs/cdnjs |publisher=GitHub |access-date=8 July 2019}}
| latest_release_version =
| latest_release_date =
| latest_preview_version =
| latest_preview_date =
| repo = [https://github.com/cdnjs/cdnjs/ github.com/cdnjs/cdnjs]
| programming language = JavaScript, Go
| operating_system = Cross-platform
| license = MIT License{{cite web |title=cdnjs/LICENSE at master · cdnjs/cdnjs |website=GitHub |url=https://github.com/cdnjs/cdnjs/blob/master/LICENSE |access-date=17 April 2019}}
| website = [https://cdnjs.com/ cdnjs.com]
}}
cdnjs is a free and open-source software (FOSS) content delivery network (CDN) hosted by Cloudflare.{{cite web|title=libraries - cdnjs.com - The best FOSS CDN for web related libraries to speed up your websites!|url=https://cdnjs.com/libraries|access-date=17 April 2019}}{{Cite web|title=Sponsorships|url=https://developers.cloudflare.com/sponsorships/|access-date=September 3, 2020|website=Cloudflare}} As of May 2021, it serves 4,013 JavaScript and CSS libraries, which are stored publicly on GitHub.{{cite web|title=Top 4 CDN services for hosting open source libraries {{!}} opensource.com|url=https://opensource.com/article/17/4/top-cdn-services|access-date=18 April 2019|publisher=opensource.com}}{{cite web|title=cdnjs/cdnjs: 🤖 CDN assets - The #1 free and open source CDN built to make life easier for developers.|website=GitHub |url=https://github.com/cdnjs/cdnjs|access-date=13 May 2021}}{{Cite news|last=Ivanovs|first=Alex|date=April 3, 2014|title=Faster Content Delivery Solutions for Web Developers|work=The Huffington Post|url=https://www.huffpost.com/entry/faster-content-delivery-s_b_5075471|access-date=September 3, 2020}} It is included in millions of websites, or 12.4% of the websites on the Internet, making it the second most popular CDN for JavaScript.{{cite web|title=Usage Statistics and Market Share of JavaScript Content Delivery Networks for Websites|url=https://w3techs.com/technologies/overview/content_delivery/all|access-date=13 May 2021|publisher=W3Techs}}{{Cite web|last=Goto|first=Daichi|date=November 1, 2018|title=JavaScript CDNのCDNJSが成長中、シェア8%超え|url=https://news.mynavi.jp/article/20181101-716753/|website=Mynavi}}{{Cite web|date=July 27, 2020|title=ULTIMATE GUIDE TO CDNJS- WHAT IT DOES FOR YOUR WEBSITE|url=https://www.belugacdn.com/blog/cdn/cdnjs/|access-date=September 3, 2020|website=BelugaCDN}}
History
In January 2011, Ryan Kirkman and Thomas Davis created the service,{{Cite web|title=cdnjs.com: the missing cdn|url=http://www.cdnjs.com/|url-status=live|archive-url=https://web.archive.org/web/20110125232824/http://www.cdnjs.com/|archive-date=January 25, 2011|access-date=September 3, 2020|website=cdnjs.com}} launching it on GitHub on February 25, 2011.{{cite web|title=CDNJS: Community Moderated Javascript Libraries + CloudFlare|date=16 June 2011 |url=https://blog.cloudflare.com/cdnjs-community-moderated-javascript-librarie/|access-date=18 April 2019|publisher=Cloudflare}}{{Cite news|date=May 3, 2014|title=345 - Behind CDNJS - #Cat5TV Category5TV|url=https://www.youtube.com/watch?v=Pjj-5YEy1Z0|access-date=September 3, 2020}}{{Cite news|date=June 21, 2011|title=63: CDNJS with Thomas Davis and Ryan Kirkman|work=The Changelog|url=https://dev.to/changelog/63-cdnjs-with-thomas-davis-and-ryan-kirkman|access-date=September 3, 2020}} It initially served content through Amazon CloudFront.{{cite web|title=cdn js {{!}} Treehouse Blog|url=https://blog.teamtreehouse.com/cdn-js|access-date=18 April 2019}} On June 15, 2011,{{Cite tweet|user=Cloudflare|number=81512881341997056|date=16 June 2011|title=CDNJS: all the Internet's best Javascript libraries, now in a single, fast repo powered by CloudFlare! http://blog.cloudflare.com/cdnjs-community-moderated-javascript-librarie}} cdnjs partnered with Cloudflare, who provided the CDN and subdomain cdnjs.cloudflare.com for the project.{{Cite web|last=Perez|first=Sarah|date=June 24, 2019|title=Cloudflare issues affecting numerous sites on Monday AM [Update: fixed]|url=https://techcrunch.com/2019/06/24/cloudflare-outage-affecting-numerous-sites-on-monday-am/|access-date=September 3, 2020|website=TechCrunch}}
On November 1, 2019, the founders turned over control of cdnjs to Cloudflare, citing "technical and commercial reasons."{{Cite news|date=November 1, 2019|title=Lack of cdnjs activity|work=Hacker News|url=https://news.ycombinator.com/item?id=21416614|access-date=September 3, 2020}} According to the community maintainers, the project was difficult to manage because of limited access to the GitHub repository, inactive founders, and a small budget.{{Cite web|date=October 21, 2019|title=Lack of cdnjs activity|url=https://github.com/cdnjs/cdnjs/issues/13524|access-date=September 3, 2020|website=GitHub}}{{Cite web|date=December 19, 2019|title=An Update on CDNJS|url=https://blog.cloudflare.com/an-update-on-cdnjs/|access-date=September 3, 2020|website=The Cloudflare Blog}} It is estimated the annual budget at the time was approximately $50/yr.{{Cite web|title=cdnjs|url=https://opencollective.com/cdnjs|url-status=live|archive-url=https://web.archive.org/web/20191224184858/https://opencollective.com/cdnjs|archive-date=December 24, 2019|access-date=September 3, 2020|website=Open Collective}}
Operation
The service is maintained by the community and Cloudflare. As of May 2021, there have been 1,443 contributors to the main GitHub repository, and 88 contributors to the newer package configuration GitHub repository.{{cite web|title=cdnjs/packages: 📦 Package configurations - The #1 free and open source CDN built to make life easier for developers.|website=GitHub |url=https://github.com/cdnjs/packages|access-date=13 May 2021}}
It is also sponsored by DigitalOcean, Algolia, Heroku, Atlassian, Sentry, and Lean20.{{cite web |title=Open Source at DigitalOcean |url=https://www.digitalocean.com/open-source/ |access-date=8 July 2019}}{{cite web |title=15+ Free CDN WordPress Services to Boost Your Site Speed (2019) - CollectiveRay |url=https://www.collectiveray.com/wp/tips/free-cdn-wordpress |access-date=18 April 2019}}{{cite web |title=About Us - cdnjs - The #1 free and open source CDN built to make life easier for developers |url=https://cdnjs.com/about |access-date=13 May 2021}}
There is a public JSON API for developers to query cdnjs library metadata.{{cite web |title=cdnjs API {{!}} ProgrammableWeb |url=https://www.programmableweb.com/api/cdnjs |access-date=18 April 2019}}{{cite web |title=API - cdnjs.com - The best FOSS CDN for web related libraries to speed up your websites! |url=https://cdnjs.com/api |access-date=17 April 2019}}
Resources on cdnjs can be loaded using a number of connection protocols – HTTP/2, HTTP, HTTPS or SPDY.{{cite web |title=CDNJS: The Fastest Javascript Repo on the Web |date=12 December 2012 |url=https://blog.cloudflare.com/cdnjs-the-fastest-javascript-repo-on-the-web/ |publisher=Cloudflare |access-date=18 April 2019}}
The cdnjs.cloudflare.com domain is part of the HSTS preload list.{{cite web |title=HSTS Preload List Submission |url=https://hstspreload.org/?domain=cdnjs.cloudflare.com |access-date=17 April 2019}}
There exist websites that host clones of cdnjs libraries on their own servers:
- [https://tools.wmflabs.org/cdnjs/ Wikimedia Tool Labs]
- [https://cdn.bytedance.com/ ByteDance]
References
{{Reflist}}
External links
- {{official website|https://cdnjs.com/}}
- [https://github.com/cdnjs Github Organization]