Giter VIP home page Giter VIP logo

cdnjs's Introduction

< cdnjs >

The #1 free and open source CDN built to make life easier for developers.


Robots only MIT License Discussions

GitHub Sponsors Open Collective Patreon


Table of Contents

Introduction

This is the robot-only repository for cdnjs, where all the library assets that are hosted on cdnjs are stored. For the JSON files that control the libraries we host, please see the "human" cdnjs/packages repository.

Other Repositories

For the JSON files controlling the libraries we host on cdnjs, please take a look at the "human" cdnjs/packages repository.

For our website, please refer to the cdnjs/static-website repository.

For the cdnjs API, please refer to the cdnjs/api-server repository.

For the full cdnjs branding and brand-related assets/guidelines, please see the cdnjs/brand repository.

For our monthly CDN stats and usage reports, check out the cdnjs/cf-stats repository.

You can find all our repositories at github.com/cdnjs!

Contributing

As this repository is now considered robot-only, pull requests are no longer accepted for this repository. If you are looking to contribute to cdnjs, please take a look at the cdnjs/packages repository or any of our other open-source repositories on GitHub!

Sponsors

cdnjs wouldn't be the success that it is today without our sponsors' kind support. These companies currently support cdnjs:

If you are interested in becoming a sponsor, please feel free to contact us!

License

Each library is released under its own license. This cdnjs repository is published under MIT license.

cdnjs's People

Contributors

amomo avatar clairetsai818 avatar codler avatar dakshshah96 avatar dannyxx001 avatar drewfreyling avatar extend1994 avatar hare1039 avatar jackdoyle avatar jdalton avatar jgallardo avatar kennynaoh avatar leayeh avatar lockyc avatar maruilian11 avatar mattipv4 avatar peterbot avatar peterdavehello avatar piicksarn avatar pvnr0082t avatar robocdnjs avatar rwjblue avatar ryankirkman avatar sashberd avatar sufuf3 avatar the-cdnjs-curator avatar thomasdavis avatar x09326 avatar xrmx avatar xtuc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cdnjs's Issues

UPDATE: RequireJS to v0.26.0

RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino and Node. Using a modular script loader like RequireJS will improve the speed and quality of your code.

Some links on the homepage do not exist

Some links to javascript files on the CDN do not exist.
My toughts on that is that the link is automatically generated from the "name" and "version" and "filename" keys in packages.json
Suggested fix: Instead of "filename" being only the filename of the script, let it be the full path to the file.

Examples:

DocumentUp:

Link on the homepage: http://cdnjs.cloudflare.com/ajax/libs/**DocumentUp**/0.1.1/documentup.min.js
Real link: http://cdnjs.cloudflare.com/ajax/libs/**documentup**/0.1.1/documentup.min.js

jQuery Throttle / debounce:

Link on the homepage: http://cdnjs.cloudflare.com/ajax/libs/**jQuery throttle / debounce**/1.1/jquery.ba-throttle-debounce.min.js
Real link: http://cdnjs.cloudflare.com/ajax/libs/**jquery-throttle-debounce**/1.1/jquery.ba-throttle-debounce.min.js

Ninja UI:
Link on the homepage: http://cdnjs.cloudflare.com/ajax/libs/**Ninja UI**/1.0.1/jquery.ninjaui**.js**
Real link: http://cdnjs.cloudflare.com/ajax/libs/**ninjaui**/1.0.1/jquery.ninjaui**.min.js**

Is there a way to reliably grab the 'latest' version of a lib directly via a URL?

I'm using Sublime Text 2 and the Nettuts Fetch plugin which can fetch resources via a URL, at the moment trying to get the latest version of Modernizr proves difficult as there doesn't seem to be a single URL that would auto server the 'latest' version of this script…

Currently I'm querying the url: "http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.1/modernizr.min.js" directly but the moment 2.6.2 comes out I will still be referencing 2.6.1.

