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

self-healing-cli

v0.0.2

Published

A CI auto-fix CLI tool powered by [GitHub Copilot CLI](https://github.com/github/copilot). When your CI fails, it captures the error logs, asks Copilot to fix them, verifies the fix, and creates a PR — or leaves a comment if the fix doesn't work.

Readme

self-healing-cli

A CI auto-fix CLI tool powered by GitHub Copilot CLI. When your CI fails, it captures the error logs, asks Copilot to fix them, verifies the fix, and creates a PR — or leaves a comment if the fix doesn't work.

How It Works

CI command fails
       |
       v
  +---------+     +-----------+     +----------+
  | collect |---->|   heal    |---->| Copilot  |
  | (logs)  |     | (analyze) |     | (fix)    |
  +---------+     +-----------+     +----------+
                       |
                       v
                  Has changes?
                  /         \
                yes          no
                /              \
           Verify          Comment:
           command         "no changes"
           /    \
        pass    fail
        /          \
   Create PR    Comment:
               "needs review"

Install

pnpm install
pnpm build

Usage

collect — Capture CI logs

Run a command and save its output to a file. Exits with the command's exit code.

self-healing collect --command <cmd> --output <file>

| Option | Description | |---|---| | --command | Command to run | | --output | Output log file path |

Example:

self-healing collect --command "pnpm run check" --output check.log

heal — Auto-fix with Copilot

Read a log file, send it to Copilot CLI for analysis, verify the fix, and create a PR or comment.

self-healing heal --log <file> --verify <cmd> [--model <model>] [--tail <lines>]

| Option | Description | Default | |---|---|---| | --log | Input log file path | (required) | | --verify | Command to verify the fix | (required) | | --model | Copilot model to use | Copilot default | | --tail | Number of log lines to send | 100 |

Example:

self-healing heal --log check.log --verify "pnpm run check" --model gpt-5.2

GitHub Actions

Auto-heal on lint/test failure

# .github/workflows/lint.yml
- name: Lint
  id: lint
  continue-on-error: true
  run: npx self-healing collect --command "pnpm run check" --output lint.log

- name: Heal lint
  if: steps.lint.outcome == 'failure'
  env:
    COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
    GH_TOKEN: ${{ secrets.GH_TOKEN }}
  run: |
    npm install -g @github/copilot
    npx self-healing heal --log lint.log --verify "pnpm run check"

Manual dispatch

The copilot.yml workflow supports workflow_dispatch with custom command and verify inputs, so you can trigger a heal run from the GitHub Actions UI for any command.

Prerequisites

  • Node.js >= 22
  • GitHub Copilot CLI (npm install -g @github/copilot)
  • GitHub CLI (gh) — for creating PRs and comments
  • COPILOT_GITHUB_TOKEN secret in your repo

Development

pnpm install        # install dependencies
pnpm dev            # watch mode
pnpm build          # build
pnpm test           # run tests
pnpm run check      # lint + format (biome)

Tech Stack

License

MIT