<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github---patonw-leaves-a-text-mode-disk-usage-visualization-utility-60idjsshd" -->

---
title: GitHub - patonw/leaves: A text-mode disk usage...
description: Leaves is a text-mode disk usage visualization tool written in Rust, inspired by WinDirStat and QDirStat. It renders files and directories as nested rectangles...
canonical: https://daily.dev/posts/github---patonw-leaves-a-text-mode-disk-usage-visualization-utility-60idjsshd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub - patonw/leaves: A text-mode disk usage visualization utility | daily.dev
og:description: Leaves is a text-mode disk usage visualization tool written in Rust, inspired by WinDirStat and QDirStat. It renders files and directories as nested rectangles...
og:url: https://daily.dev/posts/github---patonw-leaves-a-text-mode-disk-usage-visualization-utility-60idjsshd
og:image: https://api.daily.dev/og/posts/60IDjsSHd.png
og:image:alt: GitHub - patonw/leaves: A text-mode disk usage visualization utility
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - patonw/leaves: A text-mode disk usage visualization utility

**[Hacker News](https://daily.dev/sources/hn)** · 8 min read · 0 upvotes · 0 comments

## Summary

Leaves is a text-mode disk usage visualization tool written in Rust, inspired by WinDirStat and QDirStat. It renders files and directories as nested rectangles in a terminal UI, where rectangle area is proportional to disk size. Key features include a sidebar explorer tree, mouse support, x-ray mode (grouping by file type), configurable depth, glob-based filtering with gitignore support, and customizable color themes. It works over remote SSH connections where graphical tools are unavailable. Build options include Cargo and Nix, with pre-built binaries available for select platforms.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/patonw/leaves>

## Similar posts on daily.dev

- [GitHub - exlee/ascdraw: Keyboard-driven drawing editor for ASCII/UTF-8 diagrams](https://daily.dev/posts/github---exlee-ascdraw-keyboard-driven-drawing-editor-for-ascii-utf-8-diagrams-w0mwsbeuq) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#rust](https://daily.dev/tags/rust), [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/github---patonw-leaves-a-text-mode-disk-usage-visualization-utility-60idjsshd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GitHub - patonw/leaves: A text-mode disk usage visualization utility","url":"https://daily.dev/posts/github---patonw-leaves-a-text-mode-disk-usage-visualization-utility-60idjsshd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github---patonw-leaves-a-text-mode-disk-usage-visualization-utility-60idjsshd"},"datePublished":"2026-07-16T19:50:18.797Z","dateModified":"2026-07-16T19:50:42.808Z","description":"Leaves is a text-mode disk usage visualization tool written in Rust, inspired by WinDirStat and QDirStat. It renders files and directories as nested rectangles...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a7e49e7f5f8fb922dbeea20d43a39be1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a7e49e7f5f8fb922dbeea20d43a39be1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github---patonw-leaves-a-text-mode-disk-usage-visualization-utility-60idjsshd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"rust,cli","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"GitHub - patonw/leaves: A text-mode disk usage visualization utility"}]}
```

