Leaves - Text-mode disk usage treemap visualizer
Show HN: Leaves – a text-UI disk usage treemap visualizer

Leaves is a powerful text-mode disk usage analyzer inspired by WinDirStat and QDirStat, designed specifically for terminal environments. It visualizes files and directories as a hierarchy of nested rectangles where area corresponds to size, enabling users to identify storage hogs instantly. Built with Rust, this tool excels over remote shell connections where graphical interfaces are impractical. Featuring interactive navigation, customizable color themes, and smart file grouping, Leaves offers a responsive and efficient way to manage disk space directly from the command line.
On the other hand, this will work over remote shell connections when graphical desktop environments are not available or impractical.
- 1970-01-01
This is the kind of tool that should be baked into the kernel. It's never there when you need it, and when you do need it, it is probably already a full disk and you maybe can't just download it.
- dunham
That looks like a nice tool. It would be helpful if it could optionally run off of a data file. I've used "ncdu" to visualize my restic backups by writing a script that generates the ncdu data format, and more recently I've abused ncdu to visualize process memory usage on macos:
https://gist.github.com/dunhamsteve/59f5e6b9a4bc69039853674d...
- KaiserPro
Ooo a TUI version of Sequoia view: https://sequoiaview.win.tue.nl/ nice
- sghiassy
Really cool.
If possible, being able to “brew install” on a Mac would be killer
- dmrivers
I found the bottom-right corner of things in my home dir I had no idea about was the lowest hanging fruit. I think this is because my typical cleaning routine was either A. to have claude code find big files I could delete or B. du -sh -- *, which is too slow on ~. Thanks for the decluttering!