jsDelivr provides mirrors for npm, GitHub, WordPress plugins, and custom endpoints for several other projects with special requirements. If our regular endpoints don't work for your use case, let us know and we'll figure something out!
If you are a package author, check our tips for package authors to make using your package as easy as possible.
Load any project hosted on npm:
https://cdn.jsdelivr.net/npm/package@version/file
Load an exact version of a file:
https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
Use a version range instead of an exact version:
https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
Load by tag (not recommended for production usage):
https://cdn.jsdelivr.net/npm/jquery@beta/dist/jquery.min.js
Omit the version completely or use "latest" to load the latest one (not recommended for production usage):
https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js
https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js
Add ".min" to any JS/CSS file to get a minified version - if one doesn't exist, we'll generate it for you. All generated files come with source maps and can be easily used during development:
https://cdn.jsdelivr.net/npm/[email protected]/github-markdown.min.css
https://cdn.jsdelivr.net/npm/[email protected]
https://cdn.jsdelivr.net/npm/jquery@3
https://cdn.jsdelivr.net/npm/jquery
Get a directory listing:
https://cdn.jsdelivr.net/npm/[email protected]/
https://cdn.jsdelivr.net/npm/[email protected]/dist/
Load any GitHub release, commit, or branch:
https://cdn.jsdelivr.net/gh/user/repo@version/file
Load an exact version of a file:
https://cdn.jsdelivr.net/gh/jquery/[email protected]/dist/jquery.min.js
https://cdn.jsdelivr.net/gh/jquery/jquery@32b00373b3f42e5cdcb709df53f3b08b7184a944/dist/jquery.min.js
Use a version range instead of an exact version:
https://cdn.jsdelivr.net/gh/jquery/[email protected]/dist/jquery.min.js
https://cdn.jsdelivr.net/gh/jquery/jquery@3/dist/jquery.min.js
Omit the version completely or use "latest" to load the latest one (not recommended for production usage):
https://cdn.jsdelivr.net/gh/jquery/jquery@latest/dist/jquery.min.js
https://cdn.jsdelivr.net/gh/jquery/jquery/dist/jquery.min.js
Add ".min" to any JS/CSS file to get a minified version - if one doesn't exist, we'll generate it for you. All generated files come with source maps and can be easily used during development:
https://cdn.jsdelivr.net/gh/jquery/[email protected]/src/core.min.js
Get a directory listing:
https://cdn.jsdelivr.net/gh/jquery/[email protected]/
https://cdn.jsdelivr.net/gh/jquery/[email protected]/dist/
Our combine endpoint allows you to load several files from npm and GitHub endpoints in one request:
https://cdn.jsdelivr.net/combine/url1,url2,url3
All features that work for individual files (version ranges, minification, etc.) work here as well. All combined files come with source maps and can be easily used during development.
https://cdn.jsdelivr.net/combine/gh/jquery/[email protected]/dist/jquery.min.js,gh/twbs/[email protected]/dist/js/bootstrap.min.js
https://cdn.jsdelivr.net/combine/npm/[email protected]/dist/css/bootstrap.min.css,npm/[email protected]/dist/css/bootstrap-theme.min.css
Load any plugin from the WordPress.org plugins SVN repo:
https://cdn.jsdelivr.net/wp/plugins/project/tags/version/file
Load an exact version of a file:
https://cdn.jsdelivr.net/wp/plugins/wp-slimstat/tags/4.6.5/wp-slimstat.js
Load the latest version (not recommended for production usage):
https://cdn.jsdelivr.net/wp/plugins/wp-slimstat/trunk/wp-slimstat.js
Load any theme from the WordPress.org themes SVN repo:
https://cdn.jsdelivr.net/wp/themes/project/version/file
Load an exact version of a file:
https://cdn.jsdelivr.net/wp/themes/twenty-eightteen/1.7/assets/js/html5.js
Add ".min" to any JS/CSS file to get a minified version - if one doesn't exist, we'll generate it for you. All generated files come with source maps and can be easily used during development:
https://cdn.jsdelivr.net/wp/themes/twenty-eightteen/1.7/assets/js/html5.min.js
We provide custom endpoints for the following projects (contact us if you need one too):
package.json
For packages hosted on npm, we support setting a "default" file for each package. This file is displayed at the top of directory listings on our website and available under shorter URL on the CDN. The default file can be configured by setting one of the following fields in package.json
(ordered by priority):
jsdelivr
browser
main
Be advised that you must include file extension in the values, for example:
"main": "./index" // this will NOT work
"main": "./index.js" // this is the correct way