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

clean-this-shit

v1.0.2

Published

Ultimate Mac disk space cleaner with TUI

Downloads

34

Readme

🧹 Clean This Shit

Your Mac says 232 GB in "Documents" but you can't find where? Yeah. We fix that.

A no-bullshit Mac disk cleaner with a beautiful terminal UI. Scans everything, explains what it found, lets you pick what to nuke, and only cleans with your explicit say-so.

Clean This Shit — Auto Clean mode

Install

npm install -g clean-this-shit

Or clone it:

git clone https://github.com/andycufari/clean-this-shit.git
cd clean-this-shit
npm install && npm link

Usage

# interactive menu — browse each category
clean-this-shit

# auto mode — scan everything, review checklist, clean
clean-this-shit --auto

What it does

  1. Scans your entire system for space hogs — caches, logs, Docker, dev tools, cloud data, large forgotten files
  2. Shows you exactly what's eating your disk with size bars and plain-English explanations
  3. Lets you pick what to clean with an interactive checklist (safe items pre-selected)
  4. Cleans only what you confirm — never touches your documents unless you explicitly ask

Features

🔍 Disk Overview

Full breakdown of where your space goes. APFS-aware — shows real container usage, not the misleading df numbers.

🧹 Cache & Temp Cleaner

Browser caches (Safari, Chrome, Arc, Firefox), app caches (Slack, Discord, Spotify), dev caches (Xcode, Homebrew, npm, Yarn, pip, Cargo, CocoaPods), logs, crash reports, temp files, Trash.

🐳 Docker Cleanup

Shows docker system df alongside the actual VM disk size on your Mac — explains the gap. Prune images, containers, volumes, build cache, or full nuke.

☁️ Cloud Data

Photos Library, Mail, iMessage, iCloud Drive local caches. Shows what's cleanable vs info-only with tips.

🐘 Large Files Hunter

Scans your home directory for files > 50 MB with a live progress bar. Multi-select with spacebar, type DELETE to confirm. Shows file age and path.

📥 Downloads Review

Finds old .dmg, .pkg, .zip, .iso, .rar files and anything untouched for 30+ days in your Downloads folder.

💀 Stale Documents

Files > 10 MB in Documents/Downloads/Desktop not accessed in 90+ days.

🚀 Auto Clean

The star of the show. Three steps:

  1. Scan — live progress bar scanning 20 locations
  2. Review — interactive checklist with safe items pre-checked, toggle what you want
  3. Clean — processes your selection with before/after disk stats

What it cleans

Safe — apps regenerate these, marked [x] by default:

  • ~/Library/Caches — app & browser caches
  • ~/Library/Logs — app logs & crash reports
  • /tmp — temp files older than 1 day
  • Homebrew, npm, Yarn, pip, Cargo, CocoaPods caches
  • Xcode DerivedData, device support, simulators
  • Trash

With caution — marked [ ], you opt-in:

  • iMessage attachments (pics & vids from chats)
  • Docker full prune (re-downloads images next time)

Info only — shows size and what to do:

  • Photos Library → enable "Optimize Mac Storage"
  • Mail Data → IMAP cache managed by Mail.app
  • iCloud Drive → right-click files > Remove Download

Controls

| Key | Action | |-----|--------| | ↑/↓ or j/k | Navigate | | Space | Toggle item on/off | | Enter | Select / Confirm / Delete | | a | Toggle all | | s | Select safe items only | | o | Reveal in Finder | | i | File details | | c | Credits | | Esc | Back | | q | Quit |

How it works

  • Uses diskutil for accurate APFS container stats (falls back to df on non-APFS)
  • Scans with async find + du so the UI stays responsive
  • Cleanup commands use find -exec rm with error suppression — cleans what it can, skips protected system files
  • Never runs sudo. Never touches files outside known cache/temp/log paths unless you explicitly select them in Large Files

Requirements

  • macOS (optimized for APFS, works on HFS+ too)
  • Node.js 18+

Author

Made by andycufari

License

MIT