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

gh-scaffold

v1.0.3

Published

CLI to scan a repo and generate missing GitHub community health files (.github templates, CONTRIBUTING, SECURITY, etc.)

Readme

gh-scaffold

gh-scaffold is a CLI that scans a repository and helps you generate missing GitHub “community health” files (CONTRIBUTING, SECURITY, issue/PR templates, etc.).

It’s designed to be:

  • Safe by default (no overwrites unless you ask)
  • Repeatable (idempotent)
  • Configurable (presets + optional config file)

What it can generate

Depending on preset/flags:

  • CONTRIBUTING.md
  • SECURITY.md
  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/ISSUE_TEMPLATE/bug_report.(md|yml)
  • .github/ISSUE_TEMPLATE/feature_request.(md|yml)
  • .github/ISSUE_TEMPLATE/config.yml
  • CODE_OF_CONDUCT.md
  • SUPPORT.md

Strict preset also includes:

  • .github/CODEOWNERS
  • .github/FUNDING.yml
  • GOVERNANCE.md
  • MAINTAINERS.md
  • CHANGELOG.md
  • LICENSE (MIT/Apache/GPL)

Install

npm (planned)

npm i -g gh-scaffold

From source

git clone https://github.com/rafazafar/gh-scaffold
cd gh-scaffold
npm i
npm run build
node dist/cli.js --help

Quick start

Interactive (default): scan → choose missing files → preview/write

npx gh-scaffold

Non-interactive scan:

npx gh-scaffold --scan
# or machine-readable:
npx gh-scaffold --scan --json

Non-interactive write:

npx gh-scaffold -w
# preview:
npx gh-scaffold -w --dry-run --diff

Interactive init (writes a config file too):

npx gh-scaffold init

Common usage

Preview what would change:

gh-scaffold -w --dry-run --diff

Overwrite existing:

gh-scaffold -w --force

Presets (mainly for non-interactive/CI runs):

gh-scaffold -w --preset minimal
gh-scaffold -w --preset standard
gh-scaffold -w --preset strict

License selection:

gh-scaffold -w --preset strict --license mit
gh-scaffold -w --preset strict --license apache-2.0
gh-scaffold -w --preset strict --license gpl-3.0

Issue templates format:

gh-scaffold -w --issue-templates markdown
gh-scaffold -w --issue-templates forms

Update mode (Markdown-only managed markers; doesn’t touch non-markdown files):

gh-scaffold -w --update --diff

Monorepo scope:

gh-scaffold -w --scope root
gh-scaffold -w --scope packages
gh-scaffold -w --scope all

Only/skip certain targets:

gh-scaffold -w --only SECURITY,CONTRIBUTING
gh-scaffold -w --skip FUNDING,CODEOWNERS

Config file

Optional config locations:

  • gh-scaffold.yml
  • .github/gh-scaffold.yml

Example:

preset: strict
issueTemplates: forms
license: mit
contacts:
  supportUrl: https://github.com/OWNER/REPO/discussions
  securityEmail: [email protected]
  cocContact: [email protected]
ownership:
  defaultOwners: ["@org/team"]
funding:
  github: orgname
  custom:
    - https://example.com/sponsor

CI enforcement

This repo includes an example workflow that fails PRs if essential files are missing:

  • .github/workflows/check-community-health.yml

Backward compatibility

  • gh-scaffold scan still works (deprecated).
  • gh-scaffold apply still works (deprecated).

Notes

  • Templates are intentionally generic; customize to your project.
  • Prefer committing generated files and reviewing diffs in PRs.