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

octopurge

v1.0.10

Published

A CLI tool to mass delete GitHub repositories

Readme

Octopurge

npm version License: MIT Node.js Version TypeScript

A powerful TypeScript-based CLI tool to mass delete GitHub repositories with an interactive interface. Perfect for cleaning up old repositories, managing test repositories, or bulk repository maintenance.

✨ Features

  • 🎯 Interactive Selection: Choose repositories using an intuitive checkbox interface
  • 🔍 Smart Filtering: Easily find repositories by name or visibility
  • 🛡️ Safety First: Built-in confirmation prompts and dry-run mode
  • 📊 Progress Tracking: Real-time feedback during deletion process
  • Type-Safe: Built with TypeScript for reliability
  • 🎨 Modern UI: Clean, colorful terminal interface
  • 🔄 Bulk Operations: Delete multiple repositories in one go

🚀 Quick Start

From npm

# Install globally
npm install -g octopurge

# Or use npx
npx octopurge

From GitHub Packages

# First, create or edit your .npmrc file
echo "@alexkuchar:registry=https://npm.pkg.github.com" >> ~/.npmrc

# Then install globally
npm install -g @alexkuchar/octopurge

# Or use npx
npx @alexkuchar/octopurge

🔑 Prerequisites

  • Node.js 16 or higher
  • A GitHub Fine-grained Personal Access Token with the following permissions:
    • Repository access: Select the repositories you want to manage
    • Repository permissions:
      • Administration: Read and write

📝 Usage

  1. Create a GitHub Fine-grained Personal Access Token:

    • Go to GitHub Settings > Developer Settings > Personal Access Tokens > Fine-grained tokens
    • Click "Generate new token"
    • Set token name (e.g., "Octopurge")
    • Set token expiration (recommended: 90 days)
    • Select repository access:
      • Choose "Only select repositories" and select the ones you want to manage
    • Set repository permissions:
      • Administration: Read and write
    • Click "Generate token"
    • Copy the token immediately (you won't be able to see it again)
  2. Login with your token:

    octopurge login
  3. Run the tool:

octopurge purge

Command Options

| Option | Description | | --------------- | ---------------------------------------------------- | | -f, --force | Skip confirmation prompt | | -d, --dry-run | Show what would be deleted without actually deleting |

🛠️ Development

  1. Clone the repository:
git clone https://github.com/yourusername/octopurge.git
cd octopurge
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Run in development mode:
npm run dev

⚠️ Warning

⚠️ IMPORTANT: This tool permanently deletes repositories. Make sure you have backups of any important code before using this tool. Use the --dry-run option first to preview what would be deleted.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request