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

repo-health-doctor

v0.2.0

Published

Zero-dependency CLI that scores repository readiness before publishing.

Downloads

25

Readme

Repo Health Doctor

npm version GitHub CI

Repo Health Doctor is a zero-dependency CLI that scores whether a repository is ready to publish on GitHub. It checks docs, dependency metadata, tests, CI, env-file hygiene, and obvious secret patterns.

It never reads private .env file contents. It only reports their file names and scans ordinary text files for risky secret patterns.

Why

Use it before publishing a new open-source project, reviewing a starter template, or adding a quick quality gate to CI. It gives maintainers a fast checklist for repository basics that are easy to forget.

Demo

Run it before publishing a repository to catch missing docs, tests, CI, private env files, and obvious secrets.

Repo Health Doctor demo

Quick Start

npx repo-health-doctor .

Package: repo-health-doctor on npm

Configuration

Repo Health Doctor automatically reads .repo-health.json, repo-health.json, or the repoHealth field in package.json.

{
  "failUnder": 80,
  "ignore": ["fixtures/**", "examples/generated/**"],
  "checks": {
    "ci": false,
    "communityDocs": false,
    "tests": {
      "weight": 20
    }
  }
}

You can also pass an explicit config file:

npx repo-health-doctor . --config repo-health.json

Supported check ids:

readme, license, gitignore, manifest, lockfile, tests, ci,
env-hygiene, env-template, secret-scan, community-docs

Use In CI

name: repo health

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  repo-health:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - run: npx repo-health-doctor . --fail-under 80

For local development:

npm test
node src/index.js . --fail-under 70
node src/index.js . --json
node src/index.js . --config repo-health.json

Checks

  • README at the repository root
  • LICENSE at the repository root
  • .gitignore
  • Dependency manifest such as package.json, pyproject.toml, go.mod, or Cargo.toml
  • Lockfile when dependency manifests are present
  • Test script, test directory, or test files
  • CI workflow such as GitHub Actions
  • Private .env files accidentally committed
  • Environment template such as .env.example
  • Obvious secret patterns in ordinary text files
  • Community or release docs

CLI

repo-health-doctor [path] [--json] [--config <path>] [--fail-under <score>]
rhd [path]

Options:

  • --json: print machine-readable JSON
  • --config <path>: read config from a JSON file
  • --fail-under <score>: exit with code 1 when the score is below the threshold
  • --help: print help
  • --version: print version

Example Output

Repo Health Doctor 0.2.0
Repository: /path/to/repo
Config: none
Score: 86/100 (grade B)
Checks: 9/11 passed

[PASS] README present (12/12)
[FAIL] CI workflow present (0/10)
  Fix: Add a GitHub Actions workflow or another CI config that runs tests on pull requests.

Publish Notes

Before publishing to npm:

npm test
npm publish --access public

Launch Kit

Want to share the project or collect feedback? See docs/launch-kit.md for copy-paste posts and a lightweight launch checklist.

License

MIT