How lifearchiveproject/wechatdataanalysis works
WeChatDataAnalysis is a desktop and web-style application for decrypting and analyzing WeChat data. The main user journey is to select/import local account data, decrypt it, browse messages and other records, then search, export, or generate an annual summary. The README also documents live chat updates, AI summaries and alerts, optional semantic search, media/voice capabilities, and advanced paid online actions. The graph reflects those documented product branches and sampled backend relationships; several frontend-to-backend links are documented only at the product level.
Main entry points: backend_entry.py Backend API · app.vue Application UI · chat_export_service.py Chat Export · wechat_decrypt.py Database Decryption
Components 24
Desktop Runtime
- Desktop Shell
desktop/src/main.cjs - Backend API
src/wechat_decrypt_tool/backend_entry.py - Application UI
frontend/app.vue
Data Access
- macOS Key Capture
macos-key-extractor/key_extractor/app.py - Database Decryption
src/wechat_decrypt_tool/wechat_decrypt.py - Account Identity
src/wechat_decrypt_tool/account_identity.py - Native Core
src/wechat_decrypt_tool/native_core_client.py - Live Chat Reading
src/wechat_decrypt_tool/wcdb_realtime.py
Browsing & Export
- Chat Browsing
frontend/pages/chat/[[username]].vue - Message Formatting
src/wechat_decrypt_tool/chat_helpers.py - Chat Export
src/wechat_decrypt_tool/chat_export_service.py - Record Exports
src/wechat_decrypt_tool/sns_export_service.py - Local Search
src/wechat_decrypt_tool/local_search/service.py
Analysis & AI
- Annual Summary
src/wechat_decrypt_tool/wrapped/service.py - AI Summaries
src/wechat_decrypt_tool/ai/service.py - Voice Transcription
src/wechat_decrypt_tool/voice_transcription.py - Advanced Actions
src/wechat_decrypt_tool/routers
Shared Services
- Media Resolution
src/wechat_decrypt_tool/media_helpers.py - Export Integrity
src/wechat_decrypt_tool/export_integrity.py - Runtime Storage
src/wechat_decrypt_tool/ai/storage.py - Runtime Configuration
src/wechat_decrypt_tool/runtime_settings.py - Application Paths
src/wechat_decrypt_tool/app_paths.py - Logging
src/wechat_decrypt_tool/logging_config.py
Other components
- User
Connections 33
- User → Desktop Shell: launches
README.md - Desktop Shell → Backend API: starts
desktop/src/main.cjs - User → Application UI: uses
README.md - Application UI → Backend API: requests data
- User → macOS Key Capture: captures key
macos-key-extractor/key_extractor/app.py - macOS Key Capture → Database Decryption: provides key
- Backend API → Database Decryption: decrypts data
README.md - Database Decryption → Account Identity: identifies account
- Backend API → Native Core: uses native core
- Backend API → Live Chat Reading: reads live chats
README.md - Application UI → Chat Browsing: renders chats
README.md - Backend API → Message Formatting: formats messages
- Backend API → Chat Export: exports chats
README.md - Chat Export → Media Resolution: resolves media
src/wechat_decrypt_tool/chat_export_service.py - Chat Export → Export Integrity: checks integrity
src/wechat_decrypt_tool/chat_export_service.py - Backend API → Record Exports: exports records
README.md - Application UI → Local Search: searches records
README.md - Backend API → Local Search: indexes locally
src/wechat_decrypt_tool/local_search/service.py - Application UI → Annual Summary: shows summary
README.md - Backend API → Annual Summary: builds summary
README.md - Application UI → AI Summaries: requests AI
README.md - Backend API → AI Summaries: runs summaries
README.md - AI Summaries → Runtime Storage: stores state
- Application UI → Voice Transcription: requests transcription
README.md - Backend API → Voice Transcription: transcribes audio
- User → Advanced Actions: uses premium actions
README.md - Backend API → Advanced Actions: routes actions
- Chat Export → Native Core: exports securely
- Voice Transcription → Media Resolution: reads media
src/wechat_decrypt_tool/voice_transcription.py - Local Search → Runtime Storage: stores index state
src/wechat_decrypt_tool/local_search/service.py - Backend API → Runtime Configuration: loads settings
- Backend API → Application Paths: resolves paths
- Backend API → Logging: configures logs
src/wechat_decrypt_tool/logging_config.py