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

@phamyqb/mac-cleaner

v1.2.0

Published

Interactive macOS storage cleanup CLI + RAM monitor GUI

Readme

mac-cleaner

macOS storage and memory cleanup tool — available as a menu bar GUI or a terminal CLI.

Quick start (no install)

# CLI — interactive terminal cleaner
npx @phamyqb/mac-cleaner

# GUI — floating menu bar app
npx @phamyqb/mac-cleaner --gui

Install globally

npm install -g @phamyqb/mac-cleaner

Then run any time:

mac-cleaner        # CLI
mac-cleaner --gui  # GUI

Global install works identically to npx — Electron and all dependencies are bundled with the package.

Note: The Launch at login setting requires a global install. When running via npx, the toggle is disabled because npx caches are temporary and the registered path would break after a cache clear.

GUI features

The menu bar icon shows live RAM usage (9.2G 38%). Click it to open the HUD:

| Tab | What it does | |-----|-------------| | RAM | Live memory gauge, pressure level, top apps by usage, one-click Optimize Memory | | Processes | Process list sorted by memory, kill any process | | Disk | Disk usage bar, cache categories with sizes, auto-rescan, one-click clean | | Settings | Launch at login, auto-clean threshold, auto-clean toggle, notifications, disk rescan interval |

The window appears below the menu bar icon and hides automatically when you click away.

On first Optimize, mac-cleaner prompts once for your password to enable passwordless purge — never asked again.

CLI usage

mac-cleaner [options]

Options:
  -h, --help    Show help
      --gui     Launch the menu bar GUI

Space to toggle items, Enter to confirm.

  • Green [safe] — caches regenerated automatically
  • Yellow [situational] — asks for confirmation

Development

git clone https://github.com/phamyqb/mac-cleaner
cd mac-cleaner
npm install
npm link              # install locally as global binary
npm test              # run unit tests
npm run build:renderer # build the React renderer (Vite)
npm run gui           # build + launch GUI locally

Add a new disk category

Edit src/categories.js to add a category object, then add its cleaner function to src/cleaners.js.

Uninstall

npm uninstall -g @phamyqb/mac-cleaner