This is the API documentation for https://api-docs.npmjs.com/.
This repository contains the OpenAPI YAML specifications for our API documentation site, and the GitHub Actions workflows that generate the site itself.
Ready to contribute to the npm API documentation? Here's how to get started:
- Install dependencies:
npm install - Update the documentation - it's OpenAPI YAML format - in the
api/directory:- Main OpenAPI spec:
api/base.yaml - Registry-specific endpoints:
api/registry.npmjs.com/
- Main OpenAPI spec:
- Test your changes:
npm run build(generatesindex.htmlandopenapi.yaml) - Review your changes: Inspect the generated
html/index.htmlfile in your browser or check theopenapi.yamlfile for your changes - Fix any issues:
npm run lintfix:yamlfor YAML formatting - Submit your PR: Commit your changes and open a pull request at https://github.com/npm/api-documentation
Do you want to know more? Check out our contributing guide.
The npm API documentation in the content is licensed under a CC-BY 4.0 license.
All other code in this repository is licensed under a MIT license.
When using the GitHub logos, be sure to follow the GitHub logo guidelines.