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-autopilot

v0.2.0

Published

AI-driven GitHub repository maintenance CLI

Downloads

20

Readme

repo-autopilot

repo-autopilot is an AI-driven GitHub repository maintenance CLI for handling stale issues, reviewing Dependabot PRs, and generating weekly health reports across open source repositories.

Install

pnpm install
pnpm build

For local development:

pnpm exec repo-autopilot --help

Quick Start

Set a GitHub token with repo maintenance permissions:

repo-autopilot config set-token <github-token>

Run maintenance for a repository:

repo-autopilot run owner/repo
repo-autopilot run owner/repo --dry-run
repo-autopilot run owner/repo --stale-only
repo-autopilot run owner/repo --dependabot-only
repo-autopilot run owner/repo --days-stale 45

Generate a report:

repo-autopilot report owner/repo
repo-autopilot report owner/repo --format markdown
repo-autopilot report owner/repo --format markdown --output weekly-report.md

Maintain multiple repositories:

repo-autopilot config add owner/repo
repo-autopilot config list

Define maintenance schedules:

repo-autopilot schedule add "0 9 * * MON" --repos owner/repo-one,owner/repo-two
repo-autopilot schedule list
repo-autopilot schedule generate-crontab

Audit label consistency:

repo-autopilot label-audit owner/repo-one owner/repo-two owner/repo-three
repo-autopilot label-audit owner/repo-one owner/repo-two --sync --dry-run

Commands

run <owner/repo>

Runs stale issue detection, Dependabot PR checks, and prints a weekly health summary.

Options:

  • --dry-run: show pending actions without mutating GitHub
  • --stale-only: only process stale issues
  • --dependabot-only: only process Dependabot PRs
  • --days-stale <n>: override the stale threshold for the current run

report <owner/repo>

Generates a weekly health report in terminal or markdown format.

Options:

  • --format <fmt>: markdown or terminal
  • --output <file>: write the report to a file

config

  • repo-autopilot config set-token <token>
  • repo-autopilot config add <owner/repo>
  • repo-autopilot config list

schedule

  • repo-autopilot schedule add <cron> --repos <repo-a,repo-b>
  • repo-autopilot schedule list
  • repo-autopilot schedule run <id>
  • repo-autopilot schedule generate-crontab

Schedules are stored in ~/.repo-autopilot/schedules.json. Cron execution is not built into the CLI; generate-crontab prints entries that call repo-autopilot schedule run <id>.

label-audit <owner/repo...>

Audits labels across repositories, shows the shared and repo-specific sets, and can optionally create missing labels so all repos converge on one superset.

Options:

  • --sync: create missing labels in repos that do not already have them
  • --dry-run: print the planned label creation actions without changing GitHub

Configuration

Configuration lives at ~/.repo-autopilot/config.json.

Example:

{
  "githubToken": "ghp_xxx",
  "repos": [
    "owner/repo-one",
    "owner/repo-two"
  ],
  "stale": {
    "daysUntilStale": 60,
    "daysUntilClose": 90,
    "staleLabel": "stale",
    "staleComment": "This issue has been marked as stale due to inactivity. It will be closed if there is no further activity.",
    "closeComment": "Closing this issue due to prolonged inactivity. Feel free to reopen with fresh context if the problem persists.",
    "exemptLabels": [
      "pinned",
      "security",
      "in-progress"
    ],
    "closeQuestionsAfter": 90
  },
  "dependabot": {
    "autoPatch": true,
    "autoMinor": true,
    "autoMajor": false,
    "mergeMethod": "squash",
    "skipIfDraft": true
  }
}

GitHub Token Setup

Use a fine-grained personal access token or GitHub App token with permissions for:

  • Issues: read and write
  • Pull requests: read and write
  • Metadata: read
  • Contents: read

You can also set GITHUB_TOKEN in the environment. The config file value takes precedence when present.

Use Case

repo-autopilot is designed for maintainers who want lightweight automation across multiple repositories without wiring up GitHub Actions or a larger bot stack. It keeps issue queues moving, clears low-risk dependency updates, and produces a repeatable weekly summary for repo health.