Is there a better way to grab the "latest" of a given library?

Something like: "http://cdnjs.cloudflare.com/ajax/libs/modernizr/latest/modernizr.min.js" where the latest folder would always contain the most up to date version of that lib would be nice.

Any thoughts on this or a better way for me to do what I'd like to do here?

Thanks for reading.

URL on cdnjs.com generated from "name" in package.json?

The URL presented on CDNJS.com for my recent Highcharts JS lib addition is:
http://cdnjs.cloudflare.com/ajax/libs/Highcharts JS/2.1.5/highcharts.js

But the actual url is:
http://cdnjs.cloudflare.com/ajax/libs/highcharts/2.1.5/highcharts.js

I was under the impression the path would be generated from the filepath in the repo, not by some other means. I'd fix the name in the repo, but it seems it may be more appropriate to change the way the URL is generated. If you don't agree, let me know & I'll fix the name in package.json (if that is indeed how it's being generated).

Cheers!

Add jquery countdown

Hey!

I have added jquery countdown plugin through this pull request:
#203
But the pull request was closed.
I have clarified authenticity of the source.

Could you add this plugin, please?

Add a JSON version of the library listing

I'd love to be able to write an asset manager that can check for the newest versions of libraries on cdnjs (or even just the existence of them) and automatically use the cdnjs version rather than a locally hosted version.

YUI version is woefully out of date

YUI is now at version 3.6.0, with some significant and huge improvements that have been made since 3.3.0.

I'm fine with assisting in getting it up to date and maintaining, but since there is already a YUI 3.3.0 and I fork to add it, will it handle the separate versions well?

Thanks,
-Jay

Update the README

The README needs to be more verbose and really needs to list how to fork correctly.

Shorter URLs

I really think you guys should go for shorter URLs. For example:

http://cdnjs.cloudflare.com/jquery.1.7.2.min.js

instead of

http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js

or am I possibly missing something essential that led you guys to go with the longer URLs ?

Automatically pull latest library versions

Is there a smarter way to update the versions of libraries in the cdn? You could listen for git hooks and and pull the latest releases from GitHub, something similar to the new jQuery plugins system?

It seems this way you would always have the latest versions of projects hosted, and then have less overhead merging pull requests.

Correct format for multiple versions of a lib?

I'd like to submit curl.js, but there are several minified versions or curl.js, depending on the user's needs. For instance, there's a version optimized for dojo users and another optimized for jQuery users (as well as other versions). It's not clear to me how to structure the package.json.

Should I just include all of the versions in the folder and call-out one of them in the package.json?

Thanks!

-- John

Minify JSON Library

The JSON Library is not the minified version. Can this be minified and hosted?

Update CDN with latest libraries

I noticed that there are many libraries in the github repo, but not all of them are on the CDN site. Can someone please push the latest?

Thanks.

Typo in published path to jquery.timeago.js

The file in your repo for the Timeago script is here:

http://cdnjs.cloudflare.com/ajax/libs/jquery-timeago/0.9.3/jquery.timeago.js (works)
http://cdnjs.cloudflare.com/ajax/libs/jquery-timeago/0.9.3/jquery-timeago.js (broken)

Unfortunately, the index on your home page lists the broken one. Note that the "-" towards the end should be a ".".

Different hostnames for the CDN

Hi, first of all I'd like to thank everyone responsible for this amazing initiative, it's a great idea with a clear and important purpose.

Second, I'd like to ask if it's possible or maybe it's asking too much, if additional sub-domains could be created and pointed to cdnjs.cloudflare.com . Additional subdomains like cdnjs2.cloudflare.com, cdnjs3.cloudflare.com, etc.

