npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

github-action-docs

v1.1.0

Published

Generate documentation for your GitHub action

Readme

GitHub Actions docs

CI Status codecov npm version

Generate documentation with inputs and outputs from your action.yml file.

This project was inspired by terraform-docs.

Why do you want to use github-actions-docs

You develop GitHub actions. You define available inputs and outputs in your action.yml file but since they are not immediatly available to your users, you also want to document those in your README.md file. However you want to automate this process, so you do not have to manually keep your README.md in sync.

github-actions-docs will read your actions.yml and automatically generate documentation out of it, optionally injecting those in an existing README.md file.

This project was inspired by terraform-docs.

Install

Navigate to your repository that contains your GitHub action and install github-action-docs as a development dependency:

npm install --save-dev github-action-docs

Generate a README.md for your GitHub action

You can now automatically generate a README.md file from your action.yml file:

npx github-action-docs --output-file README.md --mode overwrite action.yml

To only generate certain sections, you can list them:

npx github-action-docs --output-file README.md --sections inputs outputs --mode overwrite action.yml

# In case you list sections as the last option, you have to use -- before the
# final file name:
npx github-action-docs --output-file README.md --mode overwrite --sections inputs outputs -- action.yml

You can also inject documentation to an existing README.md file. Ensure you have markers in your README.md:

Some existing text in your README.md. It will not be overwritten.

<!-- BEGIN_GITHUB_ACTION_DOCS -->
everything in here will be replaced
<!-- END_GITHUB_ACTION_DOCS -->

Some existing text in your README.md. It will not be overwritten.

Now run github-action-docs in inject mode:

npx github-action-docs --output-file README.md --mode inject action.yml

In case you make use of prettier and/or linter, I recommend to disable it for the automatic code block:

Some existing text in your README.md. It will not be overwritten.

<!-- markdownlint-capture -->
<!-- markdownlint-disable -->
<!-- prettier-ignore-start -->
<!-- BEGIN_GITHUB_ACTION_DOCS -->
everything in here will be replaced
<!-- END_GITHUB_ACTION_DOCS -->
<!-- prettier-ignore-end -->
<!-- markdownlint-restore -->

Some existing text in your README.md. It will not be overwritten.

You can also create a task in your package.json:

{
    "name": "your-github-action",
    "scripts": {
        "gen-docs": "github-action-docs --output-file README.md --mode inject action.yml"
    }
}

And then simply execute npm run gen-docs to regenerate your documentation.

Running test

In order to run tests locally, execute the following

npm ci
npm run test:coverage

If you get an ERR_INSPECTOR_NOT_AVAILABLE error, make sure your nodejs is compiled with inspector support. Otherwise run npm run test to skip code coverage