How momenbasel/phosphor works
Phosphor is a native macOS manager for iOS devices. Users select a connected device or local backup, then manage the device, create or browse backups, and inspect or export backed-up content. The graph preserves the documented device, backup, content-export, and diagnostics capabilities. Some feature implementations were not excerpted, so those subsystem links rely on README documentation; unsampled internals and uncertain calls are not inferred.
Main entry points: BackupManager.swift Backup operations · BackupViewModel.swift Backup state · DeviceManager.swift Device operations · UnifiedSearchService.swift Unified search
Components 28
App interface
- App entry
Sources/Phosphor/App/PhosphorApp.swift - Main interface
Sources/Phosphor/Views/ContentView.swift - Device state
Sources/Phosphor/ViewModels/DeviceViewModel.swift - Backup state
Sources/Phosphor/ViewModels/BackupViewModel.swift - Device views
Sources/Phosphor/Views/Device/DeviceOverviewView.swift - Backup views
Sources/Phosphor/Views/Backup/BackupBrowserView.swift - Search state
Sources/Phosphor/ViewModels/UnifiedSearchViewModel.swift
Device management
- Device operations
Sources/Phosphor/Services/DeviceManager.swift - Device identity
Sources/Phosphor/Models/DeviceInfo.swift - Device backend
Sources/Phosphor/Utilities/PyMobileDevice.swift - Command runner
Sources/Phosphor/Utilities/Shell.swift
Backup and content
- Backup operations
Sources/Phosphor/Services/BackupManager.swift - Backup metadata
Sources/Phosphor/Models/BackupInfo.swift - Backup plist parser
Sources/Phosphor/Utilities/PlistParser.swift - Backup manifest
Sources/Phosphor/Utilities/BackupManifest.swift - Manifest database
Sources/Phosphor/Utilities/BackupManifest.swift - Local backups
Exports and diagnostics
- App management
Sources/Phosphor/Services/AppManager.swift - Unified search
Sources/Phosphor/Services/UnifiedSearchService.swift - Message export
Sources/Phosphor/Services/MessageExporter.swift - Contact export
Sources/Phosphor/Services/ContactsExtractor.swift - Photo extraction
Sources/Phosphor/Services/PhotoExtractor.swift - File transfer
Sources/Phosphor/Services/FileTransferManager.swift - Device diagnostics
Sources/Phosphor/Services/DiagnosticsManager.swift - Backup readiness
Sources/Phosphor/Services/ReadinessService.swift
Other components
- Mac user
- iOS device
- Device command tools
Connections 32
- Mac user → App entry: launches
README.md - App entry → Main interface: presents
- Main interface → Device views: shows
- Main interface → Backup views: shows
- Device views → Device state: uses
- Backup views → Backup state: uses
- Device state → Device operations: calls
Sources/Phosphor/ViewModels/DeviceViewModel.swift - Device operations → Device identity: builds
Sources/Phosphor/Services/DeviceManager.swift - Device operations → Device backend: queries
Sources/Phosphor/Services/DeviceManager.swift - Device operations → Command runner: falls back
Sources/Phosphor/Services/DeviceManager.swift - Device backend → Device command tools: invokes
Sources/Phosphor/Utilities/PyMobileDevice.swift - Command runner → Device command tools: runs
Sources/Phosphor/Utilities/Shell.swift - Device command tools → iOS device: connects
- Device state → Backup operations: requests
Sources/Phosphor/ViewModels/DeviceViewModel.swift - Backup state → Backup operations: creates and restores
Sources/Phosphor/ViewModels/BackupViewModel.swift - Backup operations → Device backend: uses primary backend
Sources/Phosphor/Services/BackupManager.swift - Backup operations → Command runner: uses fallback
Sources/Phosphor/Services/BackupManager.swift - Backup operations → Local backups: writes
README.md - Backup metadata → Backup plist parser: parses metadata with
Sources/Phosphor/Models/BackupInfo.swift - Backup state → Backup metadata: loads
Sources/Phosphor/ViewModels/BackupViewModel.swift - Backup state → Backup manifest: browses through
Sources/Phosphor/ViewModels/BackupViewModel.swift - Backup manifest → Manifest database: queries
Sources/Phosphor/Utilities/BackupManifest.swift - Search state → Unified search: requests
Sources/Phosphor/ViewModels/UnifiedSearchViewModel.swift - Unified search → Backup manifest: reads backup index
Sources/Phosphor/Services/UnifiedSearchService.swift - Unified search → Message export: searches messages
Sources/Phosphor/Services/UnifiedSearchService.swift - Unified search → Contact export: searches contacts
Sources/Phosphor/Services/UnifiedSearchService.swift - Mac user → App management: manages apps
README.md - Mac user → Message export: exports conversations
README.md - Mac user → Photo extraction: extracts media
README.md - Mac user → File transfer: transfers files
README.md - Mac user → Device diagnostics: inspects device
README.md - Mac user → Backup readiness: checks readiness
README.md