https://github.com/pichillilorenzo/npm-registry-open-api
NPM Registry Open API Specification
https://github.com/pichillilorenzo/npm-registry-open-api
api npm npm-api npm-registry npm-registry-api open-api open-api-specification
Last synced: 7 months ago
JSON representation
NPM Registry Open API Specification
- Host: GitHub
- URL: https://github.com/pichillilorenzo/npm-registry-open-api
- Owner: pichillilorenzo
- License: isc
- Created: 2022-10-02T23:29:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T00:05:39.000Z (about 3 years ago)
- Last Synced: 2025-01-27T10:41:34.018Z (8 months ago)
- Topics: api, npm, npm-api, npm-registry, npm-registry-api, open-api, open-api-specification
- Homepage:
- Size: 39.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# NPM Registry Open API
[](/LICENSE)
[](https://www.paypal.me/LorenzoPichilli)Servers:
- https://registry.npmjs.org
- https://registry.npmjs.cf
- https://registry.yarnpkg.com
- https://api.npmjs.orgPaths implemented:
- GET `/`
- GET `/-/all`
- GET `/{packageName}`
- GET `/{packageName}/{version}`
- GET `/-/v1/search`
- GET `/downloads/point/{period}`
- GET `/downloads/point/{period}/{packageName}`
- GET `/downloads/range/{period}`
- GET `/downloads/range/{period}/{packageName}`
- GET `/versions/{packageName}/last-week`
- PUT `/-/user/org.couchdb.user:{user}`
- GET, POST `/-/npm/v1/user`
- GET, POST `/-/npm/v1/tokens`
- DELETE `/-/npm/v1/tokens/token/{uuid}`
- DELETE `/-/user/token/{token}`
- GET `/-/npm/v1/hooks`
- POST `/-/npm/v1/hooks/hook`
- GET, PUT, DELETE `/-/npm/v1/hooks/hook/{id}`## Open API Spec Download
You can download the YAML file using [jsDelivr](https://www.jsdelivr.com/):
[https://cdn.jsdelivr.net/gh/pichillilorenzo/npm-registry-open-api@main/npm-registry-open-api.yaml](https://cdn.jsdelivr.net/gh/pichillilorenzo/npm-registry-open-api@main/npm-registry-open-api.yaml)It is recommended to replace `main` with [a release tag](https://github.com/pichillilorenzo/npm-registry-open-api/tags).
## Usage
Using the official [@openapitools/openapi-generator-cli](https://www.npmjs.com/package/@openapitools/openapi-generator-cli) generator:
```bash
openapi-generator-cli generate -i https://cdn.jsdelivr.net/gh/pichillilorenzo/npm-registry-open-api@main/npm-registry-open-api.yaml -g typescript-fetch
```## License
Released under the [ISC](/LICENSE) license.