RepositoryRustBDBangladesh
nihal4

nihal4/macsweep

Free, open-source Mac cleaner written in Rust. Smart Scan, Uninstaller, Browser Cleanup, Large Files, Duplicates and Mac Health, and it shows exactly what it will remove first.

179stars
20forks
0issues
8views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Country: BD

#1 Repository of the day

1
TINIX TRENDING·Topic: cleanmymac-alternative

#1 Repository of the day

1
TINIX TRENDING·Topic: disk-cleanup

#1 Repository of the day

MacSweep icon

MacSweep

A free, open-source Mac cleaner written in Rust. Clean junk, find big forgotten files, fully uninstall apps and remove orphaned background items, all from a ~7 MB native app.

Latest release License: MIT macOS 11+ Apple Silicon & Intel Rust

Smart Scan

⬇ Download MacSweep · Website · Report a bug · Request a feature


Why MacSweep?

  • Free and open source. No subscription, no ads, no "upgrade to clean" paywall. Every line is right here.
  • Safe by design. It never touches your browser profiles, email, passwords or app data (see Safety).
  • Tiny and fast. One native Rust binary of about 7 MB. Scans use every CPU core, and the app uses no CPU when idle.
  • Private. No accounts, no telemetry, no network access. Everything happens on your Mac.

Features

✨ Smart ScanOne click finds caches, logs, build leftovers and Trash, and shows a summary by category.
🧹 System JunkReview every category and file before cleaning, with per-file checkboxes. Developer (Xcode, npm, Gradle) and ML-model caches (Hugging Face, PyTorch) are included.
📁 Large & Old FilesFinds big files in your home folder, grouped by kind (videos, archives, installers, models & data…), with a "not opened in a year" filter.
🗂️ DuplicatesFinds exact duplicate files (same size and same BLAKE3 content hash) in Desktop, Documents, Downloads, Pictures, Movies and Music. Always keeps at least one copy, never looks inside Photos/Music libraries or app data, and moves extras to the Trash.
📦 UninstallerEvery app with its icon, version, App Store / Apple Silicon / Intel badges, last-opened date and true size including leftovers. Select several apps at once.
🚀 Launch AgentsLists background helpers and flags orphaned ones whose app is already gone.
💾 Live disk & TrashThe sidebar always shows free space and Trash size, updates instantly after every clean, and has a one-click Empty Trash.
UninstallerLarge & Old Files
System JunkCleaned

How MacSweep compares

MacSweepMole (CLI)Mole for MacCleanMyMac
PriceFreeFreePaid, one-timePaid
InterfaceGraphical appTerminalGraphical appGraphical app
Open sourceYes, MITYes, GPL-3.0NoNo
Oldest macOSmacOS 11see projectmacOS 14see vendor

Mole is a far more mature project with many more features. If you're comfortable in Terminal, it's a great choice. MacSweep is for people who want a free graphical app with a strict, tested promise about their data.

Not to be confused with other, unrelated projects also named MacSweep. This is the Rust app by nihal4, at macsweep-app.netlify.app.

Install

  1. Download MacSweep-x.y.z.zip from Releases, unzip it, and move MacSweep to Applications.
  2. MacSweep isn't notarized by Apple yet (that needs a paid developer account), so macOS blocks it the first time. Either:
    • Open it once, click Done, then go to System Settings → Privacy & Security, scroll down and click Open Anyway (macOS 15 Sequoia and later; on older macOS you can right-click the app → Open), or
    • run this once in Terminal:
    xattr -dr com.apple.quarantine /Applications/MacSweep.app
    
  3. Turn on System Settings → Privacy & Security → Full Disk Access for MacSweep, then reopen it (or click Relaunch in the sidebar).
  4. The first time you remove something, allow MacSweep to control Finder. It uses Finder to move files to the Trash, so Put Back works.
Full Disk Access still shows as off?
  1. In System Settings → Full Disk Access, select MacSweep, click – to remove it, then + to add /Applications/MacSweep.app again.
  2. Quit and reopen MacSweep. macOS only applies the permission to a freshly started app.
  3. Open the app from Applications, not by running the binary in Terminal. From Terminal, the permission belongs to Terminal instead.

