ChatLab/ChatLab

Local-first chat history analyzer with AI. | 本地优先的 AI 聊天记录分析工具

What it solves

ChatLab is a desktop application designed to help users analyze and understand their social conversation histories. It solves the problem of fragmented chat data across different platforms (like WhatsApp, Telegram, and Discord) by providing a unified, local-first approach to exploring patterns and extracting insights from these conversations.

How it works

The app uses a multi-stage data pipeline: it detects the format of exported chat records, parses them using a stream-first approach for memory efficiency, and persists them locally. It then combines a SQL engine with AI agents that use function calling (with over 24 tools) to search, summarize, and analyze the records.

Who it’s for

It is intended for individuals who want to privately analyze their own chat histories from various messaging apps without uploading raw data to the cloud.

Highlights

  • Local-first privacy: Raw chat data and settings remain on the user's device.
  • Cross-platform normalization: Supports imports from WhatsApp, LINE, QQ, Discord, Instagram, Telegram, iMessage, and Google Chat.
  • AI-powered analysis: Uses AI agents and tool calling to perform complex queries and analyze chat records with context.
  • Scalability: Built for large histories, utilizing stream parsing and multi-worker processing to handle millions of messages.
  • Visual insights: Provides visual views for interaction frequency, trends, and time patterns.