--- name: "Leaves" subtitle: "A disk-usage treemap rendered entirely in terminal characters" date: 2026-07-17 shortlist: true link: "https://github.com/patonw/leaves" linkText: "github.com/patonw/leaves" source: "Hacker News — Show HN" topics: [cli-and-automation] tags: [rust, disk-usage, terminal, open-source] description: "A WinDirStat-style nested-rectangle treemap of disk usage drawn in text, so it works over a plain SSH session" --- Leaves draws a WinDirStat-style nested-rectangle treemap of your disk entirely in block characters — each file or folder sized by its share of space, files tinted by extension and directories by name. Because it never needs a display, it works over a plain SSH session where GUI tools like WinDirStat or QDirStat simply can't follow. Written in Rust, installable via `cargo install` or a prebuilt binary, with an x-ray mode that groups files by type before drilling into directories.