Skip to content

About

Fast read-only disk space analyzer for Windows 11: treemap, largest files, space by file type and installed apps (Rust + Tauri). A WinDirStat/WizTree alternative

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Disk Analyzer

A Windows 11 desktop app that scans a drive or folder (read-only) and shows what is taking up space: a folder tree, a treemap, the largest files, and a breakdown by file type.

Built with Tauri 2: a Rust core does the scanning, and a React + TypeScript interface (styled with Tailwind CSS) displays the results.

Features

  • Read-only scanning of whole drives or any folder, with live progress and cancellation.
  • Tree view with lazily loaded folders, sorting by name, size, size on disk or file count, and a context menu (open in File Explorer, copy path, show in treemap).
  • Treemap to drill down into the biggest folders at a glance.
  • Top files: the 40 largest files of the scan, filterable by type.
  • Types: breakdown of space by file type and extension.
  • Installed apps: lists the Windows desktop apps and measures how much space their folders use.
  • Light and dark themes, recent folders, keyboard navigation.

Download

Prebuilt installers are published on the GitHub Releases page of this repository.

Windows SmartScreen warning: the installer is not code-signed, so Windows may show "Windows protected your PC" when you run it. This is expected for unsigned open-source software. Click More info → Run anyway to continue. You can verify the download against the SHA-256 checksum listed in the release notes (Get-FileHash .\<file>.exe in PowerShell). If you prefer, build it yourself from source (see below).

Tech stack

  • Core: Rust, Tauri 2, ts-rs (generates the shared TypeScript types)
  • Frontend: React 19, TypeScript, Vite, Tailwind CSS 4, Zustand, lucide-react
  • Tests and tooling: Vitest, ESLint, Prettier, Clippy

Prerequisites

  • Node.js 20+ and npm
  • Rust (MSVC toolchain) and the Visual Studio Build Tools with the "Desktop development with C++" workload
  • WebView2 (already present on Windows 11)

Getting started

npm install
npm run tauri dev

The frontend only works inside Tauri: scans and data come from the Rust core, so there is no browser-only mode.

Commands

Command What it does
npm install Installs the frontend dependencies
npm run tauri dev Runs the app in development (reloads on change)
npm run tauri build Builds the app and creates the installer in src-tauri/target/release/bundle
npm test Frontend tests (Vitest)
cargo test Rust core tests, from src-tauri/; also regenerates src/bindings
npm run lint ESLint
npm run format:check Prettier (use npm run format to fix)
cargo clippy --all-targets Rust core lint, from src-tauri/

Notes

  • Build memory: on machines with little free RAM, rustc can fail with out of memory (seen on tokio). The errors memory allocation … failed and, as a consequence, only metadata stub found for rlib dependency core indicate that the Windows commit limit is exhausted (not just RAM). Limit parallelism with CARGO_BUILD_JOBS=3 (or 1 if it still fails; slower, roughly 10 minutes from scratch, ~2 GB peak per compiler). Dependencies are built without debug info (see Cargo.toml).
  • Shared types: the types in src/bindings/ are generated by ts-rs from src-tauri/src/model.rs; do not edit them by hand. If you change the Rust model, run cargo test.
  • Logs: %LOCALAPPDATA%\com.personal.diskanalyzer\logs\. Change the level with the RUST_LOG environment variable (e.g. RUST_LOG=debug).

License

MIT

About

Fast read-only disk space analyzer for Windows 11: treemap, largest files, space by file type and installed apps (Rust + Tauri). A WinDirStat/WizTree alternative

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages