Skip to content
 
 

Repository files navigation

SquirrelDisk logo

SquirrelDisk – free disk space analyzer

See what's taking up your disk space.
A fast, open source disk usage analyzer for macOS (Apple Silicon and Intel), Windows and Linux.
Website · Download · Español

Latest release CI status Built with Rust and Tauri 2 License AGPL-3.0

SquirrelDisk sunburst view

Treemap view Disk list

Cleanup suggestions

SquirrelDisk shows what's taking up space on your disk and helps you free it. Pick a disk or folder, and an interactive sunburst or treemap shows where the space went. The Suggestions tab points out caches and build folders you can safely delete, such as Xcode DerivedData, node_modules, Gradle caches and the Adobe media cache. Collect what you don't need and move it to the Trash in one go.

It is a free, open source alternative to DaisyDisk, GrandPerspective and OmniDiskSweeper on macOS, WinDirStat, WizTree, TreeSize and SpaceSniffer on Windows, and Baobab and QDirStat on Linux.

This is a maintained fork of adileo/squirreldisk, which stopped receiving updates in 2023. Most of the app was rewritten. The main goal was to make it run natively on Apple Silicon and to fix the scans that hung at 100%. The changelog lists every upstream issue it closes.

Features

  • Native on every platform. A universal macOS build runs natively on M1/M2/M3/M4 and Intel. Windows and Linux builds are for x86_64, and Linux also has arm64.
  • Fast, in-process scanner. It scans on all cores and reports live progress. You can cancel at any time. It no longer depends on an external pdu binary.
  • Accurate sizes. Sizes are what files really use on disk. Sparse files, such as Docker, OrbStack and VM images, no longer show as terabytes. Cloud placeholders from iCloud, Dropbox and OneDrive count only what is stored locally. Hard links are counted once.
  • No double counting on macOS. The APFS data volume is reached through firmlinks and is counted once. The scan never enters other mounted volumes.
  • Sunburst and treemap views with readable labels, hover tooltips, and one color legend shared with the file list.
  • "Largest files" tab lists the biggest files anywhere inside the current folder.
  • Cleanup suggestions. SquirrelDisk recognizes about 40 kinds of well-known caches and build folders: Xcode DerivedData, simulators, node_modules, package manager caches, Gradle, Adobe media cache, Final Cut render files, browser caches, iPhone backups and more. It explains what each one is and whether it's safe to delete or should be reviewed first, and it all runs on your computer.
  • Safe cleanup. Tick files and folders, then move them to the Trash or Recycle Bin (you can also delete permanently). Nothing is deleted without confirmation, and the app only deletes items that are part of the scan.
  • Disk overview. A bar shows scanned space, space the scan could not see (system, snapshots, purgeable) and free space.
  • Rescan a single folder without scanning the whole disk again.
  • Excluded folders. Skip folders you never want to scan.
  • Drag and drop a folder onto the window, or run squirreldisk /path/to/folder from a terminal.
  • Keyboard shortcuts. Esc or Backspace goes up one level. Delete (or ⌘ Backspace) moves the selection to the Trash. Shift + Delete deletes it permanently.
  • 7 languages: English, Español, Português, Français, Deutsch, Italiano and 简体中文.
  • Automatic updates. New versions install with one click. Every update is signed, and the app refuses any update that isn't. This works on macOS, Windows and Linux. For the portable Windows exe, download new versions manually.
  • Private. No analytics or trackers. The only network request is the check for new releases on GitHub, which you can turn off in Settings.

Install

Download the latest version from the releases page.

macOS (Apple Silicon and Intel)

  1. Download SquirrelDisk_x.y.z_universal.dmg, open it and drag SquirrelDisk to Applications.

  2. The app is open source but not notarized by Apple. The first time you open it, macOS says it can't verify the developer. Open System Settings → Privacy & Security, scroll down and click Open Anyway. You only do this once.

    Or run this command in Terminal:

    xattr -dr com.apple.quarantine /Applications/SquirrelDisk.app
  3. Optional: give SquirrelDisk Full Disk Access (System Settings → Privacy & Security → Full Disk Access). Without it, macOS hides some protected folders from the scan. The app shows how many items it couldn't read, with a button that opens this setting.

Windows

Download SquirrelDisk_x.y.z_x64-setup.exe. If you don't want to install anything, download SquirrelDisk_x.y.z_x64_portable.exe. The builds are not code-signed, so SmartScreen may warn you: click More info → Run anyway.

Linux

Download the .deb (Debian/Ubuntu), .rpm (Fedora/openSUSE) or .AppImage for your architecture (amd64/x86_64 or arm64/aarch64). The builds need WebKitGTK 4.1, which ships with Ubuntu 22.04+, Debian 12+, Fedora 36+ and newer distributions.

Verify your download

Every release is built from source by GitHub Actions. No binaries are committed to the repository. Each release includes SHA256SUMS.txt and a signed build provenance attestation. You can check any file with:

gh attestation verify SquirrelDisk_0.4.0_universal.dmg --repo hernancasillas/squirreldisk

FAQ

How do I find what's taking up space on my Mac? Open SquirrelDisk and click Macintosh HD. In about a minute you get a chart of every folder by size. Open the Suggestions tab to see caches you can delete safely.

Is it safe to delete Xcode DerivedData? Yes. It only holds build products and indexes, and Xcode recreates it the next time you build. The same goes for node_modules (run npm install again), Rust target folders and Gradle caches.

Does it run on M1, M2, M3 and M4 Macs? Yes. It's a universal app that runs natively on Apple Silicon and on Intel. It doesn't need Rosetta.

Why does macOS say it can't verify the app? The app isn't notarized by Apple. Click Open Anyway in System Settings → Privacy & Security. You only do this once. See Install.

Is it free? Yes. It's open source (AGPL-3.0), with no ads, subscriptions or tracking.

Build from source

Requirements: Rust (stable), Node.js 20+, and the Tauri prerequisites for your platform.

git clone https://github.com/hernancasillas/squirreldisk
cd squirreldisk
npm install
npm run tauri dev      # run in development mode
npm run tauri build    # build an installer for your machine

To build a universal macOS app:

rustup target add aarch64-apple-darwin x86_64-apple-darwin
npm run tauri build -- --target universal-apple-darwin

Run the tests:

npm test
cd src-tauri && cargo test

How it works

The Rust backend (src-tauri/src) walks the file system in parallel with rayon and keeps the whole tree in memory. The React frontend never receives the full tree. It asks for small, pruned views (the focused folder, a few levels deep, with tiny items folded into "smaller items"). This keeps the UI fast even for disks with millions of files. Deleting or rescanning a folder updates the tree in place.

File Purpose
src-tauri/src/scan.rs Parallel scanner: allocated sizes, hard-link deduplication, mount and firmlink handling
src-tauri/src/tree.rs In-memory tree, pruned views, largest files, removal and splicing
src-tauri/src/lib.rs Tauri commands and events
src/components/Sunburst.tsx, Treemap.tsx Charts (d3-hierarchy + React SVG)
src/components/Results.tsx Results screen: list, selection, deletion, context menu

Contributing

Bug reports and pull requests are welcome. Please open an issue with your OS version and steps to reproduce.

Credits

License

GNU AGPL-3.0, same as the original project.

About

Free disk space analyzer for Mac (native Apple Silicon), Windows and Linux. See what's taking up space, get cleanup suggestions (Xcode DerivedData, node_modules, caches) and free GBs. Open source DaisyDisk / WinDirStat / WizTree alternative.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages