• Stars
    star
    205
  • Rank 191,264 (Top 4 %)
  • Language
    JavaScript
  • License
    Open Software Lic...
  • Created over 7 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The public jsDelivr API. Get npm packages, files, versions, entry points, as well as their CDN URLs and download stats.

jsDelivr API

Related projects:

The API is free to use and imposes no rate limits. However, if you plan to make 100+ RPM for longer periods of time, you should contact us first. Please note that usage statistics are available with a 48 hour delay. We only have data starting from Aug 19, 2017 and data older than one year may not be available.

Let us know how you use this API

If you create a tool/plugin/etc. which uses this API, please include a link to your tool in the User-Agent header so that we can learn more about how this API is being used.

Restrictions

Neither jsDelivr CDN nor this API supports packages larger than 50 MB for GitHub and 100 MB for npm. Trying to get a list of files using the API will result in a 403 response.

Endpoints

See the documentation or download the OpenAPI spec file.

FAQ

Search npm packages

There is no search endpoint in this API because there are already two other APIs for that:

Contributing

Refer to CONTRIBUTING.md for more information.

Production config

module.exports = {
    server: {
        port: 'SERVER_PORT', // defaults to 4454
        debugToken: 'SERVER_DEBUG_TOKEN' // The debug endpoint will be available at /debug/SERVER_DEBUG_TOKEN
    },
    db: {
        connection: {
            host: 'DB_CONNECTION_HOST', // defaults to localhost
            port: 'DB_CONNECTION_PORT', // defaults to 3306
            user: 'DB_CONNECTION_USER',
            password: 'DB_CONNECTION_PASSWORD',
            database: 'DB_CONNECTION_DATABASE', // defaults to jsdelivr-stats
        },
    },
    redis: {
        db: 'REDIS_DB', // defaults to 0
        host: 'REDIS_HOST',
        port: 'REDIS_PORT',
        password: 'REDIS_PASSWORD',
    },
    v1: {
        gh: {
            apiToken: 'V_1_GH_API_TOKEN',
        },
    },
}

Additionally, ELASTIC_APM_SERVER_URL, ELASTIC_APM_SECRET_TOKEN, ELASTIC_SEARCH_URL (including user + pass), and NODE_ENV=production should be set.

More Repositories

1

jsdelivr

A free, fast, and reliable Open Source CDN for npm, GitHub, Javascript, and ESM
JavaScript
5,571
star
2

bootstrapcdn

Free Bootstrap CDN hosting
JavaScript
1,349
star
3

globalping

A global network of probes to run network tests like ping, traceroute and DNS resolve
TypeScript
241
star
4

FontFamous

Font Famous is the free vector media logo font.
Less
223
star
5

globalping-cli

A simple CLI tool to run networking commands remotely from hundreds of globally distributed servers
Go
143
star
6

www.jsdelivr.com

The official jsDelivr website
HTML
139
star
7

api

DEPRECATED - API for public CDNs
JavaScript
113
star
8

globalping-probe

The globalping probe code that runs on your hardware and connects to the global community network of probes
TypeScript
77
star
9

dns-openmix

DEPRECATED - jsDelivr's load balancing algorithm
JavaScript
50
star
10

unplugin-jsdelivr

Use jsDelivr in Vite, Rollup, Webpack and esbuild!
TypeScript
36
star
11

bot

DEPRECATED The jerk of a bot that checks PRs and responds in comments
Python
22
star
12

plugin-intellij

jsDelivr plugin for JetBrains IntelliJ based editors
Java
22
star
13

plugin-vs-code

Quickly insert any npm package from jsDelivr CDN
JavaScript
20
star
14

libgrabber

DEPRECATED Keeps projects hosted in jsDelivr updated
JavaScript
20
star
15

extension-chrome

JavaScript
16
star
16

globalping-hwprobe

OS image for Globalping hardware probes. Become a GitHub Sponsor to get yours!
Shell
15
star
17

foundationcdn

DEPRECATED The code for the website at
CSS
15
star
18

plugin-atom

jsDelivr plugin for Atom
JavaScript
8
star
19

ghost-jsdelivr-theme

The Ghost theme for jsDelivr's blog
SCSS
3
star
20

jsdelivr-media

jsDelivr logo files
3
star
21

api-sync

DEPRECATED Sync portion for jsDelivr API
JavaScript
3
star
22

dns-openmix-diagnostics

DEPRECATED
JavaScript
1
star
23

cleaner

DEPRECATED Remove content of files in a repo
Python
1
star
24

.github

1
star
25

all-the-package-types

JavaScript
1
star
26

globalping-dash

Globalping's official dashboard and probe control panel
JavaScript
1
star
27

dash-directus

The jsDelivr dashboard backend
TypeScript
1
star