How elvich/spoofdpi-app works
SpoofDPI-App is a macOS control and configuration wrapper for the SpoofDPI terminal binary. The user enables the proxy in the main window or menu-bar control; the app ensures the binary is installed, starts it with system-proxy, IPv4-DNS-only, and configured window-size arguments, and surfaces process output/errors. Settings cover network behavior, appearance, and Dock visibility. Edges reflect calls or view composition shown in excerpts, plus the README's stated product purpose; the binary's internals are not sampled.
Main entry points: SpoofDPIManager.swift Proxy manager · spoofdpiAppApp.swift App shell · ContentView.swift Main window · SettingsView.swift Settings tabs
Components 14
App lifecycle
- App shell
spoofdpiApp/spoofdpiAppApp.swift
Proxy control
- Proxy manager
spoofdpiApp/SpoofDPIManager.swift - SpoofDPI binary
spoofdpiApp/Resources/spoofdpi-terminal - Running process
Settings
- Settings tabs
spoofdpiApp/Settings/SettingsView.swift - Network settings
spoofdpiApp/Settings/NetworkSettingsView.swift - App settings
spoofdpiApp/Settings/AppSettingsView.swift - Visual settings
spoofdpiApp/Settings/VisualSettingsView.swift
Presentation
- Main window
spoofdpiApp/ContentView.swift - ASCII background
spoofdpiApp/BackgroundView.swift - Proxy toggle
spoofdpiApp/CustomToggleStyle.swift - Color conversion
spoofdpiApp/Settings/ColorHex.swift
Other components
- Mac user
- macOS services
Connections 20
- Mac user → Main window: controls
spoofdpiApp/ContentView.swift - App shell → Main window: opens
spoofdpiApp/spoofdpiAppApp.swift - App shell → Proxy manager: creates
spoofdpiApp/spoofdpiAppApp.swift - App shell → Settings tabs: opens
spoofdpiApp/spoofdpiAppApp.swift - App shell → Proxy manager: installs binary
spoofdpiApp/spoofdpiAppApp.swift - Main window → Proxy manager: controls
spoofdpiApp/ContentView.swift - Main window → ASCII background: renders
spoofdpiApp/ContentView.swift - Main window → Proxy toggle: styles toggle
spoofdpiApp/ContentView.swift - Proxy manager → SpoofDPI binary: copies and runs
spoofdpiApp/SpoofDPIManager.swift - Proxy manager → Running process: starts and stops
spoofdpiApp/SpoofDPIManager.swift - Running process → Proxy manager: streams output
spoofdpiApp/SpoofDPIManager.swift - Settings tabs → Network settings: embeds
spoofdpiApp/Settings/SettingsView.swift - Settings tabs → App settings: embeds
spoofdpiApp/Settings/SettingsView.swift - Settings tabs → Visual settings: embeds
spoofdpiApp/Settings/SettingsView.swift - Network settings → Proxy manager: sets window size
- App settings → macOS services: changes Dock policy
spoofdpiApp/Settings/AppSettingsView.swift - Visual settings → Color conversion: converts colors
spoofdpiApp/Settings/VisualSettingsView.swift - ASCII background → Color conversion: parses accent
spoofdpiApp/BackgroundView.swift - Proxy toggle → Color conversion: parses accent
spoofdpiApp/CustomToggleStyle.swift - App shell → macOS services: provides menu bar
spoofdpiApp/spoofdpiAppApp.swift