See what's eating your disk, and clean up the clutter in one click.
If Disk Treemap saved you some space, please put a star on this repo (the Star button at the top right of this page). It's free and helps other people find the app.
Disk Treemap shows any drive or folder as big tiles: bigger tile = more space. It spots stuff that dev tools can rebuild (node_modules, Python caches, .next, Rust target/, .NET bin/obj…), tapes it off with orange hazard stripes, and lets you send it to the Recycle Bin with one button.
- One level at a time: about 36 big tiles max, with the long tail grouped into one "small items" tile. Click a folder to zoom in, press
Backspace(or the mouse back button) to zoom back out. - Summary in plain words: "node_modules takes up 87% of DiscordBot", plus a color bar showing what the folder is made of (video, images, code, clutter…).
- Tooltips: hover any tile to see its size, its share of the folder, its file count and what's inside.
- Clutter detection that uses context:
target/only counts next to aCargo.toml,bin/objonly next to a.csproj. Clearly safe items are pre-selected, and risky ones (dist,.venv,.cache,Temp,.git) are marked "check first" and opt-in. - Never deletes for real: everything goes to the Recycle Bin after a confirmation that lists exactly what will be moved.
- Home screen: drive cards with free-space bars, plus one-click quick folders (Downloads, Documents, Desktop…).
- Fast: scanning runs in a worker thread with live progress (about 11,000 files per second on an SSD). Symlinks and junctions are skipped, so nothing is counted twice.
Grab one of these from the latest release:
| File | What it is |
|---|---|
DiskTreemap-Setup-1.0.2.exe |
Installer: one click, no admin needed. Adds Desktop and Start menu shortcuts, and updates itself. |
DiskTreemap-1.0.2-portable.exe |
Portable: just double-click it, nothing gets installed. Tells you when a new version is out. |
The installed app checks GitHub Releases when it starts. If there's a new version, it downloads it in the background and installs it the next time you close the app, or right away with Restart to update in the status bar. Versions before 1.0.2 don't have this yet, so install 1.0.2 once by hand.
The builds aren't code-signed, so Windows SmartScreen may say "Windows protected your PC". Click More info → Run anyway.
| Group | Folders | Pre-selected |
|---|---|---|
| node_modules | node_modules |
Yes |
| Python caches | __pycache__, .pytest_cache, .mypy_cache, .ruff_cache, .tox |
Yes |
| JS framework caches | .next, .nuxt, .parcel-cache, .turbo, .svelte-kit, .angular, .vite, .expo |
Yes |
| Gradle caches | .gradle |
Yes |
| Rust build output | target (next to Cargo.toml) |
Yes |
| .NET bin / obj | bin, obj (next to a .csproj/.fsproj/.vbproj) |
Yes |
| JS build output | dist, build, out, .output (next to package.json) |
No |
| Python virtualenvs | .venv, venv |
No |
| Cache folders | .cache, cache, caches |
No |
| Temp folders | temp, tmp |
No |
| Git history | .git |
No |
The rules live in src/junk.js. Adding one takes a single object.
Requires Node.js 18 or newer.
git clone https://github.com/itslxmns/TreeMapDisk.git
cd TreeMapDisk
npm install
npm start # run in development
npm run dist # build the installer + portable .exe into release/
npm run icon # regenerate src/assets/icon.png- Bump
"version"inpackage.json, then runnpm run dist. - Push, then create a GitHub release with the tag
v<version>. - Attach all four files from
release/:DiskTreemap-Setup-<version>.exeDiskTreemap-Setup-<version>.exe.blockmaplatest.yml(the updater reads this; without it nobody gets the update)DiskTreemap-<version>-portable.exe
Dev helper: scan on launch, save a screenshot, and quit:
npx electron . --scan=D:\Projects --screenshot=docs/screenshot.pngsrc/
├── main.js Electron main process: window, IPC, drive info, Recycle Bin + confirmation
├── preload.js Exposes a small API to the page (contextIsolation + sandbox)
├── scanner.js Worker thread: walks the disk and builds a compact size tree
├── junk.js Rules for regenerable folders
├── updates.js Auto-update from GitHub Releases (electron-updater)
├── assets/ App icon (drawn by scripts/make-icon.js)
└── renderer/ UI: canvas treemap, zoom animation, story header, cleanup sidebar
- The layout uses the squarified treemap algorithm, so tiles stay as close to square as possible.
- Each folder keeps per-category byte totals, which power the "made of" bar and each tile's color (a folder takes the color of what it mostly contains).
- Sizes are apparent file sizes (like Explorer's "Size").
If you like Disk Treemap, the easiest way to help is to star the repo. Bug reports and ideas are welcome in Issues.
MIT

