Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsdelivr/data.jsdelivr.com
The public jsDelivr API. Get npm packages, files, versions, entry points, as well as their CDN URLs and download stats.
https://github.com/jsdelivr/data.jsdelivr.com
api esm github javascript npm statistics
Last synced: about 2 months ago
JSON representation
The public jsDelivr API. Get npm packages, files, versions, entry points, as well as their CDN URLs and download stats.
- Host: GitHub
- URL: https://github.com/jsdelivr/data.jsdelivr.com
- Owner: jsdelivr
- License: osl-3.0
- Created: 2017-07-12T19:14:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-09T22:19:17.000Z (7 months ago)
- Last Synced: 2024-04-14T07:10:24.763Z (5 months ago)
- Topics: api, esm, github, javascript, npm, statistics
- Language: JavaScript
- Homepage: https://data.jsdelivr.com/v1
- Size: 5.59 MB
- Stars: 198
- Watchers: 16
- Forks: 38
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- public-apis - jsDelivr
- fucking-public-apis - jsDelivr
- Awesome-API-Provider - jsDelivr
- public-apis - jsDelivr
README
# jsDelivr API
Related projects:
- [jsDelivr CDN](https://github.com/jsdelivr/jsdelivr)
- [jsDelivr website](https://github.com/jsdelivr/www.jsdelivr.com)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](https://www.jsdelivr.com/docs/data.jsdelivr.com)
or download the [OpenAPI spec file](https://data.jsdelivr.com/v1/spec.yaml).## FAQ
### Search npm packages
There is no search endpoint in this API because there are already two other APIs for that:
- [the official npm API](https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#get-v1search)
- [Algolia's npm search](https://github.com/algolia/npm-search) ([more info](https://github.com/jsdelivr/data.jsdelivr.com/issues/6))## Contributing
Refer to [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
## Production config
```js
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.