How chen08209/flclash works
FlClash is a cross-platform Clash.Meta proxy client. The documented user journey is importing a profile, configuring proxy behavior, and starting the proxy; the README also describes live traffic/DNS/log views, backup and restore, and platform-specific controls. The supplied excerpts expose Android service startup and the Go-core bridge, but not the Flutter UI or profile, backup, and live-view implementations, so those capabilities are represented only at the documented subsystem level. Edges are limited to relationships shown in excerpts or explicitly documented in the README.
Main entry points: README.md FlClash client · VpnService.kt VPN service · ServiceController.kt Service controller · lib.go mihomo core
Components 23
App controls
- FlClash client
README.md - Profiles
core/profile_base.go - Profile editor
plugins/rust_api/rust/src/editor - Overrides and rules
core/service_rules.go - Live views
core/server.go - Backup and restore
README.md
Android runtime
- Service state
android/app/src/main/kotlin/com/follow/clash/ServiceState.kt - Service controller
android/app/src/main/kotlin/com/follow/clash/ServiceController.kt - Proxy service
android/service/src/main/java/com/follow/clash/service/ProxyService.kt - VPN service
android/service/src/main/java/com/follow/clash/service/VpnService.kt - Service modules
android/service/src/main/java/com/follow/clash/service/modules/ServiceModules.kt - Network observer
android/service/src/main/java/com/follow/clash/service/NetworkObserver.kt - VPN options
android/service/src/main/java/com/follow/clash/service/models/VpnOptions.kt
Proxy engine
- Core bridge
android/core/src/main/java/com/follow/clash/core/Core.kt - mihomo core
core/lib.go - Rule routing
core/service_rules.go - DNS queries
core/dns_query.go - Core server API
core/server.go
Platform features
- Quick Settings tile
android/app/src/main/kotlin/com/follow/clash/TileService.kt - Desktop hotkeys
plugins/rust_api/rust/src/api/hotkey.rs - Desktop tray
plugins/tray - TUN mode
core/tun/tun.go
Other components
- User
Connections 23
- User → FlClash client: uses
README.md - FlClash client → Profiles: imports
- Profiles → Profile editor: edits
- Profiles → Overrides and rules: configures
- FlClash client → Live views: views
- FlClash client → Backup and restore: backs up
- Service controller → Proxy service: starts service
android/app/src/main/kotlin/com/follow/clash/ServiceController.kt - Service controller → VPN service: starts service
android/app/src/main/kotlin/com/follow/clash/ServiceController.kt - Service controller → Core bridge: invokes core
android/app/src/main/kotlin/com/follow/clash/ServiceController.kt - Service controller → Network observer: starts observer
android/app/src/main/kotlin/com/follow/clash/ServiceController.kt - Proxy service → Service modules: starts modules
android/service/src/main/java/com/follow/clash/service/ProxyService.kt - VPN service → Service modules: starts modules
android/service/src/main/java/com/follow/clash/service/VpnService.kt - VPN service → VPN options: reads options
android/service/src/main/java/com/follow/clash/service/VpnService.kt - VPN service → Core bridge: starts TUN
android/service/src/main/java/com/follow/clash/service/VpnService.kt - Core bridge → mihomo core: bridges calls
- Quick Settings tile → Service state: observes state
android/app/src/main/kotlin/com/follow/clash/TileService.kt - Quick Settings tile → Service controller: toggles via activity
- Desktop hotkeys → FlClash client: integrates with
README.md - Desktop tray → FlClash client: integrates with
README.md - mihomo core → Rule routing: applies rules
- mihomo core → DNS queries: handles DNS
- mihomo core → Core server API: serves API
- VPN service → TUN mode: provides TUN mode
README.md