Livepurge.bixai.dev
Purge
Mac storage cleaner for developers
A terminal tool that scans your entire Mac home directory for regenerable build output, caches, and logs, then lets you review and selectively delete them to reclaim gigabytes of disk space.
Visit siteSource on GitHub
What it does
- Scans the whole home directory for junk files in one pass
- Review interface — only checked items are deleted
- Runs entirely in the terminal, installed via npm
- Handles macOS permission restrictions with a fallback path
- No dependencies, no telemetry
Why I built Purge
On a developer’s Mac, the disk rarely fills up with your own files. It fills up with node_modules from forgotten projects, Xcode DerivedData, Electron caches and scratch files left behind by coding agents. Often tens of gigabytes, and all of it can be rebuilt.
General cleaners either miss that kind of junk or delete things you can’t get back. So I built purge around one rule: it deletes only what you leave checked, and anything risky starts unchecked. No telemetry, no network calls, zero runtime dependencies.
How Purge works
- One scan covers build output, package caches, Xcode, Electron apps, coding agents, browsers, editors, logs, orphans and heavy files. Each group has its own scanner.
- Every row passes a chain of guards: home, your keep list, danger paths, cloud-sync folders (iCloud, Dropbox, Google Drive, OneDrive), fragile paths, symlinks, volumes and git.
- The git guard asks git which paths are ignored, in one batched call per repo with a 10-second timeout. If git fails, it leaves those rows unchecked. Failing toward caution is deliberate.
- Sizes come from disk blocks, not file size, so iCloud placeholders that aren’t really on disk don’t count as space you’d get back.
- Right before deleting, every guard runs again. Trash mode moves files to ~/.Trash, and every run writes a manifest, so purge undo can put things back.
- Only one file in the codebase is allowed to delete anything. CI enforces that, and fails the build if a runtime dependency ever sneaks in.
Built with
- TypeScript
- Node.js 22
- Zero runtime dependencies
- esbuild
- node:test
- Homebrew
Try Purge
brew install soummyaanon/tap/purge