Safety — your data is never touched

Some cleaners have wiped people's browser profiles and email. MacSweep is built so that can't happen:

  • Allowlist, not blocklist. Junk cleaning can only delete inside a fixed list of cache, log and build folders (JUNK_ROOTS in src/fsutil.rs). Every path is checked again right before deletion.
  • Never touched: browser profiles (Chrome, Brave, Firefox, Safari: history, passwords, bookmarks, logins), Mail, Messages, Keychains, cookies, app containers, ~/Library/Application Support, and your documents. For browsers, only the disposable download cache is cleaned.
  • Sign-in and sync caches are skipped: iCloud, CloudKit, Apple ID, Wallet, Family, and anything named like a password manager, token, auth, account or login.
  • The Uninstaller keeps your data unless you ask. Leftovers are split into safe to remove (cache, logs, preferences, window state) and Your data (profiles, containers, cookies, web storage), which is never pre-selected.
  • Recoverable by default. Apps, large files and launch agents go to the Trash. Only junk is deleted permanently, after you click Clean.
  • Apple's own apps are never listed in the Uninstaller.
  • Automated tests (cargo test) check that browser profiles, Mail, keychains, cookies, Documents and ../ path tricks can never be deleted.

Build from source

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh   # one-time Rust install
git clone https://github.com/nihal4/macsweep && cd macsweep
./scripts/setup-signing.sh  # optional, once: keeps Full Disk Access across rebuilds
./bundle.sh                 # dist/MacSweep.app for this Mac
UNIVERSAL=1 ./bundle.sh     # Apple Silicon + Intel in one app

Roadmap

  • Duplicate file finder (v0.2)
  • Menu-bar mini monitor (disk, RAM, CPU)
  • Browser cache cleanup per browser (cache only, never profiles)
  • Scheduled scans and reminders
  • Homebrew install (brew install --cask macsweep)
  • Notarized builds

Ideas are welcome: open a feature request.

Contributing

Pull requests are welcome! Please read CONTRIBUTING.md. The one hard rule: never widen what can be deleted without a test that proves user data stays safe.

How it's built

  • Rust with egui (OpenGL), with no web view inside
  • jwalk + rayon for parallel scanning
  • trash for Finder-compatible Trash, icns for app icons, plist for app metadata
  • San Francisco (the system font) is memory-mapped instead of bundled

Releases are built by GitHub Actions: push a tag such as v0.2.0 and a universal .app is attached to a new release, with notes taken from CHANGELOG.md.

License

MIT © S. M. Nihal Ahmed. Icons by Phosphor (MIT).

If MacSweep saved you some space, please ⭐ star the repo. It helps other people find it.

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
AlexSergey/fresher

Free, open-source macOS disk cleaner made for developers' Macs. Explains every gigabyte in plain English with a danger level, never sends your data anywhere, and removes nothing you have not confirmed.

484
Nov 30, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositorySwift
jithin-sabu/purge-app

Free up your Mac. Safely. A free, open-source native Mac app that clears the cache and junk your Mac piles up on its own. Files go to the Trash by default, so you can put them back.

2.1k
Nov 30, 2026
RepositorySwift
TuguiDragos/Peel

A Mac uninstaller that shows its work

713
Nov 28, 2026
RepositorySwift
yagcioglutoprak/dusty

Free, open-source CleanMyMac alternative for macOS. Preview disk cleanup by path and size, inspect memory by app, and quit idle apps after review. Menu bar app, CLI, Homebrew. No account or telemetry.

82
Sep 27, 2026
RepositoryHTML
ChenZuren/ccleaner-pro-plus

2026 Ultimate System Cleaner & Optimizer – Privacy, Registry & Junk Removal Suite

75
Nov 30, 2026
RepositorySwift
lijunyu726/adieu

好好告别。macOS 原生的卸载与清理工具:卸载应用连同它留下的一切,每一项都说明为什么可以删。SwiftUI · 免费开源

50
Nov 22, 2026
RepositoryC++
dylan21-carr/ccleaner-ultimate-desktop

CCleaner Ultimate 2026 desktop setup with registry cleanup, startup manager, duplicate finder and portable mode for Windows 10 and 11

0
Dec 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026