Skip to content
harshilv17Public

About

See where your disk went, and get it back. A macOS disk treemap, cleaner and system monitor built with Tauri 2 + React.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Cleaner

A disk visualiser and cleanup tool for macOS. Everything runs locally — nothing is uploaded, no account, no telemetry.

  • Treemap — every file on the disk as one interactive map, drill in by clicking.
  • Projects — every project on the Mac with its dependency directories sized and its last touched date, so you can wipe node_modules, target, .venv and Pods for the repos you abandoned and leave the ones you are working in alone.
  • Cleanup — package-manager caches, Xcode junk, simulator disks and the rest, each labelled Safe or Caution with what it costs to lose.
  • Applications — uninstall an app together with the support files it leaves behind, and find leftovers from apps that are already gone.
  • System Monitor — CPU, memory (real macOS breakdown), network and battery.

Nothing is ever unlinked. Every removal goes to the Trash.

Stack

Layer What
Shell Tauri v2 (~12 MB app, not 150)
Scanner Rust + rayon, parallel walk, tree held in Rust memory only
UI React 19 + TypeScript, d3-hierarchy for the treemap layout

Develop

pnpm install
pnpm tauri dev

Build a .dmg

pnpm tauri build

Output lands in src-tauri/target/release/bundle/dmg/.

Unsigned builds show Gatekeeper's "damaged / unidentified developer" warning on other Macs. To ship, set an Apple Developer signing identity and notarise:

export APPLE_SIGNING_IDENTITY="Developer ID Application: Your Name (TEAMID)"
export APPLE_ID="[email protected]"
export APPLE_PASSWORD="app-specific-password"
export APPLE_TEAM_ID="TEAMID"
pnpm tauri build

Tests

cd src-tauri && cargo test

The suite covers the parts where a bug costs the user data: the delete guard, the build-artifact marker rules, orphan detection, and the scanner's aggregation.

Notes

  • Sizes are on-disk sizes (st_blocks * 512), not logical file lengths — the same accounting Finder's "Size on disk" uses. A 10 GB sparse image that occupies 200 MB reads as 200 MB.
  • Full Disk Access. Without it macOS silently hides protected folders, so totals under-report. The app detects this and says so instead of quietly lying.
  • /System/Volumes is excluded. On APFS the Data volume is mounted there and firmlinked into /Users, and it reports the same st_dev as / — so the usual same-filesystem check does not catch it. Scanning / without that exclusion counts the entire home folder twice.
  • Scan memory. The tree is roughly 100 bytes per file, so a 2M-file home folder costs ~200 MB while the app is open. Fine for a desktop tool; it would need an on-disk index to scale past that.

About

See where your disk went, and get it back. A macOS disk treemap, cleaner and system monitor built with Tauri 2 + React.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages