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

@blackasteroid/mac-cleaner-cli

v1.5.7

Published

🧹 Open-source macOS CLI to clean dev caches (npm, Homebrew, Docker, Xcode, system, browsers)

Readme

mac-cleaner

A fast, safe CLI for cleaning macOS development caches. Reclaim gigabytes of disk space from npm, Homebrew, Docker, Xcode, browsers, and more — in seconds.

Demo — click to watch full video

npm version Build License: MIT


Why

Development machines accumulate gigabytes of cached files over time: npm packages, Homebrew formulas, Docker images, Xcode derived data. Finding and cleaning these manually is tedious and easy to forget.

mac-cleaner does it in one command.

mac-cleaner all

Install

npm install -g @blackasteroid/mac-cleaner-cli

Requires Node.js 20+ and macOS.


Quick start

mac-cleaner all --dry-run    # See what would be cleaned (safe preview)
mac-cleaner all              # Clean everything
mac-cleaner system           # Just system caches and logs
mac-cleaner node --verbose   # Clean npm/yarn/pnpm with details

Commands

| Command | What it cleans | |--------------|----------------| | all | Everything at once — safe defaults | | system | System logs, temp files & caches | | brew | Homebrew cache & old package versions | | node | npm/yarn/pnpm caches + orphaned node_modules | | browser | Chrome, Firefox, Safari, Arc, Brave caches | | docker | Unused containers, images, volumes, build cache | | xcode | Derived data, device support files, simulators | | keychain | Stale Keychain entry audit (read-only) | | privacy | Recent files lists, Finder recents | | scan | Detect accidentally exposed secrets in caches | | upgrade | Update mac-cleaner to the latest version |


Common flags

| Flag | What it does | |---------------------|--------------| | --dry-run | Show what would be deleted — nothing is touched | | --verbose / -v | Show each file/folder as it's processed | | --json | Machine-readable JSON output (great for scripts) | | --no-sudo | Skip paths that require elevated permissions | | -y / --yes | Non-interactive mode (CI/scripts) | | --secure-delete | Overwrite files before deletion (slower, more thorough) | | --include-orphans | Also remove orphaned node_modules (use carefully in monorepos) |


Examples

# Preview a full cleanup without deleting anything
mac-cleaner all --dry-run

# Clean everything and pipe results to a log
mac-cleaner all --json | tee cleanup.log | jq .

# Clean node caches and show details
mac-cleaner node --verbose

# Scan for accidentally exposed secrets (API keys, tokens) before cleaning
mac-cleaner scan

# Update mac-cleaner itself
mac-cleaner upgrade

Security

  • All shell commands use spawnSync with explicit argument arrays — no shell injection.
  • Sudo password collected via masked terminal input, passed via stdin, never stored or logged.
  • Symlink escape protection on all file deletions.
  • Strict semver validation before npm install calls.
  • See SECURITY.md for the full security policy.

Contributing

Pull requests are welcome. See CONTRIBUTING.md for guidelines.

Found a bug? Open an issue.


License

MIT — see LICENSE.


Made with ☕ by BlackAsteroid.