This would help to load multiple files in parallel, as the recommended number of parallel requests from a web browser is 2 (a quick google search pointed me to this article: http://gtmetrix.com/parallelize-downloads-across-hostnames-implementation-guide.html).

This would specially be of value for people using Backbone.js, as they have to load 3 scripts (backbone.js, underscore and jquery or zepto), and if someone would use more jquery plugins it would be more than 3 scripts.

Thanks in advance.

100% Uptime

The site says "100% Uptime" and the word uptime links to pingdom results that show instances where it's been down and thus is "99.99%" time uptime. Please adjust the site accordingly or add a note saying "rounded up".

Standardize Repository Links

In package.json, some URLs are listed as the link to the repo via the git:// protocol, and some are listed as HTTPS links.

We should probably standardize this. Thoughts?

/cc @thomasdavis

CoffeeScript?

I have the commit ready to go. It's a bit of a grey area as to whether we add it, but I don't think it would conflict with our vision.

Could be useful for JSFiddle etc.

/cc @thomasdavis

Proposed Website Changes - Datatables

All scripts with (some / most) details go into a datatables instance (http://datatables.net/).

Why? Seems like it would be easier to browse, and give you more info at a glance. Plus, searching is great with datatables.

You can link to search results as per usual. Perhaps a URL such as http://www.cdnjs.com/#/search/socket just pre-fills the search box.

We could have individual pages for each script, such that linking to an exact name match like: http://www.cdnjs.com/#/socket.io will display all details we have for that script in packages.json in some sexy way.

NB: Probably still a single page app?

/cc @thomasdavis

Accessing the latest version x.y.z releases by x.y or x

Various CDNs (Google's for example) allow access of the latest bug fix release of a certain series by not specifying the minor version number. This makes sense, because such releases usually don't contain anything that can breakage, but only contain bug, performance or stability fixes (maybe better support for certain browsers).

To give an example. The current:

http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery-1.8.0.min.js

should also be available as:

http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8/jquery-1.8.min.js

and once 1.8.1 is released link to:

http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.1/jquery-1.8.1.min.js

For comparison see:

https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js
https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

(Maybe it would be better to mention this in its own ticket, but specifying the version number twice seems unnecessary.)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

cdnjs website redesign

Please leave all ideas and comments in regards to the cdnjs website redesign below e.g.

  • Show more library information
  • Give us a way to embed quicker
  • AMD support snippets
  • How to categorize the libraries

etc etc

Look forward to hearing from you!

Including CSS

I'd like to add a Javascript library to cdnjs that includes some CSS to ensure it appears correctly. What's the preferred way for this to be included? Should I just add the CSS file alongside the JS file in my fork, add it to cdncss instead, or something else?

What is the recommended structure for adding XRegExp?

@ryankirkman , @thomasdavis , etc.

I'd like to add my XRegExp v2.0.0 library to cdnJS (I'll be sending a pull request after getting feedback on this issue). However, because of its collection of addons, there are a lot of associated script files. The most popular of them (listed with their paths in the XRegExp repo) are as follows:

  • src/xregexp.js
  • min/xregexp-min.js
  • xregexp-all.js
  • min/xregexp-all-min.js
  • src/addons/unicode/unicode-base.js

The remaining scripts are:

  • src/backcompat.js
  • src/addons/build.js
  • src/addons/matchrecursive.js
  • src/addons/prototypes.js
  • src/addons/unicode/unicode-categories.js
  • src/addons/unicode/unicode-scripts.js
  • src/addons/unicode/unicode-blocks.js
  • src/addons/unicode/unicode-properties.js

Would it be OK to add all of these? I'm thinking that for cdnJS I'd flatten the directory structure and simply include all of the the above scripts in an ajax/libs/xregexp/2.0.0/ directory.

Is including the individual XRegExp addons overkill for cdnJS? If so, perhaps I could just add xregexp-min.js and xregexp-all-min.js.

Stats on usage?

I'm curious if you can offer any sort of data on the relative traffic of all the libraries.

Knowing which are used more and less often would be very helpful, I think, to a lot of developers.

I'll take some raw data if that's easier for you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.