freshcrate
Home > AI Agents > ChatLab

ChatLab

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

Description

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

README

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

  • 🚀 Built for large histories: Stream parsing and multi-worker processing keep imports and analysis responsive, even at million-message scale.
  • 🔒 Private by default: Your chat data and settings stay local. No mandatory cloud upload of raw conversations.
  • 🤖 AI that can actually operate on data: Agent + Function Calling workflows can search, summarize, and analyze chat records with context.
  • 📊 Insight-rich visual views: See trends, time patterns, interaction frequency, rankings, and more in one place.
  • 🧩 Cross-platform normalization: Different export formats are mapped into a unified model so you can analyze them consistently.

Usage Guides

Preview

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

Preview Interface

System Architecture

Architecture Principles

  • Local-first by default: Raw chat data, indexes, and settings remain on-device unless you explicitly choose otherwise.
  • Streaming over buffering: Stream-first parsing and incremental processing keep large imports stable and memory-efficient.
  • Composable intelligence: AI features are assembled through Agent + Tool Calling, not hard-coded into one model path.
  • Schema-first evolution: Import, query, analysis, and visualization share a consistent data model that scales with new features.

Runtime Architecture

  • Main Process (control plane): electron/main/index.ts handles lifecycle and windows. electron/main/ipc/ defines domain-scoped IPC, while electron/main/ai/ and electron/main/i18n/ provide shared AI and localization services.
  • Worker Layer (compute plane): electron/main/worker/ runs import, indexing, and query tasks via workerManager, keeping CPU-heavy work off the UI thread.
  • Renderer Layer (interaction plane): Vue 3 + Nuxt UI + Tailwind CSS drive management, private chat, group chat, and analysis interfaces. electron/preload/index.ts exposes tightly scoped APIs for secure process boundaries.

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

  • Pluggable parser architecture: Adding a new import source is mostly an extension in parser/formats/*, without reworking downstream query logic.
  • Full + incremental import paths: streamImport.ts and incrementalImport.ts support both first-time onboarding and ongoing updates.
  • Modular IPC boundaries: Domain-based IPC segmentation reduces cross-layer coupling and limits permission spread.
  • Unified i18n evolution: Main and renderer processes share an i18n system that can evolve with product scope.

Local Development

Requirements

  • Node.js >= 20
  • pnpm

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

Privacy Policy & User Agreement

Before using this software, please read the Privacy Policy & User Agreement.

Community

Please follow these principles before submitting a Pull Request:

  • Obvious bug fixes can be submitted directly.
  • For new features, please submit an Issue for discussion first; PRs submitted without prior discussion will be closed.
  • Keep one PR focused on one task; if changes are extensive, consider splitting them into multiple independent PRs.

Thanks to all contributors:

License

AGPL-3.0 License

Release History

VersionChangesUrgencyDate
v0.17.5## What's New This release focuses on a broad set of bug fixes to improve overall stability. ## 更新内容 修复了大量BUG。 --- Full Changelog: [English](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/en.json) | [中文](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/cn.json) | [日本語](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/ja.json) --- ## Download | Platform | File | |-----------------|-------------| | Mac (Apple Silicon) | [CHigh4/20/2026
v0.17.4## What's New Implemented the full Import API v1 protocol and added hierarchical data source management, now supporting automatic chat history sync. ## 更新内容 实现 Import API v1 完整协议并新增层级数据源管理,现已支持聊天记录自动同步。 --- Full Changelog: [English](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/en.json) | [中文](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/cn.json) | [日本語](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/ja.json) --- #High4/19/2026
v0.17.3## What's New This release adds a language preference tab for private chats, introduces sorting and filtering in the sidebar conversation list, improves AI provider and model configuration, and fixes a time filter reset issue. ## 更新内容 私聊新增语言偏好Tab,侧边栏对话列表支持排序筛选,完善 AI 服务商与模型配置能力,并修复时间筛选重置问题。 --- Full Changelog: [English](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/en.json) | [中文](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/cn.json) | [日本語]High4/18/2026
v0.17.2## What's New This update adds cross-platform data merge and member message merge, strengthens dictionary and update security checks, improves the dark theme experience and logging, and fixes several bugs. ## 更新内容 新增跨平台数据合并与成员消息合并,强化词库与更新安全校验,优化暗色体验与日志能力,以及修复若干BUG。 --- Full Changelog: [English](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/en.json) | [中文](https://github.com/hellodigua/ChatLab/blob/main/docs/public/changelogs/cn.json) | [日本語](https://github.com/helloHigh4/14/2026
v0.17.1## What's New Refactored the Topics module with a new topic card view, improved word cloud keyword filtering and query caching, added remote tokenizer dictionary downloads with Traditional Chinese support, and improved WhatsApp detection. ## 更新内容 重构话题模块并新增话题卡片,优化词云关键词过滤与查询缓存逻辑,支持远程下载分词词库及繁体中文词库,完善 WhatsApp 检测逻辑。 --- Full Changelog: [English](https://github.com/hellodigua/ChatLab/blob/main/docs/changelogs_en.json) | [中文](https://github.com/hellodigua/ChatLab/blob/main/docs/changelogs_cn.jsonHigh4/13/2026
v0.17.0## What's New This release strengthens WhatsApp import parsing and specified-format imports, while refreshing Overview cards and adding sharing, screenshots, and debugging utilities. ## 更新内容 重构并优化总览、视图等卡片的样式,这个版本的审美大幅度提升!并完善 WhatsApp 导入解析逻辑,同时在导入失败后支持指定格式导入,完善了截图与调试能力。 --- Full Changelog: [English](https://github.com/hellodigua/ChatLab/blob/main/docs/changelogs_en.json) | [中文](https://github.com/hellodigua/ChatLab/blob/main/docs/changelogs_cn.json) | [日本語](https://github.com/hellodigua/ChatHigh4/11/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

uix-ai-agent🤖 Generate UI & UX flows for web and mobile apps using natural language prompts with UIX AI Agent, your intelligent design assistant.main@2026-04-21
20xSelf-improving Agent orchestrator for all knowledge workv0.0.68
VSCode-Local-CopilotNo descriptionmain@2026-04-21
mangostudioAI-powered image generation and chat studiomain@2026-04-21
agent-sdk🤖 Build transparent, message-first agents with efficient tool calls, planning, and multi-agent handoffs using the lightweight agent-sdk for Node.js.main@2026-04-21