How mihomo-party-org/clash-party works
Clash Party is an Electron Mihomo GUI. Users manage proxy profiles and routing in the renderer; requests cross the preload IPC bridge to main-process configuration and core-management services, which apply settings to Mihomo and the operating system. The README also identifies Smart Core, Tun, Sub-Store, WebDAV backup/restore, themes, and configuration overrides as product capabilities. The graph combines those documented capabilities with sampled startup, configuration, core, and IPC evidence; unsampled subsystem wiring is left out where uncertain.
Main entry points: manager.ts Core manager · ipc.ts Renderer IPC · App.tsx Renderer app · mihomoApi.ts Mihomo API
Components 23
Desktop interface
- Renderer app
src/renderer/src/App.tsx - Profiles UI
src/renderer/src/pages/profiles.tsx - Settings UI
src/renderer/src/pages/settings.tsx - Preload IPC
src/preload/index.ts - Renderer IPC
src/renderer/src/utils/ipc.ts - Traffic views
src/renderer/src/pages/traffic.tsx
Configuration workflows
- App configuration
src/main/config/app.ts - Profiles and overrides
src/main/config/profile.ts - Simple mode compiler
src/main/simple/service.ts
Mihomo runtime
- Core manager
src/main/core/manager.ts - Mihomo API
src/main/core/mihomoApi.ts - System proxy and Tun
src/main/sys/sysproxy.ts
Product integrations
- Smart Core
src/main/core/smartModel.ts - Sub-Store services
src/main/resolve/server.ts - WebDAV backup
src/main/resolve/backup.ts - Plugin client
src/main/resolve/plugin/index.ts
Network observability
- Traffic recorder
src/main/traffic/recorder.ts - Traffic database
src/main/traffic/database-worker.ts
Other components
- User
- Mihomo core
- Plugin gateway
deploy/gateway/src/server.mjs - Profile sources
- WebDAV service
Connections 26
- User → Renderer app: uses
- Renderer app → Profiles UI: opens
- Renderer app → Settings UI: opens
- Profiles UI → Renderer IPC: requests changes
- Settings UI → Renderer IPC: requests settings
- Traffic views → Renderer IPC: requests traffic
- Renderer IPC → Preload IPC: invokes
- Preload IPC → App configuration: dispatches IPC
- App configuration → Core manager: supplies configuration
- Profiles and overrides → Core manager: supplies profiles
- Simple mode compiler → Core manager: compiles runtime config
- Core manager → Mihomo core: starts and manages
- Core manager → Mihomo API: starts API streams
- Mihomo API → Mihomo core: queries and controls
- Core manager → System proxy and Tun: coordinates runtime
- System proxy and Tun → Mihomo core: configures proxy mode
- Smart Core → Core manager: provides smart config
- Core manager → Sub-Store services: starts services
- User → WebDAV service: requests backup
- WebDAV service → WebDAV backup: uses
- User → Profile sources: selects source
- Profile sources → Profiles and overrides: provides profile
- Plugin client → Plugin gateway: calls gateway
- Mihomo API → Traffic recorder: streams traffic
- Traffic recorder → Traffic database: records samples
- Traffic views → Traffic database: queries aggregates