A hosted mirror of the NPM Registry OpenAPI schema, automatically synced via GitHub Actions.
The upstream project publishes its schema only as a blob download from a Redocly-generated
doc site. This repo makes the generated openapi.yaml / openapi.json directly accessible
as plain files in a git repository.
For openapi.yaml as a URL: https://raw.githubusercontent.com/jeremy-code/npm-openapi/refs/heads/main/openapi.yaml.
| File | Description |
|---|---|
openapi.yaml |
Merged OpenAPI 3.0 schema (YAML) |
openapi.json |
Same schema in JSON format |
.npm-api-sha |
SHA of the last upstream commit that touched api/ |
A scheduled GitHub Actions workflow:
- Calls the GitHub API to get the latest commit SHA that touched
api/innpm/api-documentation - Compares it to the SHA stored in
.npm-api-sha - If there are new commits, clones the upstream repo, runs
npm run generate(which invokesopenapi-merge-cli), converts the output to JSON, and opens a pull request No rebuild happens if theapi/directory hasn't changed, even if other files in the upstream repo were updated.