Content deleted Content added
m Added history milestone of cdnjs reaching 3rd place in largest market share |
m Replace cdnjs.net mirror example with ByteDance mirror |
||
(39 intermediate revisions by 18 users not shown) | |||
Line 1:
{{short description|Content delivery network for web resources}}
{{Lowercase title}}
{{Infobox software
| name
| logo = Cdnjs
| 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}}<ref name="gh-api">{{cite web |title=cdnjs/cdnjs GitHub API |url=https://api.github.com/repos/cdnjs/cdnjs |publisher=GitHub |access-date=8 July 2019}}</ref>
| latest_release_version =
| latest_release_date =
| latest_preview_version =
| latest_preview_date =
| operating_system = [[Cross-platform]] (web-based application)▼
| repo = [https://github.com/cdnjs/cdnjs/ github.com/cdnjs/cdnjs]
| programming language = [[JavaScript]], [[Go (programming language)|Go]]
| website = [http://cdnjs.com/ cdnjs.com]▼
| genre = [[Free and open-source software|FOSS]] [[Content delivery network|CDN]]
| license = [[MIT License]]<ref name="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}}</ref>
}}
'''cdnjs''' is a [[free and open-source software]] (FOSS) [[content delivery network]] (CDN) hosted by [[CloudFlare|Cloudflare]].<ref name="libs">{{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}}</ref><ref name="cf-sponsors">{{Cite web|title=Sponsorships|url=https://developers.cloudflare.com/sponsorships/|access-date=September 3, 2020|website=Cloudflare}}</ref> As of May 2021, it serves 4,013 [[JavaScript]] and [[Cascading Style Sheets|CSS]] libraries, which are stored publicly on [[GitHub]].<ref name="os-com">{{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}}</ref><ref name="repo">{{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}}</ref><ref name="huff-post">{{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}}</ref> 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.<ref name="w3techs">{{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}}</ref><ref name="mynavi">{{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}}</ref><ref name="beluga">{{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}}</ref>
== History ==▼
In January 2011, Ryan Kirkman and Thomas Davis created the service,<ref name="original-site">{{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}}</ref> launching it on GitHub on February 25, 2011.<ref name="cf-art-1">{{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}}</ref><ref name="cat5-tv">{{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}}</ref><ref name="the-changelog">{{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}}</ref> It initially served content through [[Amazon CloudFront]].<ref name="cf-art-1" /><ref name="treehouse">{{cite web|title=cdn js {{!}} Treehouse Blog|url=https://blog.teamtreehouse.com/cdn-js|access-date=18 April 2019}}</ref> On June 15, 2011,<ref name="cf-tweet">{{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}}</ref> cdnjs partnered with Cloudflare, who provided the CDN and [[subdomain]] cdnjs.cloudflare.com for the project.<ref name="cf-art-1" /><ref name="cat5-tv" /><ref name="the-changelog" /><ref name="techcrunch">{{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}}</ref>
On November 1, 2019, the founders turned over control of cdnjs to Cloudflare, citing "technical and commercial reasons."<ref name="hn-cdnjs-activity">{{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}}</ref> 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.<ref name="hn-cdnjs-activity" /><ref name="gh-cdnjs-activity">{{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}}</ref><ref name="cf-art-3">{{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}}</ref> It is estimated the annual budget at the time was approximately $50/yr.<ref name="hn-cdnjs-activity" /><ref name="oc-cdnjs-activity">{{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}}</ref>
▲== History ==
== Operation ==
The service is maintained by the community and Cloudflare.<ref name="cf-sponsors" /> 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.<ref name="repo" /><ref name="repo-packages">{{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}}</ref>
It is also sponsored by [[DigitalOcean]], [[Algolia]], [[Heroku]], [[Atlassian]], Sentry, and Lean20.<ref name="do-os">{{cite web |title=Open Source at DigitalOcean |url=https://www.digitalocean.com/open-source/ |access-date=8 July 2019}}</ref><ref name="collectiveray">{{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}}</ref><ref name="about">{{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}}</ref>
There is a public [[JSON]] [[Web API|API]] for developers to query cdnjs library metadata.<ref name="programmableweb">{{cite web |title=cdnjs API {{!}} ProgrammableWeb |url=https://www.programmableweb.com/api/cdnjs |access-date=18 April 2019}}</ref><ref name="api">{{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}}</ref>
Resources on cdnjs can be loaded using a number of connection protocols – [[HTTP/2]], [[HTTP]], [[HTTPS]] or [[SPDY]].<ref name="os-com"/><ref name="about"/><ref name="cf-art-2">{{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}}</ref>
The cdnjs.cloudflare.com ___domain is part of the [[HTTP Strict Transport Security|HSTS]] preload list.<ref>{{cite web |title=HSTS Preload List Submission |url=https://hstspreload.org/?___domain=cdnjs.cloudflare.com |access-date=17 April 2019}}</ref>
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 ==
{{
== External links ==
* {{official
* [https://github.com/cdnjs Github Organization]
[[Category:Content delivery networks]]
|