How exalex/ciphertalk works
CipherTalk is an Electron desktop application for viewing, searching, analyzing, and exporting WeChat chat history, with AI summaries and an MCP interface for agent clients. The main workflow is user → chat interface → Electron data services → rendered messages; separate branches support analytics, export, AI, and MCP access. The sampled excerpts confirm several service implementations and frontend calls, but do not expose the full IPC dispatch or all page-to-service wiring; those links are omitted or marked unverified.
Main entry points: readService.ts MCP data tools · aiService.ts AI summary service · chatService.ts Chat history service · App.tsx App routing
Components 18
Desktop interface
- App routing
src/App.tsx - Chat and search
src/pages/ChatPage.tsx - Settings and AI options
src/pages/SettingsPage.tsx - Frontend IPC services
src/services/ipc.ts
Chat data
- Chat history service
electron/services/chatService.ts - Chat database
electron/services/wcdbService.ts - Application configuration
electron/services/config.ts
Analysis and export
- Chat analytics
electron/services/analyticsService.ts - Group analytics
electron/services/groupAnalyticsService.ts - Annual reports
electron/services/annualReportService.ts - Chat export
electron/services/exportService.ts
AI summaries
- AI summary service
electron/services/ai/aiService.ts - AI provider integrations
electron/services/ai/providers - AI history database
electron/services/ai/aiDatabase.ts
MCP access
- MCP server
electron/services/mcp/server.ts - MCP data tools
electron/services/mcp/readService.ts
Other components
- CipherTalk user
- MCP host
Connections 18
- CipherTalk user → App routing: opens app
- App routing → Chat and search: routes to
src/App.tsx - Chat and search → Frontend IPC services: requests data
- Frontend IPC services → Chat history service: dispatches requests
- Chat history service → Chat database: reads chat data
- CipherTalk user → Chat analytics: views insights
- CipherTalk user → Group analytics: views group insights
- CipherTalk user → Annual reports: views reports
- CipherTalk user → Chat export: exports history
- CipherTalk user → AI summary service: requests summary
- AI summary service → AI provider integrations: selects provider
electron/services/ai/aiService.ts - AI summary service → AI history database: stores history
electron/services/ai/aiService.ts - Settings and AI options → Application configuration: configures options
- MCP host → MCP server: starts server
- MCP server → MCP data tools: registers tools
electron/services/mcp/server.ts - MCP data tools → Chat history service: reads conversations
electron/services/mcp/readService.ts - MCP data tools → Chat analytics: requests statistics
electron/services/mcp/readService.ts - MCP data tools → Chat export: requests exports
electron/services/mcp/readService.ts