How concord-net/flclash works
FlClash is a cross-platform Clash.Meta proxy client. The principal workflow is importing a profile, configuring proxy/rule behavior, then running traffic through the core in system-proxy or TUN mode; users can monitor live connections, DNS, requests and logs. The supplied tree omits the Flutter application sources, so its profile, backup, editor and live-view subsystems are represented from README capabilities without guessed implementation paths. Android service control and the Go core have stronger source evidence; edges are limited to documented or excerpted relationships.
Main entry points: lib.go Clash.Meta core · ServiceController.kt Service control · VpnService.kt Android VPN · service.rs Global hotkeys
Components 21
Client capabilities
- Client interface
- Profiles
- Profile editor
plugins/rust_api/rust/src/api/editor.rs - Backup restore
- Live views
Proxy runtime
- Clash.Meta core
core/lib.go - Rules and routing
core/service_rules.go - Proxy groups
core/proxy.go - Latency tests
core/delay.go - System proxy
plugins/rust_api/rust/src/api/proxy.rs - TUN mode
core/tun/tun.go
Android integration
- Service control
android/app/src/main/kotlin/com/follow/clash/ServiceController.kt - Service state
android/app/src/main/kotlin/com/follow/clash/ServiceState.kt - Android VPN
android/service/src/main/java/com/follow/clash/service/VpnService.kt - Android core bridge
android/core/src/main/java/com/follow/clash/core/Core.kt - Service modules
android/service/src/main/java/com/follow/clash/service/modules/ServiceModules.kt
Desktop integration
- Global hotkeys
plugins/rust_api/rust/src/hotkey/service.rs - Local IPC
plugins/rust_api/rust/src/ipc/server.rs - Tray menu
plugins/rust_api/rust/src/api/tray.rs
Other components
- User
- WebDAV service
Connections 20
- User → Client interface: uses
README.md - Client interface → Profiles: imports
README.md - Client interface → Backup restore: backs up
README.md - WebDAV service → Backup restore: stores backup
README.md - Client interface → Live views: views activity
README.md - Profiles → Profile editor: edits profile
README.md - Client interface → Clash.Meta core: configures
README.md - Clash.Meta core → Rules and routing: applies rules
README.md - Clash.Meta core → Proxy groups: uses groups
README.md - Clash.Meta core → Latency tests: tests latency
README.md - Clash.Meta core → System proxy: supports mode
README.md - Clash.Meta core → TUN mode: runs mode
README.md - User → Service control: starts proxy
- Service control → Service state: updates state
android/app/src/main/kotlin/com/follow/clash/ServiceController.kt - Service control → Android VPN: starts service
android/app/src/main/kotlin/com/follow/clash/ServiceController.kt - Android VPN → Android core bridge: starts TUN
android/service/src/main/java/com/follow/clash/service/VpnService.kt - Android VPN → Service modules: starts modules
android/service/src/main/java/com/follow/clash/service/VpnService.kt - Global hotkeys → Client interface: emits actions
- Client interface → Tray menu: controls tray
README.md - Local IPC → Client interface: exchanges messages