TreeX

Your disk, as a city.

TreeX scans millions of files in seconds and shows where your space goes in a 2D and 2.5D map you can explore. Then it helps you take that space back, safely.

Version 1.6.6 macOS, Windows, Linux Also for ARM PCs Free

Real screenshot of TreeX

Every developer knows it: node_modules, target, DerivedData, virtualenvs and caches pile up quietly. TreeX recognizes them, tells you which command recreates each one and how long its project has been idle, and moves them to the Trash only after a final check. Free, on macOS, Windows and Linux.

Your disk, as a city.

The disk analyzer for developers.

Every folder is a building.

The more space it takes, the taller it stands. Scroll and the city grows.

Animated illustration, sample data

In the terminal, too.

treex is a complete command-line tool: the same engine, the same Dev-Aware rules and the same safety checks as the app, on headless servers over SSH too. With treex tui you explore a folder inside the terminal.

  1. treex tui ~

    Real output of treex tui ~

    Folders by size, with bars, item counts and age. Arrows and mouse to move around.

  2. treex tui ~ → 2

    Real output of treex tui ~  →  2

    Press 2, Dev-Junk: rebuildable build artifacts and caches, with their ecosystem and how long the project has been idle.

  3. treex tui ~ → 3

    Real output of treex tui ~  →  3

    Press 3: space by file extension, in the app's colors.

  4. treex tui ~ → d

    Real output of treex tui ~  →  d

    Press d: to the Trash only after a confirmation, with each item checked again right before it goes.

  5. treex dev ~

    Real output of treex dev ~

    Build artifacts and caches you can reclaim, by ecosystem. With --json for scripts.

  6. treex scan ~ -d 2 -n 4

    Real output of treex scan ~ -d 2 -n 4

    The largest entries, several levels deep.

  7. treex clean ~/Developer --min-age 30

    Real output of treex clean ~/Developer --min-age 30

    The cleaning plan as a dry run: nothing changes until you add --apply.

Find the space you can take back.

Press 4 and the city turns grey: only the coral towers of build artifacts and caches stay standing. The tallest one is your biggest waste.

  • node_modules, target, Flutter builds, DerivedData, vendor, virtualenvs
  • npm, pip and Homebrew caches
  • 16 development ecosystems recognized, plus system caches
  • Rules you can customize in TOML
  • Real freed space, even with macOS APFS clones
Find the space you can take back.

Every tower knows how to come back.

Select an artifact and TreeX shows the matching rule, the command that recreates it, like cargo build or npm install, and how long its project has been untouched.

  • Three safety levels: cache, regenerable, needs review
  • Filter by projects idle for 7, 30, 90 or 180 days
Every tower knows how to come back.

Clean up without fear.

Pick, confirm, and watch the towers sink. Right before touching each folder, TreeX checks it again.

  • It is still the same folder, and not a symlink
  • Its project markers are still there
  • There is no git repository inside
  • Everything goes to the Trash by default, and every cleaning is logged
Clean up without fear.

Fast. And measured.

TreeX uses each system's own fast path, down to reading the NTFS Master File Table directly. In its published benchmarks it is the fastest of every tool compared, on every system.

  • macOS, Apple M4: /Applications (808k entries) in 0.06 s from the second scan on
  • Linux, Intel N95: a 3.8M-entry home folder in 2.82 s
  • Windows 11, as administrator: the whole C: drive (1.56M entries) in 5.82 s
  • From the second analysis on, the USN journal updates all of C: in 0.2 s
Fast. And measured.

Two views, one world.

Press Tab and the 2D map rises into an isometric city. Building height shows size, age or file count.

  • Semantic zoom: individual files appear as you get closer
  • Search everything with ⌘K
  • Smooth on integrated graphics: 143,000 blocks at 60 fps on an Intel UHD 620
Two views, one world.

Duplicates and file types.

Press T to see space by file extension, U to find duplicate files. TreeX reads as little as possible: sizes first, then the start and end of each file, full contents only when needed.

  • Build artifacts are left out by default
  • Pick which copy to keep, the oldest by default
  • With APFS clones, it shows the space a deletion really frees
Duplicates and file types.

What changed since yesterday.

TreeX quietly keeps the previous analysis of every folder. Press C to see what is new, what grew and what was removed, with nothing to save.

  • The map updates live while the app is open
  • A list of every file, with wildcards and CSV or JSON export
  • Disks, external drives and network shares at a glance
What changed since yesterday.

At a glance

Systems
macOS 13+ (Apple Silicon and Intel), Windows 10/11 x64 and Windows 11 ARM64, Linux x64 and ARM64
Views
2D treemap and 2.5D isometric city
Dev-Aware
16 development ecosystems plus system caches, rules in TOML
Scanning
Native APIs: getattrlistbulk, getdents64 + statx, GetFileInformationByHandleEx, NTFS Master File Table
Live updates
FSEvents on macOS, USN journal and ReadDirectoryChangesW on Windows, inotify on Linux
Duplicates
Compared by size, start and end, then BLAKE3 hash
Export
CSV and JSON
Command line
treex with a terminal interface (treex tui) and commands for scripts, in the app or on its own
Privacy
Never uses the network, reads metadata only
License
MIT or Apache-2.0

Get TreeX.

Pick your system. You can also install it from the stores: Microsoft Store (the version signed by Microsoft). Every file, older versions included and for anyone who skips the stores, stays on the official releases on GitHub.

Also available on

  • Microsoft Store
macOS

Apple Silicon and Intel

Open the DMG and drag TreeX into Applications: the treex command-line tool ships inside.

Windows

x64 and ARM64

Install it from the Microsoft Store: it is signed by Microsoft, installs with no warnings and updates itself.

