How nizitao/wechatvibe works
WechatVibe is a Windows desktop client for browsing locally stored WeChat conversations and producing message insights and person/group portraits. The main workflow is: select an account and conversations, read paged history, request message or portrait analysis, then view persisted results and progress. Analysis can use local Laya inference or a configured API provider. The graph preserves the documented history, account, model, and portrait branches; some runtime wiring is documented only at product level, so those links cite the README rather than unsampled implementation.
Main entry points: backend_service.py Application service · app.js Chat and settings UI · service.py Native database reader · batch_engine.py Incremental message analysis
Components 20
Desktop experience
- Chat and settings UI
chatui/app.js
Application services
- History browser
bridge/history_browser.py - Application service
bridge/backend_service.py - Conversation selection
bridge/conversation_selection.py - Incremental message analysis
bridge/batch_engine.py - Portrait statistics
bridge/api_portrait_statistics.py
WeChat data access
- WeChat source adapter
bridge/wechat_source.py - Native database reader
native-reader/wr/service.py - Account discovery
native-reader/wr/discovery.py - Decrypted SQLite queries
native-reader/wr/database.py
Analysis engines
- Local Laya analysis
electron/analysis.ts - Laya inference runtime
electron/laya/agent.ts - API message insights
electron/api-message-insights.ts - API portrait evidence
electron/api-portrait-evidence.ts - Model connectors
electron/model-connectors.ts
Persistent state
- Analysis and portrait store
bridge/result_store.py - Batch progress state
bridge/batch_state.py
Other components
- User
- Configured model service
- Local WeChat databases
Connections 22
- User → Chat and settings UI: uses
README.md - Chat and settings UI → Application service: requests analysis
README.md - Chat and settings UI → History browser: browses history
README.md - Chat and settings UI → Conversation selection: selects conversations
README.md - Application service → WeChat source adapter: loads conversations
bridge/backend_service.py - Application service → Incremental message analysis: runs incremental analysis
bridge/backend_service.py - Application service → Portrait statistics: coordinates portraits
bridge/backend_service.py - WeChat source adapter → Native database reader: reads account data
bridge/wechat_source.py - Native database reader → Account discovery: discovers accounts
native-reader/wr/service.py - Native database reader → Decrypted SQLite queries: queries shards
native-reader/wr/service.py - Native database reader → Local WeChat databases: reads
README.md - Incremental message analysis → Analysis and portrait store: stores outcomes
bridge/backend_service.py - Incremental message analysis → Batch progress state: tracks batches
bridge/batch_engine.py - Application service → Analysis and portrait store: loads saved results
bridge/backend_service.py - Application service → Local Laya analysis: requests local inference
README.md - Local Laya analysis → Laya inference runtime: runs inference
electron/analysis.ts - Application service → API message insights: requests API insights
README.md - Application service → API portrait evidence: requests API portraits
README.md - API message insights → Model connectors: generates with
electron/api-message-insights.ts - API portrait evidence → Model connectors: generates with
electron/api-portrait-evidence.ts - Model connectors → Configured model service: sends requests
README.md - Portrait statistics → Analysis and portrait store: persists portraits
bridge/backend_service.py