How mlomb/chat-analytics works
Chat Analytics turns exports from Discord, Messenger, Telegram, or WhatsApp into a downloadable interactive HTML report, with chat data processed locally. The web workflow selects a platform and files, starts generation in a worker, and presents progress and the report for download or local viewing. The repository also documents CLI generation and report areas for messages, language, emoji, links, calls, interaction, sentiment, and timeline. Worker and pipeline excerpts show key generation and report-analysis responsibilities; several connections to unsampled UI and pipeline modules are left unverified.
Main entry points: Steps.tsx Generation steps · WorkerApp.ts Generation worker · WorkerReport.ts Report analysis worker · DatabaseBuilder.ts Database builder
Components 23
Web workflow
- Generation steps
app/components/Steps.tsx - Platform selection
app/components/steps/PlatformSelection.tsx - Export instructions
app/components/steps/ExportInstructions.tsx - File selection
app/components/steps/FilesSelection.tsx - Generation progress
app/components/steps/GenerationProgress.tsx - Report download
app/components/steps/ViewDownloadReport.tsx
Report generation
- Generation worker
app/WorkerApp.ts - CLI generation
lib/CLI.ts - Pipeline entry
pipeline/index.ts - Platform parsers
pipeline/parse/parsers - Parser contract
pipeline/parse/Parser.ts - Database builder
pipeline/process/DatabaseBuilder.ts - Message processing
pipeline/process/MessageProcessor.ts - Language and sentiment
pipeline/process/nlp - Report database
pipeline/process/Types.ts - Database compression
pipeline/compression/Compression.ts
Report analysis
- Report analysis worker
report/WorkerReport.ts - Statistics blocks
pipeline/aggregate/blocks - Report filters
pipeline/aggregate/Filters.ts
Interactive report
- Report interface
report/ReportPage.tsx - Statistics cards
report/components/cards - Charts and visualizations
report/components/viz
Other components
- Report user
Connections 22
- Report user → Generation steps: starts workflow
README.md - Generation steps → Platform selection: shows step
app/components/Steps.tsx - Generation steps → Export instructions: shows step
app/components/Steps.tsx - Generation steps → File selection: shows step
app/components/Steps.tsx - Generation steps → Generation progress: shows progress
app/components/Steps.tsx - Generation steps → Report download: shows result
app/components/Steps.tsx - Generation steps → Generation worker: starts generation
- Generation worker → Pipeline entry: calls generation
app/WorkerApp.ts - Generation worker → Database builder: generates database
- Generation worker → Database compression: generates report
- CLI generation → Pipeline entry: runs generation
- Database builder → Platform parsers: selects parser
- Platform parsers → Parser contract: implements contract
- Database builder → Report database: builds database
- Message processing → Language and sentiment: uses language analysis
- Report analysis worker → Database compression: decompresses database
report/WorkerReport.ts - Report analysis worker → Statistics blocks: requests statistics
- Report analysis worker → Report filters: updates filters
report/WorkerReport.ts - Report interface → Report analysis worker: requests analysis
- Report interface → Statistics cards: presents statistics
- Statistics cards → Charts and visualizations: renders charts
- Report user → Report download: downloads report
README.md