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

@alcozy/git-janitor

v1.0.0

Published

An interactive CLI tool to clean up your local and remote Git branches.

Readme

Git Janitor

A powerful, interactive command-line interface (CLI) tool authored by Alex L. Cosentino to easily clean up and manage Git branches.

Stop typing out endless git branch -d commands. Git Janitor provides a beautiful, keyboard-navigated menu to safely prune merged branches, force-delete stale work, and seamlessly check out branches, keeping your local and remote repositories spotless.

Features

  • Auto-Prune: Automatically detects and deletes all local branches that have been successfully merged into your primary branch (main/master).
  • Soft & Hard Deletes: Safely delete branches via an interactive multi-select menu, with built-in safeguards to prevent accidental deletion of unmerged work unless explicitly forced.
  • Remote Syncing: Optionally sync your deletions to the remote repository (origin) with a single keystroke.
  • Interactive Checkout: View a visual graph of your recent commit history and easily switch between active branches without leaving the CLI.
  • Safety First: Built-in protections prevent you from deleting your current active branch or your primary repository branch.

Installation

Global Installation

You can install Git Janitor globally on your machine using npm:

npm install -g @alcozy/git-janitor

Run without installing (npx)

If you prefer not to install it globally, you can run it instantly using npx:

npx @alcozy/git-janitor

Usage

Navigate to any Git repository on your machine and simply run:

git-janitor

Use your arrow keys to navigate the menu and Spacebar to select multiple branches for deletion.

Tech Stack

  • TypeScript & Node.js Child Processes
  • @clack/prompts for the interactive terminal UI
  • Figlet & Picocolors for terminal typography and styling

Local Development / Contributing

If you want to modify the source code or build the project locally:

  1. Clone the repository:
git clone https://github.com/aluciencozy/git-janitor.git
cd git-janitor
  1. Install dependencies:
npm install
  1. Compile the TypeScript:
npm run build
  1. Link the package globally:
npm link