MacClean Lens is a lightweight macOS disk cleanup assistant installed with npm. It scans common cleanup candidates, shows them visually, and moves selected items to Trash only after confirmation.
npm install -g mac-clean-lensInstall the native macOS app into Applications:
mac-clean-lens-installYou can then open it from Launchpad by searching for MacClean Lens.
Update the npm package and reinstall the native macOS app:
mac-clean-lens-updateThe installer bundles the Node.js runtime currently running npm into the native app, so Launchpad does not depend on your shell PATH. Run mac-clean-lens-install again after upgrading the package.
Open the visual scanner:
mac-clean-lensOther commands:
mac-clean-lens --port 3900 # open UI on a fixed port
mac-clean-lens --no-open # start server without opening a browser
mac-clean-lens scan --json # print scan report JSON
mac-clean-lens-install # install the native Launchpad app
mac-clean-lens-update # update npm package and reinstall the app- Cleanable items are allowlisted cache, log, dependency, download, or large-file candidates.
- Manual items such as Docker data, chat app containers, and Android SDK images are shown as recommendations.
- Cleanup moves selected paths into
~/.Trash/MacCleanLens-<timestamp>/. Empty Trash manually to actually release disk space.
npm test
npm run scan
npm start
npm run build:mac
npm run install:mac