Leaves – A text-UI disk usage treemap visualizer

GUI disk analyzers are great for figuring out what's filling up your laptop/desktop drive.On containers or remote servers, the options are limited to purely text based utilities (e.g. du) or list-centric TUIs (e.g. ncdu) which are usually limited to viewing one directory at a time.I created leaves to fill that gap.Inspired by classic utilities like WinDirStat and KDirStat, it uses a 2-dimensional treemap^1 visualization to show the entire directory hierarchy with proportionally sized rectangles.It's performant enough to handle millions of files, thanks to Rust and multi-threading. However, block characters aren't as suited as pixels for resolving a large number of items. Leaves can show file-type summaries per directory or partition the top-level directories by extension, allowing you to see not only where space is being used, but also how.For instance, I can see the largest chunk of my home directory is taken up by uv caches for python and old Linux ISOs that I could easily re-download if needed. Or in a particular container, +600MB is used by standard Rust documentation and tutorials, and that it is the only location with HTML/JS files, when only the libraries and build tools are needed (note to self: remember to use the minimal profile next time).^1: https://github.com/shundhammer/qdirstat/blob/master/doc/Tree...

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

62

out of 100

Verdict

VALIDATE

medium confidence

Competition

No competitor data yet

Trend

No signal yet

A terminal-based disk usage visualizer that shows directory hierarchies as proportional treemaps instead of lists, targeting developers managing remote servers and containers.

The pain

Developers working on remote servers, containers, and cloud environments need to understand disk usage patterns quickly. Existing tools force a choice: GUI analyzers that don't work remotely, or text utilities (du, ncdu) that show flat lists or one directory at a time, making it hard to spot where space is actually consumed.

The gap

No tool combines treemap visualization, which shows relative sizes and hierarchies at a glance, with terminal compatibility. The visualization format is fundamentally better for pattern recognition than lists, but hasn't been adapted to terminal constraints until now.

Build angle

Start by validating with DevOps/SRE teams managing large container registries and Kubernetes clusters. These users regularly debug storage issues and would pay for faster diagnosis. Build integrations with container runtimes and cloud CLIs. Expand to a lightweight daemon that can be deployed in minimal containers for remote analysis.

Strengths

  • Solves a real, recurring problem for infrastructure teams, disk space mysteries on remote systems cost time and money
  • Technical execution is solid: Rust + multithreading handles scale, treemap visualization is genuinely better UX than lists for this task
  • Low barrier to adoption: works as a standalone CLI tool, no infrastructure changes needed
  • Extensible: file-type summaries and partition views show the creator understands the actual debugging workflow

Risks

  • Market size unclear: how many people actually need this vs. just running du once? Adoption may be limited to power users
  • Monetization is hard: this is a utility that solves a one-time problem per system. Difficult to build recurring revenue or justify paid tier
  • Terminal rendering constraints are real: treemaps lose effectiveness with thousands of items. The block character limitation may make it feel worse than GUI tools for large hierarchies
  • Competition from free alternatives: ncdu, dust, and other open-source tools are entrenched. Switching costs are zero but inertia is high
  • No clear enterprise angle: this isn't something you'd deploy company-wide or bill per-seat

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Leaves – A text-UI disk usage treemap visualizer”.

Open FlyBot