Cdnjs

Last updated
cdnjs
Developer(s) Ryan Kirkman, Thomas Davis, Matt Cowley, Sven Sauleau, Tyler Caslin
Initial releaseFebruary 25, 2011;13 years ago (2011-02-25) [1]
Repository github.com/cdnjs/cdnjs
Written in JavaScript, Go
Operating system Cross-platform
Type FOSS CDN
License MIT License [2]
Website cdnjs.com

cdnjs is a free and open-source software (FOSS) content delivery network (CDN) hosted by Cloudflare. [3] [4] As of May 2021, it serves 4,013 JavaScript and CSS libraries, which are stored publicly on GitHub. [5] [6] [7] 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. [8] [9] [10]

Contents

History

In January 2011, Ryan Kirkman and Thomas Davis created the service, [11] launching it on GitHub on February 25, 2011. [12] [13] [14] It initially served content through Amazon CloudFront. [12] [15] On June 15, 2011, [16] cdnjs partnered with Cloudflare, who provided the CDN and subdomain cdnjs.cloudflare.com for the project. [12] [13] [14] [17]

On November 1, 2019, the founders turned over control of cdnjs to Cloudflare, citing "technical and commercial reasons." [18] 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. [18] [19] [20] It is estimated the annual budget at the time was approximately $50/yr. [18] [21]

Operation

The service is maintained by the community and Cloudflare. [4] 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. [6] [22]

It is also sponsored by DigitalOcean, Algolia, Heroku, Atlassian, Sentry, and Lean20. [23] [24] [25]

There is a public JSON API for developers to query cdnjs library metadata. [26] [27]

Resources on cdnjs can be loaded using a number of connection protocols – HTTP/2, HTTP, HTTPS or SPDY. [5] [25] [28]

The cdnjs.cloudflare.com domain is part of the HSTS preload list. [29]

There exist websites that host clones of cdnjs libraries on their own servers:

Related Research Articles

<span class="mw-page-title-main">Greasemonkey</span> Userscript manager extension for Firefox

Greasemonkey is a userscript manager made available as a Mozilla Firefox extension. It enables users to install scripts that make on-the-fly changes to web page content after or before the page is loaded in the browser.

Google Developers is Google's site for software development tools and platforms, application programming interfaces (APIs), and technical resources. The site contains documentation on using Google developer tools and APIs—including discussion groups and blogs for developers using Google's developer products.

<span class="mw-page-title-main">YUI Library</span>

The Yahoo! User Interface Library (YUI) is a discontinued open-source JavaScript library for building richly interactive web applications using techniques such as Ajax, DHTML, and DOM scripting. YUI includes several cores CSS resources. It is available under a BSD License. Development on YUI began in 2005 and Yahoo! properties such as My Yahoo! and the Yahoo! front page began using YUI in the summer of that year. YUI was released for public use in February 2006. It was actively developed by a core team of Yahoo! engineers.

jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animations, and Ajax. It is free, open-source software using the permissive MIT License. As of August 2022, jQuery is used by 77% of the 10 million most popular websites. Web analysis indicates that it is the most widely deployed JavaScript library by a large margin, having at least three to four times more usage than any other JavaScript library.

This is a comparison of web frameworks for front-end web development that are heavily reliant on JavaScript code for their behavior.

<span class="mw-page-title-main">Google Closure Tools</span> JavaScript developer toolkit

Google Closure Tools is a set of tools to help developers build rich web applications with JavaScript. It was developed by Google for use in their web applications such as Gmail, Google Docs and Google Maps. As of 2023, the project had over 230K LOCs not counting the embedded Mozilla Rhino compiler.

<span class="mw-page-title-main">Node.js</span> JavaScript runtime environment

Node.js is a cross-platform, open-source JavaScript runtime environment that can run on Windows, Linux, Unix, macOS, and more. Node.js runs on the V8 JavaScript engine, and executes JavaScript code outside a web browser.

There are different JavaScript charting libraries available. Below is a comparison of which features are available in each.

Leaflet is a JavaScript library used to build web mapping applications. It allows developers without a GIS background to display tiled web maps hosted on a public server, with optional tiled overlays. It can load feature data from GeoJSON files, style it and create interactive layers, such as markers with popups when clicked.

Brotli is a lossless data compression algorithm developed by Google. It uses a combination of the general-purpose LZ77 lossless compression algorithm, Huffman coding and 2nd-order context modelling. Brotli is primarily used by web servers and content delivery networks to compress HTTP content, making internet websites load faster. A successor to gzip, it is supported by all major web browsers and has become increasingly popular, as it provides better compression than gzip.

<span class="mw-page-title-main">WebAssembly</span> Cross-platform assembly language and bytecode designed for execution in web browsers

WebAssembly (Wasm) defines a portable binary-code format and a corresponding text format for executable programs as well as software interfaces for facilitating communication between such programs and their host environment.

Velocity is a cross-platform JavaScript library designed to simplify the client-side scripting of website animation. Velocity is free, open-source software licensed under the MIT License. It is the most popular open source web animation engine.

ContentTools is an open-source WYSIWYG editor for HTML content written in JavaScript/CoffeeScript by Anthony Blackshaw of Getme Limited.

<span class="mw-page-title-main">Electron (software framework)</span> Development framework built on Chromium

Electron is a free and open-source software framework developed and maintained by OpenJS Foundation. The framework is designed to create desktop applications using web technologies that are rendered using a version of the Chromium browser engine and a back end using the Node.js runtime environment. It also uses various APIs to enable functionality such as native integration with Node.js services and an inter-process communication module.

Metasfresh is an open-source, free ERP software designed and developed for SMEs. Metasfresh is an actively maintained fork of ADempiere and can be used and distributed freely. It does not require a contributor license agreement from partners or contributors. While numerous open-source ERP projects exist, Metasfresh was included in the Top 9 Open Source ERPs to Consider by opensource.com.

