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

@kazoottt/github-repo-cleaner

v0.1.2

Published

Local TUI for cleaning GitHub repositories with gh authentication.

Readme

github-repo-cleaner

npm version npm downloads publish license

Local terminal UI for cleaning GitHub repositories.

The tool reuses GitHub CLI authentication, loads repositories for the active GitHub user, makes forks easy to identify, and supports archive/delete workflows with a page-level second confirmation.

Install

npm install -g @kazoottt/github-repo-cleaner

Run either command:

repo-cleaner
github-repo-cleaner

Authentication

This tool expects gh to own credentials:

gh auth login
gh auth refresh -h github.com -s delete_repo

The app reads the active token from gh auth token and does not store PATs or GitHub tokens.

Usage

repo-cleaner
repo-cleaner --owner KazooTTT

Keys:

up/down  move
space    select repository
f        toggle forks-only
s        toggle sort oldest/newest
/        search
a        archive mode
d        delete mode
enter    review selected repositories
esc      cancel review
q        quit

Development

npm install
npm run dev
npm test
npm run typecheck
npm run build

Release

Releases are created locally with bumpp and published by GitHub Actions when a v* tag is pushed.

npm run release

The release script runs tests, typecheck, and build before bumpp creates the version commit and tag.

npm trusted publishing setup

This project is configured for npm trusted publishing with provenance. No NPM_TOKEN secret is required.

Expected identities:

GitHub owner: KazooTTT
GitHub repository: github-repo-cleaner
npm package: @kazoottt/github-repo-cleaner
Workflow filename: publish.yml

Setup steps:

  1. Push this repository to GitHub as KazooTTT/github-repo-cleaner.
  2. Sign in to npm as the owner of the @kazoottt scope.
  3. Open the npm package access/settings page for @kazoottt/github-repo-cleaner: https://www.npmjs.com/package/@kazoottt/github-repo-cleaner/access.
  4. Add a trusted publisher with:
    • Owner: KazooTTT
    • Repository: github-repo-cleaner
    • Workflow filename: publish.yml
    • Environment name: leave empty unless the workflow is changed to use one
  5. For the first publish only, either:
    • Run npm publish --access public locally as the npm owner of the @kazoottt scope.
    • Or add a temporary NPM_TOKEN repository secret with publish access and rerun the Publish workflow.
  6. Add the trusted publisher in the package settings.
  7. Remove the temporary NPM_TOKEN secret if you used one for bootstrap.
  8. For later releases, run npm run release locally.
  9. Confirm the pushed tag triggers the Publish workflow in GitHub Actions.

After trusted publishing is configured, the publish workflow runs:

npm ci
npm test
npm run typecheck
npm run build
npm publish

Issue Tracker

Local implementation issues live under .scratch/issues/.