{"id":51288711,"url":"https://github.com/khalilbenaz/cleanmac-pro","last_synced_at":"2026-06-30T08:32:11.366Z","repository":{"id":359224352,"uuid":"1245091235","full_name":"khalilbenaz/cleanmac-pro","owner":"khalilbenaz","description":"Native Swift cleaner for macOS — fast, transparent, open source. ~4MB binary, zero telemetry, MIT licensed.","archived":false,"fork":false,"pushed_at":"2026-05-20T22:57:38.000Z","size":18893,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2026-05-21T04:51:59.001Z","etag":null,"topics":["claude-code","mac-cleaner","macos","native","open-source","swift","swiftui"],"latest_commit_sha":null,"homepage":"https://khalilbenaz.github.io/cleanmac-pro/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khalilbenaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-20T22:46:00.000Z","updated_at":"2026-05-20T22:57:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/khalilbenaz/cleanmac-pro","commit_stats":null,"previous_names":["khalilbenaz/cleanmac-pro"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/khalilbenaz/cleanmac-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilbenaz%2Fcleanmac-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilbenaz%2Fcleanmac-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilbenaz%2Fcleanmac-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilbenaz%2Fcleanmac-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalilbenaz","download_url":"https://codeload.github.com/khalilbenaz/cleanmac-pro/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilbenaz%2Fcleanmac-pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34959505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","mac-cleaner","macos","native","open-source","swift","swiftui"],"created_at":"2026-06-30T08:32:10.543Z","updated_at":"2026-06-30T08:32:11.354Z","avatar_url":"https://github.com/khalilbenaz.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CleanMac Pro\n\n\u003e A lean, fast, transparent disk cleaner for macOS — native Swift + SwiftUI.\n\n[![Built with Swift](https://img.shields.io/badge/swift-6.0+-orange?logo=swift)](https://swift.org)\n[![macOS 14+](https://img.shields.io/badge/macOS-14+-black?logo=apple)](#)\n[![MIT License](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n[![No telemetry](https://img.shields.io/badge/telemetry-0%20bytes-brightgreen)](#)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/screenshots/01-dashboard.png\" alt=\"CleanMac Pro dashboard\" width=\"900\"/\u003e\n\u003c/p\u003e\n\n## Why?\n\nMac cleaners are usually one of three things: bloated Electron apps, pushy\nfreemium upsell engines, or opaque tools that delete things you can't see.\n**CleanMac Pro is none of those.**\n\n- **Native** — Swift + SwiftUI, ~4 MB binary, runs cold in under a second.\n- **Transparent** — every byte is shown with its full path before anything moves.\n- **Safe** — cleaning calls `FileManager.trashItem`, never `rm`. Restore is one click.\n- **Local** — zero network calls outside the optional iTunes Search lookup for App Store updates.\n- **No marketing modals.** Ever.\n\n## Features\n\n| Module          | What it does                                                              |\n|-----------------|---------------------------------------------------------------------------|\n| **Dashboard**   | Health ring · storage sunburst · weekly trend · 9 module shortcuts        |\n| **Smart Scan**  | Runs cleanup + files + security + updates + privacy in parallel           |\n| **Cleanup**     | Caches, logs, trash, temp dirs (`~/Library/Caches`, `~/Library/Logs`, …)  |\n| **Uninstaller** | Apps + residues across `~/Library/Application Support`, Caches, Containers|\n| **Files**       | Large files (≥ 50 MB) + old files (\u003e 180 d) + SHA-256-verified duplicates |\n| **Space Lens**  | Squarified treemap of the home directory with drill-down                  |\n| **Security**    | FileVault, Gatekeeper, SIP, Firewall, XProtect, known-malware paths       |\n| **Privacy**     | Per-browser cookies / cache / history — Safari, Chrome, Firefox, Brave, Arc|\n| **Updates**     | App Store via iTunes Search API · Homebrew formulae + casks · macOS softwareupdate|\n| **Performance** | Login items, LaunchAgents, top RAM consumers — disable from the row        |\n| **Maintenance** | 6 real macOS maintenance commands with native admin prompts                |\n| **Result**      | Mega-number recap, breakdown, confetti                                     |\n\nPlus: floating **Quick Clean** FAB (⌘⇧K), **menu bar widget** with live\nCPU/RAM/Disk meters, **onboarding** with explicit \"what we touch / what we\ndon't\" transparency screen.\n\n## Architecture\n\n```\nSources/\n├── CleanCore/                # Library — pure, no UI deps\n│   ├── Models.swift          # ScanItem, ScanResult, ModuleID, Severity\n│   ├── Scanner.swift         # FileScanner protocol + Cleaner\n│   ├── FileSystem.swift      # FS enumeration + ByteFormatter\n│   ├── Shell.swift           # Run system CLIs with timeout\n│   └── Scanners/\n│       ├── CleanupScanner.swift       # caches/logs/trash\n│       ├── LargeFilesScanner.swift\n│       ├── DuplicatesScanner.swift    # size group + SHA-256\n│       ├── AppUninstaller.swift\n│       ├── SpaceLensScanner.swift     # du-based home survey\n│       ├── SecurityScanner.swift      # fdesetup, spctl, csrutil, socketfilterfw, XProtect\n│       ├── PrivacyScanner.swift       # per-browser data\n│       ├── UpdatesScanner.swift       # iTunes Search API + brew + softwareupdate\n│       ├── PerformanceScanner.swift   # osascript login items, LaunchAgents, ps\n│       └── MaintenanceScanner.swift   # 6 real maintenance commands\n│\n├── CleanMacPro/              # Executable — SwiftUI app\n│   ├── App.swift\n│   ├── AppState.swift\n│   ├── DashboardView.swift   # RootView, MainPane\n│   ├── Theme/Tokens.swift    # 4 accents, dark mode, wallpapers\n│   ├── Components/           # GlassPanel, Ring, Sunburst, ModuleCard, MiniStat,\n│   │                         # WeeklyTrend, CategoryRow, SortMenu, ScreenHeader, …\n│   ├── Shell/                # Sidebar, Toolbar, QuickCleanFAB, MenubarWidget, Onboarding\n│   └── Screens/              # Dashboard, SmartScan, ScanScreen (generic), SpaceLens, Result\n│\n└── CleanMacProSmoke/         # Standalone runner — exercises scanners with no XCTest\n```\n\nA single `FileScanner` protocol drives every module:\n\n```swift\npublic protocol FileScanner: Sendable {\n    var module: ModuleID { get }\n    func scan(progress: @escaping (Double, String) -\u003e Void) async throws -\u003e ScanResult\n}\n```\n\nThe UI treats every scanner the same way: empty → scanning → results, with sort/select/clean.\n\n## Build\n\nRequires Swift 5.9+ (Xcode 15 or macOS Command Line Tools).\n\n```bash\nswift build -c release\n./Tools/build-app.sh                 # assembles CleanMac Pro.app + ad-hoc signs\ncp -R \"build/CleanMac Pro.app\" /Applications/\n```\n\nOr open the package in Xcode:\n\n```bash\nopen Package.swift\n```\n\n## Verify\n\n```bash\nswift run CleanMacProSmoke   # 8 checks against fixture trees\n```\n\nXCTest tests live in `Tests/CleanCoreTests/` — they run when you have a full\nXcode install (Command Line Tools alone can't import `XCTest`).\n\n## Permissions\n\nSome modules need extra macOS permissions to be fully useful:\n\n| Module       | Permission                              | Effect if missing                       |\n|--------------|------------------------------------------|------------------------------------------|\n| Cleanup      | (none)                                  | Skips unreadable system caches silently  |\n| Files / Space Lens | **Files and Folders** or Full Disk Access | Some folders show as empty       |\n| Privacy      | Full Disk Access                        | Safari history/cookies invisible         |\n| Performance  | Automation (System Events)              | Login items list is empty                |\n| Maintenance  | Native admin prompt at run time          | sudo tasks fail otherwise                |\n\n## Roadmap\n\n- [ ] Notarized signed distribution\n- [ ] Sparkle feed checks for direct-download apps\n- [ ] Optional Claude API integration for the AI assistant overlay\n- [ ] Schedule scans via LaunchAgent\n- [ ] Locales: EN / ES / DE / DE\n\n## Credits\n\n- UI design ported from the prototype generated with [Claude Design](https://claude.ai/design).\n- Built with [Claude Code](https://claude.com/claude-code) — most code in this\n  repo was authored by Claude, reviewed and merged by a human.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalilbenaz%2Fcleanmac-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalilbenaz%2Fcleanmac-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalilbenaz%2Fcleanmac-pro/lists"}