Back
gh

hellodigua/ChatLab: Rediscover your social memories with local, AI-powered analysis. 本地化的聊天记录分析工具,通过 AI Agent 回顾你的社交记忆。

Rediscover your social memories with local, AI-powered analysis. 本地化的聊天记录分析工具,通过 AI Agent 回顾你的社交记忆。 - hellodigua/ChatLab

by hellodigua github.com 601 words
View original

ChatLab

Rediscover your social memories with private, AI-powered analysis.

English | 简体中文 | 繁體中文 | 日本語

Official Website · Download · Documentation · Roadmap · Issue Submission

ChatLab is an open-source desktop app for understanding your social conversations. It combines a flexible SQL engine with AI agents so you can explore patterns, ask better questions, and extract insights from chat data, all on your own machine.

Currently supported: WhatsApp, LINE, WeChat, QQ, Discord, Instagram, and Telegram. Coming next: iMessage, Messenger, and KakaoTalk.

Core Features

Usage Guides

Preview

For more previews, please visit the official website: chatlab.fun

Preview Interface

System Architecture

Architecture Principles

Runtime Architecture

Data Pipeline

  1. Ingestion: parser/ detects file format and dispatches to the matching parser module.
  2. Persistence: Stream-based writes populate core local entities: sessions, members, and messages.
  3. Indexing: Session- and time-oriented indexes are built for timeline navigation and retrieval.
  4. Query & Analysis: worker/query/* powers activity metrics, interaction analysis, SQL Lab, and AI-assisted exploration.
  5. Presentation: The renderer turns query output into charts, rankings, timelines, and conversational analysis flows.

Extensibility & Reliability


Local Development

Requirements

Setup

# install dependencies
pnpm install

# run electron app in dev mode
pnpm dev

If Electron encounters exceptions during startup, you can try using electron-fix:

npm install electron-fix -g
electron-fix start

Contributing

Please follow these principles before submitting a Pull Request: