Skip to content
stacklikemindPublic

About

Fast cushion-treemap disk space visualizer (Rust + egui), inspired by SequoiaView

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sequoia

A fast cushion-treemap disk space visualizer for macOS, Linux and Windows, written in Rust with egui.

Sequoia shows your entire disk as one picture. Every file is a rectangle whose area is proportional to the space it takes up; folders nest inside each other and are shaded as 3D "cushions" so you can see the hierarchy at a glance. Big space hogs jump out immediately, and you can reveal, open or delete them right from the map.

Sequoia scanning ~190,000 files

Inspired by SequoiaView from the Eindhoven University of Technology (TU/e). Sequoia is an independent, from-scratch re-implementation of the ideas behind it: it shares no code with the original and is not affiliated with TU/e. See Credits.


Features

  • Cushion treemaps: the squarified, cushion-shaded treemap algorithm that SequoiaView introduced. Shading makes the folder structure visible without drawing borders.
  • Fast, parallel scanning: directories are scanned on all CPU cores with rayon, in the background, with live progress. For example, ~200,000 files scan in about 1.5 s on an Apple M-series laptop, and 2.5 million files in well under a minute.
  • Real disk usage: sizes are the bytes actually allocated on disk, not the apparent file length. Hard-linked files are counted once.
  • Stays on one disk: the scanner doesn't cross into other mounted filesystems, and when scanning / on macOS it skips the duplicate firmlinked tree under /System/Volumes.
  • Colour by file type: the 16 file types using the most space get distinct colours, shown in a legend with total size and file count.
  • Zoom and navigate: double-click to drill into a folder, use breadcrumbs, Back and Up, and the mouse wheel to move the selection up and down the hierarchy.
  • Clean up in place: reveal in Finder/Explorer, open, copy the path, Move to Trash, or delete permanently. Every deletion asks for confirmation, and totals update immediately without a rescan.
  • Free-space gauge for the scanned volume.
  • Adjustable shading: cushion height, falloff and ambient light, plus optional folder labels.
  • A single small native binary with no runtime dependencies.

Installation

Homebrew (macOS & Linux)

brew install stacklikemind/tap/sequoia

or, equivalently:

brew tap stacklikemind/tap
brew install sequoia

Prebuilt binaries

Download the archive for your platform from the Releases page:

Platform Archive
macOS, Apple Silicon sequoia-<version>-aarch64-apple-darwin.tar.gz
macOS, Intel sequoia-<version>-x86_64-apple-darwin.tar.gz
Linux, x86_64 sequoia-<version>-x86_64-unknown-linux-gnu.tar.gz
Linux, ARM64 sequoia-<version>-aarch64-unknown-linux-gnu.tar.gz
Windows, x86_64 sequoia-<version>-x86_64-pc-windows-gnu.zip

Every release also includes a checksums.txt with SHA-256 sums.

macOS: the binaries are not notarized. If you download the archive with a browser, clear the quarantine flag once with xattr -d com.apple.quarantine ./sequoia. Installing through Homebrew doesn't need this.

From source

You need a recent stable Rust toolchain (rustup.rs). Sequoia uses edition 2024, so Rust 1.85 or later.

git clone https://github.com/stacklikemind/sequoia
cd sequoia
cargo install --path .

or build and run it in place:

cargo run --release -- ~/

On Linux you need a running X11 or Wayland session. The folder picker uses the XDG desktop portal, so no GTK development packages are needed.


Usage

sequoia              # scan your home directory
sequoia /            # scan the whole disk
sequoia ~/Downloads  # scan any folder

You can also choose a folder from the app with 📂 Open….

