Skip to content

18jad/spaceman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaceMan Icon

SpaceMan

A powerful disk space analyzer and cleanup tool for macOS

macOS 14+ Swift 5.9 SwiftUI + AppKit MIT License

Dashboard


Features

Disk Scanner

Visualize your entire disk usage with an interactive treemap

Disk Scanner

  • Squarified treemap rendered with Core Graphics for smooth performance
  • Breadcrumb navigation to drill into any folder
  • Sidebar file browser with real-time size display
  • Large Files view to quickly find the biggest space hogs
  • File inspector panel with detailed metadata
  • Cleanup queue to batch files for review before deletion
  • Color-coded file categories (apps, images, videos, documents, archives, developer files, etc.)

App Manager

Find and remove apps with all their related files

App Manager

  • Scans /Applications and discovers every installed app
  • Finds related data across Library folders — caches, app support, preferences, containers, and more
  • App cards with icons and size breakdown
  • Detail inspector showing exactly where app data lives
  • Full cleanup: remove the app and all associated files in one action

Duplicates Finder

Detect and remove duplicate files to reclaim wasted space

Duplicates Finder

  • Two-phase scan: fast size-based filtering, then SHA-256 hash verification
  • Groups duplicates with clear visual hierarchy
  • Auto-select keeps the newest copy and marks the rest for removal
  • Safety warning when all copies of a file are selected
  • Move to Trash or permanently delete
  • Configurable scan scope: Home, Downloads, Desktop, Documents, or custom folders

Smart Clean

One-click safe cleanup of caches, downloads, and duplicates

Smart Clean

  • Orchestrates multiple scanners (Downloads, App Caches, Duplicates) in one pass
  • Rule engine classifies every item as Safe, Review, or Risky
  • Category cards with expand/collapse to inspect what will be cleaned
  • Circular gauge dashboard showing total reclaimable space
  • Clean history log with timestamps and size freed
  • Select all safe items with one click

Forgotten Files

Find old files you haven't opened in months or years

Forgotten Files

  • Scans for files untouched beyond a configurable age threshold (1 week to 5 years)
  • Age breakdown bar — visual stacked bar showing file distribution by age bucket
  • Inline search, category filtering, and sort by size/age/name
  • Smart recommendations flag safe-to-remove files (old installers, archives, large videos)
  • Scope options: Home, Downloads, Desktop, Documents, Pictures, Movies
  • Context menu: Reveal in Finder, Copy Path

Settings

Tab Options
General Splash screen toggle, delete confirmation
Scanning Hidden files, thread count, minimum file size, skip packages/symlinks, exclude directories (node_modules, DerivedData, .git), cross-volume scanning, default scan path
Display Treemap detail level (50-500 items), show empty items
Duplicates Delete confirmation, warn when all copies selected
Forgotten Files Minimum age threshold

Tech Stack

Framework SwiftUI + AppKit hybrid
Architecture MVVM with @Observable and @MainActor
Rendering Core Graphics treemap via NSView
Hashing CryptoKit SHA-256 for duplicate detection
Target macOS 14.0+ (Sonoma)
Build Xcode 15+, XcodeGen

Installation

Download the latest release from the Releases page.

# After downloading and unzipping, remove the quarantine flag:
xattr -cr /Applications/SpaceMan.app

Building from Source

# Install XcodeGen if needed
brew install xcodegen

# Generate the Xcode project
xcodegen generate

# Build
xcodebuild -scheme SpaceMan -configuration Release build

Or open SpaceMan.xcodeproj in Xcode and hit Run.


Project Structure

SpaceMan/
├── Models/          FileNode, FileCategory, AppInfo, AppSettings,
│                    SmartCleanModels, DuplicateModels, ForgottenFileItem
├── Views/           ContentView, TreemapView, SidebarView, BreadcrumbView,
│                    StorageBarView, StatusBarView, FileDetailView,
│                    AppManagerView, AppCardView, AppDetailView,
│                    DuplicatesView, SmartCleanView, DashboardView,
│                    ForgottenFilesView, LargeFilesView, SettingsView
├── ViewModels/      ScanViewModel, AppManagerViewModel,
│                    DuplicatesViewModel, SmartCleanViewModel,
│                    ForgottenFilesViewModel
├── Services/        DiskScanner, FileDeleter, StorageInfoService,
│                    AppScanner, DuplicateFinder, SmartCleanService,
│                    SmartCleanRuleEngine, SmartCleanExecutor,
│                    DownloadsScanner, ForgottenFilesScanner,
│                    ForgottenFilesRuleEngine
├── Utilities/       SizeFormatter
└── SpaceManApp.swift

About

A powerful disk space analyzer and cleanup tool for macOS

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors