How tswawa/wechatvibe works
WechatVibe is a Windows WeChat chat-analysis client. Users select conversations, inspect history, request message emotion/intent labels, and review saved individual or group portraits. The documented runtime spans the chat UI, a Python application service, read-only WeChat data access, and local Laya or configured API analysis. The README documents those product capabilities; source-index references and excerpts support the internal links shown. The HTTP/UI wiring and several capability modules were not sampled, so those links are omitted or marked unverified.
Main entry points: backend_service.py Backend service · app.js Chat UI · service.py Native reader service · analysis_server.ts Analysis server
Components 21
Desktop experience
- Chat UI
chatui/app.js - Analysis server
bridge/analysis_server.ts - Shared contracts
shared/contracts.ts
Application service
- Backend service
bridge/backend_service.py - History browser
bridge/history_browser.py - Conversation selection
bridge/conversation_selection.py - Message batches
bridge/batch_engine.py
WeChat reader
- WeChat source
bridge/wechat_source.py - Native reader service
native-reader/wr/service.py - Account discovery
native-reader/wr/discovery.py - Message database
native-reader/wr/database.py
Analysis engines
- Local Laya analysis
electron/analysis.ts - Laya agent
electron/laya/agent.ts - Laya tokenizer
electron/laya/tokenizer.ts - API message analysis
electron/api-message-insights.ts - Model connectors
electron/model-connectors.ts - API portrait analysis
electron/api-portrait.ts
Results and profiles
- Analysis storage
bridge/result_store.py - Portrait statistics
bridge/api_portrait_statistics.py - Profile signals
bridge/profile_signals.py
Other components
- User
Connections 22
- User → Chat UI: selects chats
README.md - Chat UI → Analysis server: requests analysis
- Analysis server → Backend service: dispatches requests
- Backend service → WeChat source: reads messages
bridge/backend_service.py - Backend service → History browser: uses history
bridge/backend_service.py - Backend service → Conversation selection: manages selection
bridge/backend_service.py - WeChat source → Native reader service: reads WeChat
bridge/wechat_source.py - Native reader service → Account discovery: discovers accounts
native-reader/wr/service.py - Native reader service → Message database: queries shards
native-reader/wr/service.py - Backend service → Message batches: processes batches
bridge/backend_service.py - Message batches → Analysis storage: persists outcomes
- Backend service → Analysis storage: stores results
bridge/backend_service.py - Backend service → Local Laya analysis: requests local analysis
- Backend service → API message analysis: requests API analysis
- Local Laya analysis → Laya agent: runs inference
electron/analysis.ts - Laya agent → Laya tokenizer: tokenizes input
electron/laya/agent.ts - API message analysis → Model connectors: sends model requests
electron/api-message-insights.ts - Backend service → API portrait analysis: requests portrait analysis
- API portrait analysis → Model connectors: uses model API
- Backend service → Portrait statistics: computes portrait totals
bridge/backend_service.py - Backend service → Profile signals: uses profile signals
bridge/backend_service.py - Chat UI → Shared contracts: validates shared data