macOS tip: to scan system-protected locations (other users' folders, ~/Library/Mail, and so on), give the app or your terminal Full Disk Access in System Settings → Privacy & Security. Unreadable folders are skipped and counted in the status bar.

The window

Area What it shows
Top bar Open, Rescan, Back, Up, the clickable breadcrumb path of the current view, and the free-space gauge
Left panel: selection Name, full path, size, file count, and its share of the current view and of the whole scan, with action buttons
Left panel: contents The children of the current view, sorted by size, with proportion bars. Hovering a row highlights it on the map
Left panel: file types Colour legend with total size and count per extension, plus Display settings
Treemap Hover for a tooltip, click to select (yellow outline)
Status bar Full path and share of the item under the pointer, or scan progress

Mouse

Action Effect
Hover Tooltip with name and size; full path in the status bar
Click Select the file under the pointer
Double-click Zoom one level into the folder toward the clicked item
Scroll up / down Move the selection to the parent folder, or back down toward the pointer
Right-click Context menu: Zoom in, Reveal, Open, Copy path, Move to Trash, Delete permanently

Keyboard

Key Effect
Esc Zoom out one level
Backspace Go back to the previous view
Enter Zoom into the selected folder
↑ Select the parent folder
Delete or ⌘⌫ Move the selection to the Trash (asks first)
⇧⌘⌫ Delete the selection permanently (asks first)

Display settings

Setting Meaning Default
Cushion height How pronounced the top-level cushions are 0.5
Height falloff How much flatter each nested level gets (the paper's f) 0.75
Ambient light How dark the unlit sides are 0.18
Show folder labels Name and size labels on the current view's folders on

How it works

Scanning (src/scan.rs)

A background thread walks the tree recursively. Each directory's entries are processed in parallel with rayon, using lstat, so symlinks are never followed. Sizes come from st_blocks × 512, the space actually allocated on disk, so sparse and compressed files show their real cost. Files with more than one hard link are deduplicated by (device, inode). The scanner stays on the starting filesystem; on macOS it also allows the firmlinked data volume and skips the duplicate tree under /System/Volumes.

The nested result is flattened into an arena (src/tree.rs). Every node stores its total size and file count, and its children are sorted by size. Deleting an item detaches the node and subtracts its size from every ancestor, so the view updates without rescanning.

Layout: squarified treemaps (src/treemap.rs)

Children are laid out with the squarified algorithm of Bruls, Huizing and van Wijk. Items are added to a strip along the shorter side of the remaining rectangle for as long as that keeps the worst aspect ratio from getting worse. This gives near-square rectangles that are easy to compare and to point at. Shared edges come from the same floating-point value, so neighbouring rectangles tile the area exactly with no gaps or overlaps.

Shading: cushion treemaps

Following van Wijk and van de Wetering, every rectangle adds a parabolic "ridge" to a height surface in both x and y:

s1 += 4h(x1 + x0) / (x1 − x0)
s2 −= 4h / (x1 − x0)

The height h is multiplied by the falloff f at each level of nesting, so a file's surface is the sum of the cushions of all the folders containing it. For each pixel the surface normal is

n = (−(2·s2x·x + s1x), −(2·s2y·y + s1y), 1)

and it's lit with Lambertian shading from a light at the upper left: I = Iₐ + I_s · max(0, n·L / |n|). Rasterization runs in parallel per rectangle into a pixel buffer at the display's native resolution, which is uploaded as one GPU texture. A second buffer stores the node ID under each pixel, so hit-testing is a single array lookup. Rectangles smaller than 2 px aren't subdivided further, so drawing time depends on the window size, not on the number of files.


Building releases

Releases are built by .github/workflows/release.yml. All jobs run on the self-hosted k3s-runners (Linux x86_64):

Target How it's built
x86_64-unknown-linux-gnu natively with cargo
aarch64-unknown-linux-gnu cross (Docker-in-Docker)
x86_64-pc-windows-gnu cross (MinGW image)
x86_64-apple-darwin, aarch64-apple-darwin cargo-zigbuild against a macOS SDK

To cut a release, push a version tag:

git tag v0.1.0
git push origin v0.1.0

The workflow builds every target, packages each binary with the README and license (.tar.gz, or .zip for Windows), writes checksums.txt, publishes a GitHub Release, and then updates the Homebrew formula in stacklikemind/homebrew-tap.

Repository settings the workflow uses:

Name Kind Purpose
HOMEBREW_TAP_TOKEN secret A fine-grained token with Contents: read and write on stacklikemind/homebrew-tap. Without it, the Homebrew step is skipped.
MACOS_SDK_URL variable (optional) URL of a MacOSX*.sdk.tar.xz used to cross-compile for macOS. Defaults to a public SDK archive.

Credits & references

Sequoia is a tribute to SequoiaView, the original cushion-treemap disk browser for Windows:

  • SequoiaView: https://sequoiaview.win.tue.nl, developed at the Department of Mathematics and Computer Science, Eindhoven University of Technology (TU/e), by Jarke J. van Wijk, Huub van de Wetering and Mark Bruls.

The algorithms implemented here are described in these papers:

  • J. J. van Wijk and H. van de Wetering, "Cushion Treemaps: Visualization of Hierarchical Information", Proceedings of the IEEE Symposium on Information Visualization (InfoVis '99), pp. 73–78, 1999.
  • M. Bruls, K. Huizing and J. J. van Wijk, "Squarified Treemaps", Proceedings of the Joint Eurographics and IEEE TCVG Symposium on Visualization, pp. 33–42, 2000.
  • B. Shneiderman, "Tree Visualization with Tree-Maps: 2-d Space-Filling Approach", ACM Transactions on Graphics 11(1), 1992, which introduced treemaps.

Other tools in the same family that are worth a look: WinDirStat, KDirStat/QDirStat, and GrandPerspective.

Sequoia is not affiliated with or endorsed by TU/e or the SequoiaView authors.

License

MIT © 2026 stacklikemind

About

Fast cushion-treemap disk space visualizer (Rust + egui), inspired by SequoiaView

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages