TreeMap: a disk visualizer that refuses to guess about prices, wear, or your Trash
TreeMap is a fully downloadable app that can run on mac, windows, and linux. That visualizeses all of your disk-space into charts and square board. It also lets you delete unwanted files and opens files for you aswell.
At a glance
- What is it?
- TreeMap is an Electron disk scanner with a squarified treemap, seventeen views, a Rust scanning core and an MCP server. Its distinguishing habit is refusal: it declines to project a full-disk date without history, declines to price cloud storage live, and declines to call a drive dying when the SMART data will not support it.
- Who is it for?
- TreeMap suits someone who wants to see what is consuming a disk and act on it without giving up recoverability, on macOS or Windows where the Trash exists, or as a read-only scanner anywhere else. Three things to check before you rely on it.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 25 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- Prithvi-Web/TreeMap-Disk-Visualizer1,414 ★ · +651
| Repository | 2026-09-18 | 2026-11-25 |
|---|---|---|
| Prithvi-Web/TreeMap-Disk-Visualizer | 763 | 1.4k |
651 Stars in the last 68 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Deletes go to the system Trash, which is exactly why the container cannot delete
The headline safety claim is short: no Node, no setup, no telemetry, and deletes always go to the system Trash, nothing is ever hard-deleted, so every action is recoverable. The first-launch tour is built to prove it. The tour runs four steps, pick a folder, learn the map, then up to three quick wins where each win is a real Smart Suggestion carrying its size and its reason, staged only when you click and committed never, and it ends at the cart with everything still undeleted. It is skippable at every step and does not return once finished, with a show-it-again button in Settings. The catch arrives in the Docker profile. The compose file is blunt about it: read-only is the honest mode for a container, there is no OS Trash in here, so treat it as scan-and-analyze and do destructive cleanups from the desktop app. The safety guarantee is a property of the host OS, not of the software.
The server binds every interface inside the container and localhost outside it
The Docker setup is two files and the split between them is the whole design.
services:
treemap:
build: .
container_name: treemap
ports:
- "127.0.0.1:4280:4280"The image sets `HOST=0.0.0.0` and `PORT=4280`, because a container bound to 127.0.0.1 would be unreachable through the published port. The compose file then maps that to 127.0.0.1 on the host, so out of the box nothing outside the machine can reach it, matching what happens when you run the app directly. Widening it takes two deliberate steps rather than one: change the mapping to `4280:4280` and set `TREEMAP_TOKEN`, which is bearer auth for the API, with `TREEMAP_ALLOWED_ORIGINS` available for origin control. The threat model itself is not in either file, it lives in AGENTS.md. The runtime also sets `TREEMAP_NO_GDU=1`, and runs as the `node` user with a named volume at `/data`.
Held-Up Space quits processes gracefully and refuses four kinds of request
The dashboard has a view for the disk's most confusing failure: a file you deleted whose space never came back because a running program is still holding the handle open. TreeMap groups those by the process holding them, orders them by size with the biggest holder first, and offers to ask that process to quit. Gracefully only. The refusal list is longer than the permission list. It declines system PIDs, it declines TreeMap itself and TreeMap's parent, and it declines a PID whose process is not what the caller named, which closes a straightforward time-of-check race. A program that declines to quit is then reported as still running rather than force-killed, which means the view can fail to clear a problem and still be telling you the truth. One more rule: processes it cannot see are counted, not guessed at. This is the clearest example in the app of a design that treats an honest no as a feature.
Cost to Keep ships its own price table instead of calling an API
One dashboard card prices your scanned data against Google Drive, Dropbox, OneDrive and iCloud+, in a choice of six currencies. The interesting part is where the numbers come from: a table that ships inside the app. TreeMap never looks prices up online, so the `as of` date is always on screen and you can see how old the comparison is. Related to that, a saving is only claimed when clearing space would actually move you down a tier. On a per-gigabyte basis nearly any cleanup looks like money saved; the claim only counts when it changes what you pay. Both choices exist to stop the app producing a number that reads as a decision. The all-storage strip on the same dashboard follows the same discipline, since it unifies local disk with a connected cloud provider, scans metadata only and never downloads file contents, sends deletes to the provider's own trash, and disables duplicates, live and offload with clear notices when a cloud account is in view.
Drive Health will not tell you your drive is dying without the wear data
The drive card reports the drive's own SMART attributes and self-assessment verbatim, and answers exactly one question: which runs out first, free space or write endurance. It does not editorialise, and the reason given is specific. A false report that your drive is dying is a real harm, so where the numbers are missing, meaning no `smartctl` on the machine, or a drive that reports no wear indicator at all, the card says that instead of producing a verdict. This is the same philosophy as the disk-full forecast next to it, which projects from scan history and states that it cannot know when there is too little history, erratic growth, or usage that is shrinking. All of those cases produce a refusal rather than a number. If you are the kind of user who would rather see a rough guess than a blank, this app will frustrate you, and that is a design decision rather than an unfinished feature.
Folder budgets reuse the forecast code, so they inherit its refusals
Every pinned folder budget gets a thermometer on the dashboard, showing used against limit and coloured by proximity to the ceiling. Once a folder has enough scan history it also shows the projected date it will breach. What makes this more than a feature note is where the number comes from. The projection is the disk-full forecast's own routine with the budget's headroom standing in for free space, and the file that draws the gauges reuses the forecast computation verbatim. So the refusals transfer too: too little history, erratic growth, and a shrinking folder all produce the same message under the bar rather than an invented date, and a projection read from shallow snapshot history says so on hover. Sharing the code path is what makes the honesty consistent. Two widgets with two hand-rolled projection routines would drift, and one of them would start guessing.
The history player steps labels snapshot by snapshot on purpose
Once a folder has history, the treemap grows a time slider. Scrub to any past scan and the map morphs, in the treemap and in the sunburst, with a diff overlay tinting what grew green and what shrank red. Transport controls play, pause, run at half speed to four times, and loop, so the history plays as a film in which rectangles grow, shrink and vanish exactly as the bytes did. The deliberate choice is in the labels. They step snapshot by snapshot rather than interpolating, because an interpolated byte total would be an invented number, and that is the same rule the forecasts obey. Export has the same ethic. A single scan exports as PNG or SVG, a whole scan as CSV or a multi-page PDF report, and a folder's history as an animated GIF written with a dependency-free hand-rolled LZW and encoded off the main thread, or as WebM where the runtime can record a canvas, with the menu telling you which one you are getting.
A TypeScript shell sits on a Rust core and fetches a Go tool at package time
The stack is more than one language, and the build scripts say so plainly. The Electron entry point is `electron/main.js`, the UI is TypeScript, and the scanning core is a Rust workspace at `native/treemap-core/Cargo.toml`, exercised by `cargo test --manifest-path native/treemap-core/Cargo.toml --workspace`. It is versioned separately, with `nativeVersion` at `0.5.0` against the package's own `5.0.1`, so you can tell at a glance which half you are on. There is also a third language in the pipeline: `npm run dist`, `dist:mac` and `dist:win` all insert a `fetch:gdu` step before electron-builder, which is why the container disables that tool with `TREEMAP_NO_GDU=1`. The three-step build is documented inline in the Dockerfile: build-ui stitches `src/ui` into `public/index.html`, tsc compiles, and copy-assets mirrors the runtime rule packs. The generated HTML is copied from the build stage rather than the host, so a stale artifact cannot ship.
Editorial conclusion
TreeMap suits someone who wants to see what is consuming a disk and act on it without giving up recoverability, on macOS or Windows where the Trash exists, or as a read-only scanner anywhere else. Three things to check before you rely on it. The container profile has no Trash at all, so treat the Docker deployment as scan and analyse and do the destructive work from the desktop app. The server binds 0.0.0.0 inside the container, so any move beyond localhost needs both a widened port mapping and a real TREEMAP_TOKEN, not just one of the two. And treat every number the app declines to produce as missing data rather than a good sign, because the forecast, the cost table and the drive report all stop rather than guess. What you get instead of a portable binary is a repository with an Electron shell, a Rust core under native/, a Go tool fetched at packaging time, and a server mode, which is a heavier arrangement than a single installer would suggest.
Frequently asked questions
Can TreeMap permanently delete my files?
Not from the desktop app. Deletes always go to your system Trash and nothing is ever hard-deleted, so every action is recoverable. The exception is a container, which has no OS Trash; the compose file says to mount data read-only, treat that profile as scan-and-analyze, and do destructive cleanups from the desktop app.
How do I expose the TreeMap server beyond localhost?
Two changes are required together. Change the compose port mapping from `127.0.0.1:4280:4280` to `4280:4280`, and set `TREEMAP_TOKEN` for bearer auth on the API. `TREEMAP_ALLOWED_ORIGINS` is available for origin control. The container itself always binds `HOST=0.0.0.0`, because a 127.0.0.1 bind would be unreachable through the published port.
Does the TreeMap disk-full forecast always give me a date?
No, and the refusals are deliberate. It projects from scan history and instead of inventing a number it reports that it cannot know when there is too little history, erratic growth, or usage that is shrinking. Folder budget gauges use the same computation and decline on the same conditions.
How does TreeMap work out what my data would cost in cloud storage?
It prices the scanned data against Google Drive, Dropbox, OneDrive and iCloud+ in a choice of six currencies, using a price table that ships inside the app rather than an online lookup, so the `as of` date is always visible. A saving is only claimed when clearing space would move you down a pricing tier.
What does TreeMap do when a deleted file's space has not come back?
It groups the held-up files by the process holding them, biggest holder first, and offers to ask that process to quit gracefully. It refuses system PIDs, TreeMap itself and TreeMap's parent, and any PID whose process is not the one named. A program that declines is reported as still running rather than force-killed, and processes it cannot see are counted rather than guessed at.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/prithvi-web-treemap-disk-visualizer)Star history chart for your README
[](https://hysenlabs.com/projects/prithvi-web-treemap-disk-visualizer)Was this useful?