JSDelivr is a public content delivery network (CDN) for open-source software projects, including packages hosted on GitHub, npm, and WordPress.org. JSDelivr was created by developer Dmitriy Akulov.

<span class="mw-page-title-main">Enonic XP</span>

Enonic XP is a free and open-source web application platform and content management system (CMS) in one based on Java and Elasticsearch. Developed by the Norwegian software company Enonic, the microservice web platform can be used to build progressive web applications, Next.js websites, or web-based APIs. Enonic XP uses an application framework for coding server logic with JavaScript, and has no need for SQL as it ships with an integrated content repository. The CMS is fully decoupled, meaning developers can create traditional websites and landing pages, or use XP in headless mode, that is without the presentation layer, for loading editorial content onto any device or client. Enonic is used by major organizations in Norway, including the national postal service Norway Post, the insurance company Gjensidige, the national lottery Norsk Tipping, the Norwegian Labour and Welfare Administration, and all the top football clubs in the national football league for men, Eliteserien.

<span class="mw-page-title-main">Deno (software)</span> Secure JavaScript and TypeScript runtime

Deno is a runtime for JavaScript, TypeScript, and WebAssembly that is based on the V8 JavaScript engine and the Rust programming language. Deno was co-created by Ryan Dahl, who also created Node.js.

<span class="mw-page-title-main">Decentraleyes</span> Browser extension

Decentraleyes is a free and open-source browser extension used for local content delivery network (CDN) emulation. Its primary task is to block connections to major CDNs such as Cloudflare and Google and serve popular web libraries locally on the user's machine. Decentraleyes is available for Microsoft Edge, Mozilla Firefox + Firefox ESR, Google Chrome, Pale Moon and Opera web browsers.

Vercel Inc., formerly ZEIT, is an American cloud platform as a service company. The company maintains the Next.js web development framework.

References

  1. "cdnjs/cdnjs GitHub API". GitHub. Retrieved 8 July 2019.
  2. "cdnjs/LICENSE at master · cdnjs/cdnjs". GitHub . Retrieved 17 April 2019.
  3. "libraries - cdnjs.com - The best FOSS CDN for web related libraries to speed up your websites!" . Retrieved 17 April 2019.
  4. 1 2 "Sponsorships". Cloudflare. Retrieved September 3, 2020.
  5. 1 2 "Top 4 CDN services for hosting open source libraries | opensource.com". opensource.com. Retrieved 18 April 2019.
  6. 1 2 "cdnjs/cdnjs: 🤖 CDN assets - The #1 free and open source CDN built to make life easier for developers". GitHub . Retrieved 13 May 2021.
  7. Ivanovs, Alex (April 3, 2014). "Faster Content Delivery Solutions for Web Developers". The Huffington Post. Retrieved September 3, 2020.
  8. "Usage Statistics and Market Share of JavaScript Content Delivery Networks for Websites". W3Techs. Retrieved 13 May 2021.
  9. Goto, Daichi (November 1, 2018). "JavaScript CDNのCDNJSが成長中、シェア8%超え". Mynavi.
  10. "ULTIMATE GUIDE TO CDNJS- WHAT IT DOES FOR YOUR WEBSITE". BelugaCDN. July 27, 2020. Retrieved September 3, 2020.
  11. "cdnjs.com: the missing cdn". cdnjs.com. Archived from the original on January 25, 2011. Retrieved September 3, 2020.
  12. 1 2 3 "CDNJS: Community Moderated Javascript Libraries + CloudFlare". Cloudflare. 16 June 2011. Retrieved 18 April 2019.
  13. 1 2 "345 - Behind CDNJS - #Cat5TV Category5TV". May 3, 2014. Retrieved September 3, 2020.
  14. 1 2 "63: CDNJS with Thomas Davis and Ryan Kirkman". The Changelog. June 21, 2011. Retrieved September 3, 2020.
  15. "cdn js | Treehouse Blog" . Retrieved 18 April 2019.
  16. @Cloudflare (16 June 2011). "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" (Tweet) via Twitter.
  17. Perez, Sarah (June 24, 2019). "Cloudflare issues affecting numerous sites on Monday AM [Update: fixed]". TechCrunch. Retrieved September 3, 2020.
  18. 1 2 3 "Lack of cdnjs activity". Hacker News. November 1, 2019. Retrieved September 3, 2020.
  19. "Lack of cdnjs activity". GitHub. October 21, 2019. Retrieved September 3, 2020.
  20. "An Update on CDNJS". The Cloudflare Blog. December 19, 2019. Retrieved September 3, 2020.
  21. "cdnjs". Open Collective. Archived from the original on December 24, 2019. Retrieved September 3, 2020.
  22. "cdnjs/packages: 📦 Package configurations - The #1 free and open source CDN built to make life easier for developers". GitHub . Retrieved 13 May 2021.
  23. "Open Source at DigitalOcean" . Retrieved 8 July 2019.
  24. "15+ Free CDN WordPress Services to Boost Your Site Speed (2019) - CollectiveRay" . Retrieved 18 April 2019.
  25. 1 2 "About Us - cdnjs - The #1 free and open source CDN built to make life easier for developers" . Retrieved 13 May 2021.
  26. "cdnjs API | ProgrammableWeb" . Retrieved 18 April 2019.
  27. "API - cdnjs.com - The best FOSS CDN for web related libraries to speed up your websites!" . Retrieved 17 April 2019.
  28. "CDNJS: The Fastest Javascript Repo on the Web". Cloudflare. 12 December 2012. Retrieved 18 April 2019.
  29. "HSTS Preload List Submission" . Retrieved 17 April 2019.