Skip to content

About

See what's eating your Windows disk as a treemap, and send node_modules, build caches and other rebuildable clutter to the Recycle Bin in one click.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Disk Treemap icon

Disk Treemap

See what's eating your disk, and clean up the clutter in one click.

Download GitHub stars Platform License

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.

Results view

Features

  • 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 a Cargo.toml, bin/obj only 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.

Home screen

Download & install (Windows)

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.

Updates

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.

What it detects

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.

Build from source

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

Publishing a release

  1. Bump "version" in package.json, then run npm run dist.
  2. Push, then create a GitHub release with the tag v<version>.
  3. Attach all four files from release/:
    • DiskTreemap-Setup-<version>.exe
    • DiskTreemap-Setup-<version>.exe.blockmap
    • latest.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.png

How it works

src/
├── 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").

Support the project

If you like Disk Treemap, the easiest way to help is to star the repo. Bug reports and ideas are welcome in Issues.

License

MIT

About

See what's eating your Windows disk as a treemap, and send node_modules, build caches and other rebuildable clutter to the Recycle Bin in one click.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages