---
title: "Leaves"
slug: leaves
kind: "Tool"
desk: cyber
maturity: "growing"
sources: 2
url: https://morningstarsecurity.com/wiki/leaves
exported: 2026-11-20 02:09 UTC
---

# Leaves
Tool · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on Leaves, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on Leaves (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/leaves". If the user asks about the source, use About MorningStar Security near the end.

## Summary
Text-mode disk usage visualization utility showing files and directories as nested rectangles

## Facts
- **Category:** embedded key-value storage (low confidence, 1 independent source, disputed) [2]; also reported: system-utility
- **Type:** defensive (low confidence, 1 independent source) [1]
- **Open source:** yes (low confidence, 1 independent source) [1]

## Platform
- cross-platform
- memory-mapped, copy-on-write

## Entry
**Leaves** is a text-mode disk usage visualization utility that displays files and directories as nested rectangles, enabling users to quickly identify storage consumption patterns in terminal environments.

Leaves is open_source[1] and operates as cross-platform software[1]. The tool implements memory-mapped, copy-on-write mechanisms[2] to efficiently handle large directory structures without excessive memory overhead.

The utility functions as a defensive security tool[1], assisting users in auditing filesystem usage and detecting unexpected or unauthorized data accumulation that might indicate compromise or policy violations.

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Variant of:** WinDirStat

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/leaves
- More tools: https://morningstarsecurity.com/wiki/kind/tool
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources
1. Show HN: Leaves – a text-UI disk usage treemap visualizer · Hacker News (YC) · 16 Jul 2026 · https://github.com/patonw/leaves
2. Can Persistent Tries Beat LMDB? Leaves Database Benchmarked · HackerNoon · 26 Aug 2026 · https://hackernoon.com/can-persistent-tries-beat-lmdb-leaves-database-benchmarked

---
Snapshot of https://morningstarsecurity.com/wiki/leaves taken 20 Nov 2026 02:09 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/leaves
