How 525815266/yyb-go-enhanced works
YYB Go Enhanced is a self-hosted WeChat account-management and AppB protocol service. A browser user logs in, scans a QR code, and the service exchanges the authorization result for account credentials, stores the account, and exposes account and protocol operations. Separate branches cover per-account proxy and credential renewal, automation-panel task management, and the curated script collection. The sampled source confirms the server entry point, QR-to-login-buffer use, panel driver delegation, and persistence responsibilities; several feature links are based on README descriptions rather than inspected handlers.
Main entry points: app.go HTTP API · panel_manager.go Panel drivers · runs.go Run management · main.go HTTP server
Components 25
Web service
- HTTP server
cmd/yyb-go/main.go - HTTP API
internal/httpapi/app.go
Accounts and auth
- Account APIs
internal/httpapi/account_status.go - Login and users
internal/httpapi/auth.go - User sessions
internal/auth/store.go - Account store
internal/store/store.go - QR login
internal/qr/qr.go - Proxy settings
internal/httpapi/proxy_profiles.go - Proxy profiles
internal/store/proxy_profiles.go - Credential renewal
internal/httpapi/keepalive.go
WeChat protocol
- OAuth URL
internal/oauth/authorize.go - Protocol endpoints
internal/httpapi/app.go - Login buffers
internal/protocol/loginbuffer.go - MMTLS transport
internal/protocol/mmtls_client.go
Automation and panels
- Panel integration
internal/httpapi/panel.go - Panel drivers
internal/httpapi/panel_manager.go - Account scripts
scripts - Run management
internal/httpapi/runs.go - Run records
internal/store/runs.go
Operations
- Maintenance API
internal/httpapi/maintenance.go - Host maintenance agent
packaging/maintenance/agent.py - Version checks
internal/httpapi/version.go
Other components
- Browser user
- WeChat services
- QL / Daidai / Arcadia
Connections 21
- Browser user → HTTP server: uses console
- HTTP server → HTTP API: creates app
- HTTP API → QR login: starts QR login
- QR login → Login buffers: fetches credentials
- Login buffers → MMTLS transport: uses transport
- MMTLS transport → WeChat services: sends protocol
- HTTP API → WeChat services: serves protocol calls
- HTTP API → OAuth URL: builds OAuth URL
- HTTP API → Account APIs: routes account requests
- Account APIs → Account store: reads and writes accounts
- HTTP API → Login and users: routes auth requests
- Login and users → User sessions: manages users and sessions
- Proxy settings → Proxy profiles: stores proxy settings
- Credential renewal → Account store: renews account credentials
- Panel integration → Panel drivers: delegates panel actions
- Panel drivers → QL / Daidai / Arcadia: calls panel API
- QL / Daidai / Arcadia → Account scripts: pulls scripts
- Run management → Panel drivers: manages panel tasks
- Run management → Run records: stores run data
- Maintenance API → Host maintenance agent: submits maintenance jobs
- HTTP API → Version checks: serves version checks