Skip to content

Latest commit

Β 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’Ύ diskspace

A beautiful, fast terminal UI for visualizing disk usage on macOS β€” like DaisyDisk or GrandPerspective, but free and runs in your terminal.

Built specifically to answer "why is System Data 110 GB?"

![screenshot placeholder]

Features

  • Live streaming scan β€” results appear as the scanner runs, no waiting
  • Three views β€” drill-down tree, largest files, and category breakdown
  • Smart categorization β€” detects caches, build artifacts, Docker images, iOS simulators, VM disks, orphaned app leftovers, and more
  • πŸ‘» Orphan detection β€” identifies data folders left behind by deleted apps by cross-referencing /Applications
  • macOS-aware β€” skips /System/Volumes/Data firmlinks and Time Machine snapshots that would otherwise cause double-counting
  • Colorful β€” size-coded colors, emoji icons, inline bar charts

Categories detected

Emoji Category What it includes
🧹 CACHE ~/Library/Caches, .cache, npm/yarn/cargo caches
πŸ”¨ BUILD node_modules, target/, DerivedData, .gradle, .next, __pycache__
🐳 DOCKER Docker images and volumes
πŸ“± iOS SIM Xcode CoreSimulator devices
πŸ”§ XCODE Xcode DerivedData, archives
πŸ‘» ORPHANED Data from apps that are no longer installed
πŸ–₯️ VM VMware, Parallels, UTM disk images
🌐 BROWSER Chrome, Firefox, Safari, Arc, Edge profiles
πŸ“§ MAIL Mail.app message store
πŸ“Έ PHOTOS Photos library
🎡 MUSIC iTunes/Music media library
πŸ’Ύ BACKUP iOS device backups
🐍 PYTHON venvs, pyenv versions, .tox
☁️ iCLOUD Mobile Documents
πŸ’¬ MESSAGES iMessage attachments
πŸ“ LOGS ~/Library/Logs
πŸ—‘οΈ TRASH .Trash

Install

cargo build --release
# binary at ./target/release/diskspace

Or copy the binary somewhere on your $PATH:

cp target/release/diskspace /usr/local/bin/

Usage

diskspace ~              # scan your home directory
diskspace ~/Library      # drill into Library
sudo diskspace /         # scan the whole disk (needs sudo for some paths)

Navigation

Key Action
↑ / ↓ or j / k Navigate list
Enter / β†’ / l Drill into directory
Backspace / ← / h Go back
Tab / Shift+Tab Switch between Tree / Top Files / Categories views
/ Search/filter by name
g / G Jump to top / bottom
PgUp / PgDn Page up / down
r Rescan
q or Ctrl+C Quit

Why not just use du?

du -sh * | sort -h shows you sizes but not percentages, doesn't drill down interactively, and has no idea what any of the directories are. This tool shows you the same data but in a navigable, color-coded UI with category labels so you know what's safe to delete.

License

MIT

About

Fast macOS disk space TUI β€” find where your bytes went, including πŸ‘» orphaned app data

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages