How lqmnah/rebes works
Rebes is a macOS utility combining cleanup, battery and fan controls, live monitoring, maintenance, and a menu-bar companion. Users work through the SwiftUI app; cleanup flows from scan and review to confirmed Trash-only cleaning, while privileged hardware actions go through HelperClient to the root helper or its admin-prompt fallback. The README documents additional cleanup and maintenance capabilities whose detailed wiring is not present in the sampled source, so those links are kept at documented subsystem boundaries. Grouped paths identify their implementation areas; several subsystem details are based on README evidence rather than inspected source.
Main entry points: ContentView.swift Main navigation · HelperClient.swift Helper client · SmartCareView.swift Smart Care · LargeFilesView.swift Cleanup tools
Components 26
App experience
- Rebes app
Sources/Rebes/RebesApp.swift - Main navigation
Sources/Rebes/ContentView.swift - Dashboard
Sources/Rebes/DashboardView.swift - Menu bar panel
Sources/Rebes/MenuBarPanel.swift - Status bar controller
Sources/Rebes/StatusBarController.swift - Settings
Sources/Rebes/SettingsView.swift
Cleanup and maintenance
- Smart Care
Sources/Rebes/SmartCareView.swift - Junk scanning
Sources/RebesCore/JunkScanner.swift - Disk and file scans
Sources/RebesCore/DiskScanner.swift - App leftovers
Sources/RebesCore/LeftoverMatcher.swift - Safe cleaner
Sources/RebesCore/SafeCleaner.swift - Cleanup tools
Sources/Rebes/LargeFilesView.swift - Maintenance tools
Sources/Rebes/MaintenanceView.swift
Monitoring and controls
- System monitor
Sources/Rebes/SystemMonitor.swift - Battery controls
Sources/Rebes/ChargeControlView.swift - Fan controls
Sources/Rebes/KipasSuhuView.swift - Battery reader
Sources/RebesCore/BatteryReader.swift
Privileged hardware
- Helper client
Sources/RebesCore/HelperClient.swift - Root helper daemon
Sources/RebesHelper/Daemon.swift - Helper CLI
Sources/RebesHelper/main.swift - Write whitelist
Sources/RebesCore/Whitelist.swift - SMC access
Sources/RebesCore/SMC.swift
Other components
- Mac user
- Mac hardware
- Mac filesystem
- UserDefaults
Connections 36
- Mac user → Rebes app: opens
- Rebes app → Main navigation: shows
- Main navigation → Dashboard: navigates
- Main navigation → Smart Care: navigates
- Main navigation → Cleanup tools: navigates
- Main navigation → Battery controls: navigates
- Main navigation → Fan controls: navigates
- Main navigation → Maintenance tools: navigates
- Mac user → Smart Care: requests scan
- Smart Care → Junk scanning: scans junk
- Smart Care → Disk and file scans: checks disk
- Smart Care → Safe cleaner: cleans selected
- Cleanup tools → Disk and file scans: scans files
- Cleanup tools → App leftovers: matches leftovers
- Cleanup tools → Safe cleaner: cleans safely
- Junk scanning → Mac filesystem: reads paths
- Disk and file scans → Mac filesystem: reads sizes
- Safe cleaner → Mac filesystem: moves to Trash
- Maintenance tools → Helper client: requests privileged action
- Dashboard → System monitor: reads metrics
- Menu bar panel → System monitor: reads live stats
- Status bar controller → Menu bar panel: opens panel
- Rebes app → Status bar controller: starts companion
- System monitor → Battery reader: reads battery
- Battery reader → Mac hardware: reads telemetry
- Battery controls → Helper client: sets charge policy
- Fan controls → Helper client: sets fan control
- Settings → Helper client: manages Full Access
- Settings → UserDefaults: persists preferences
- Helper client → Root helper daemon: calls over XPC
- Helper client → Helper CLI: admin fallback
- Root helper daemon → Write whitelist: validates writes
- Helper CLI → Write whitelist: validates writes
- Root helper daemon → SMC access: reads and writes
- Helper CLI → SMC access: reads and writes
- SMC access → Mac hardware: accesses SMC