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

delete-github-forks

v0.1.2

Published

Delete your GitHub forks in bulk.

Readme

Delete GitHub Forks

A safe, local web app for reviewing and deleting GitHub forks in bulk.

Delete GitHub Forks app showing repository filters and selection

Quick start

You need Node.js 20.19 or newer. Run the latest published version directly from npm—no clone or global installation required:

npx delete-github-forks@latest

The command:

  1. Downloads the package temporarily through npm.
  2. Starts a local server at http://127.0.0.1:4173.
  3. Opens the app in your default browser.
  4. Detects your GitHub CLI authentication automatically.

The server runs only on your computer and stops when you press Ctrl + C. If port 4173 is occupied, the app uses the next available port.

Command options

Use a specific port:

npx delete-github-forks@latest --port 8080

Start the server without opening a browser:

npx delete-github-forks@latest --no-open

All options:

--port <number>  Use a specific port (default: 4173, then next available)
--no-open        Do not open the browser automatically
-h, --help       Show command help

Authentication

GitHub CLI (recommended)

The app automatically detects an authenticated GitHub CLI session. On a fresh computer, sign in and request repository deletion access in one step:

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

If you are already signed in without the required permission, add it to your existing session:

gh auth refresh -h github.com -s delete_repo

No access token needs to be created, copied, or stored by the app.

Personal access token

If GitHub CLI is unavailable, enter a personal access token in the local webpage. The token is sent only to the server on 127.0.0.1, held in process memory for the current session, and never written to disk, browser storage, logs, cookies, or URLs.

  • Classic tokens need the repo and delete_repo scopes.
  • Fine-grained tokens need Metadata: Read, Pull requests: Read, and Administration: Read and write for each repository they may delete.

How it works

  1. The app fetches all public and private forks owned by the authenticated account.
  2. It checks every fork branch for open pull requests that still depend on it.
  3. Filter by repository name, visibility, or last activity.
  4. Select only the repositories you want to delete. Bulk selection skips forks with open pull requests or an unknown check result.
  5. Review the exact list and type DELETE to confirm.
  6. The app deletes repositories sequentially and reports every success or failure.

Deletion is irreversible. Nothing is selected by default, and the server only accepts repositories from the list fetched during the current session.

Build and run from source

If you prefer to inspect the code before running it, clone the repository and build the application locally instead of executing the published npm package:

git clone https://github.com/yangshun/delete-github-forks.git
cd delete-github-forks
npm install
npm run build
npm start

The app opens automatically at http://127.0.0.1:4173. You can also pass command options through npm:

npm start -- --no-open
npm start -- --port 8080

You can also verify the source and local build before running the app:

npm run typecheck
npm test
npm run build

The frontend uses React, TypeScript, Vite, and Mona Sans. The local API uses Hono on Node.js.

License

MIT