For Snapdragon PCs and Windows on Apple Silicon Macs: the Microsoft Store version is native ARM64, signed by Microsoft and updates itself.

The signed version is the one on the Microsoft Store: it installs with no warnings and updates itself. If you would rather skip the Store, the installers above come from GitHub and need no account, but they are not signed: Windows may show "Windows protected your PC" (More info › Run anyway), and you download updates yourself.

Linux

x64 and ARM64

One file: make it executable and run it, on most distributions.

Install it with flatpak install --user and launch it from your app menu.

Extract it and run ./install.sh, no root needed.

For Raspberry Pi 4/5 with a 64-bit OS, ARM servers and virtual machines: AppImage, Flatpak or archive, like the x86_64 version.

Command line only

The treex command without the app, for servers, terminals and scripts: the treex tui terminal interface and the scan, dev, clean, dupes and other commands, with man pages and Tab completion. The app already includes it: install one or the other.

macOS

Unpack the archive and run ./install.sh: it installs treex, its man pages and Tab completion.

Windows

Unpack the archive and double-click install.cmd: it adds treex to your PATH, no administrator needed.

Linux

sudo apt install ./treex_1.6.6_amd64.deb: installs treex with its man pages and Tab completion.

sudo dnf install ./treex-1.6.6-1.x86_64.rpm: installs treex with its man pages and Tab completion.

For any distribution, servers included: unpack the archive and run ./install.sh (--user needs no root).

Release notes on GitHub Older versions on GitHub

Requirements

macOS 13 Ventura or later (Apple Silicon and Intel), Windows 10/11 x64 or Windows 11 on ARM (Snapdragon PCs), x86_64 or ARM64 Linux (Raspberry Pi 4/5 with a 64-bit OS, ARM servers and virtual machines) with glibc 2.28 or later. On Linux, uname -m tells you which file to pick: x86_64 or aarch64.

License

Free, under your choice of MIT or Apache-2.0.

Questions and answers

Is TreeX free?

Yes. TreeX is free, under your choice of MIT or Apache-2.0.

How do I free up space taken by node_modules and caches?

Press 4 in the app or run treex dev ~: TreeX shows build artifacts and caches as coral towers. Pick what to clean in the Dev-Junk panel and confirm; by default everything goes to the Trash.

Why does TreeX on a Mac say cleaning frees less than a folder takes up?

On macOS, cloned files such as Xcode simulators, DerivedData or copies made with cp -c share the same blocks on disk, so deleting them frees only the part that is not shared. Since 1.5.1 TreeX shows what deleting really frees first, with the size on disk next to it, for example "at least 74 MiB really reclaimable · 9.8 GiB on disk". When the selected files are clones only of each other it gives an estimate ("about 396 MiB, at least 14 MiB guaranteed"); when they are clones of files that stay, it tells you the shared data stays on disk. Folders that are usually made of clones get an "on APFS it may free much less" note, and before deleting TreeX warns you when local Time Machine snapshots will keep the space, usually for up to 24 hours. The figures are checked with df before and after. Since 1.4.3, when the selected files are clones of each other, TreeX tells you it may free more: one by one they free almost nothing, deleted together they also free the blocks they share. Since 1.4.4 TreeX also tells apart clones of files you did not select: in that case the shared data stays on disk, and it says so. The idea came from a user on Bluesky.

Why is ~/Library/Developer/XCTestDevices so large?

Every time you run tests, xcodebuild clones a simulator and deletes it only when the run ends normally: cancelled or crashed runs leave their clones behind, and they pile up. Since 1.5.2 TreeX offers to clean this folder, explains where the clones come from and gives you a Copy command button for xcrun simctl --set ~/Library/Developer/XCTestDevices delete all. When deleting for good it uses that very command, if Xcode is available and no simulator is running; with the Trash, the default, the space comes back only when you empty it and, since these are APFS clones, it can be far less than the size shown. The explanation came from a user on Bluesky.

Could I delete something important by mistake?

TreeX checks every item again right before touching it, never follows symlinks, and always refuses system locations and your top-level home folders. Artifacts that may contain manual changes, like virtualenvs, are never preselected.

Will I see a security warning on first launch?

No. On macOS TreeX is signed with an Apple Developer ID certificate and notarized by Apple, so it opens like any other app. On Windows (x64 and ARM64) you install it from the Microsoft Store, where it is signed by Microsoft: no "Windows protected your PC" warning and automatic updates.

Why does TreeX need Full Disk Access on macOS?

macOS protects many folders, such as Mail, Safari and Messages. Without the permission TreeX still works, but skips those folders and tells you. Grant it in System Settings → Privacy & Security → Full Disk Access.

Does TreeX read my files or go online?

No. TreeX never uses the network, and scans read only names, sizes and dates. File contents are read only when you start a duplicate search, and only for files that share their size with another one.

Why run it as administrator on Windows?

It is optional. As administrator, TreeX reads the Master File Table directly to analyze a whole drive and, from the second time on, updates it from the USN journal in a fraction of a second.

Can I use TreeX on a server without a graphical interface?

Yes. The treex command does everything from the terminal, over SSH too: treex tui explores a folder with arrows and mouse, with the Folders, Dev-Junk and File types views, while treex scan, dev, clean, dupes and export print reports, in JSON too. For servers there is a command-line-only package: .deb, .rpm or an archive with install.sh, without the app.

Is TreeX useful to you?

TreeX is free: if it saved you some gigabytes, or some time, you can return the favor. Sponsorships pay for the store accounts, test machines for the three systems, and the time to keep it the fastest of its kind. TreeX is already signed on macOS, thanks to a supporter, and on Windows through the Microsoft Store.

Next app: VideoSTAX The video transcoding studio for macOS, Windows and Linux.