{"id":50074741,"url":"https://github.com/chatlab/chatlab","last_synced_at":"2026-06-15T04:01:22.202Z","repository":{"id":331560357,"uuid":"1104370536","full_name":"ChatLab/ChatLab","owner":"ChatLab","description":"Local-first chat history analyzer with AI. | 本地优先的 AI 聊天记录分析工具","archived":false,"fork":false,"pushed_at":"2026-06-14T15:59:55.000Z","size":10278,"stargazers_count":6688,"open_issues_count":15,"forks_count":1427,"subscribers_count":19,"default_branch":"main","last_synced_at":"2026-06-14T17:24:52.157Z","etag":null,"topics":["ai-agent","ai-agents","chat-analyzer","chat-history","data-analysis","data-visualization"],"latest_commit_sha":null,"homepage":"https://chatlab.fun","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChatLab.png","metadata":{"files":{"readme":"README.md","changelog":"changelogs/cn.json","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-11-26T05:54:26.000Z","updated_at":"2026-06-14T17:19:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f35fd91b-a0c6-438a-bc75-1c7f157f1670","html_url":"https://github.com/ChatLab/ChatLab","commit_stats":null,"previous_names":["hellodigua/chatlab","chatlab/chatlab"],"tags_count":58,"template":false,"template_full_name":null,"purl":"pkg:github/ChatLab/ChatLab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatLab%2FChatLab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatLab%2FChatLab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatLab%2FChatLab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatLab%2FChatLab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChatLab","download_url":"https://codeload.github.com/ChatLab/ChatLab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatLab%2FChatLab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34346870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","ai-agents","chat-analyzer","chat-history","data-analysis","data-visualization"],"created_at":"2026-05-22T05:06:14.822Z","updated_at":"2026-06-15T04:01:22.197Z","avatar_url":"https://github.com/ChatLab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://github.com/ChatLab/ChatLab/raw/main/public/images/banner-light.png\"\u003e\n    \u003cimg src=\"https://github.com/ChatLab/ChatLab/raw/main/public/images/banner.png\" alt=\"ChatLab\" title=\"ChatLab\" width=\"500\" /\u003e\n  \u003c/picture\u003e\n\nYour chat history, finally yours.\n\nEnglish | [简体中文](./README.zh-CN.md)\n\n[Official Website](https://chatlab.fun/) · [Docs](https://docs.chatlab.fun/) · [Quick Start](https://docs.chatlab.fun/usage/quick-start) · [Roadmap](https://chatlab.fun/roadmap/tasks) · [Releases](https://github.com/ChatLab/ChatLab/releases)\n\n\u003c/div\u003e\n\nChatLab 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.\n\nCurrently supported: **WhatsApp, LINE, WeChat, QQ, Discord, Instagram, and Telegram**. Coming next: **iMessage, Messenger, and KakaoTalk**.\n\n\u003e New install? Start here: [Getting started](https://docs.chatlab.fun/usage/quick-start)\n\n## Core Features\n\n- 🚀 **Built for large histories**: Stream parsing and multi-worker processing keep imports and analysis responsive, even at million-message scale.\n- 🔒 **Private by default**: Your chat data and settings stay local. No mandatory cloud upload of raw conversations.\n- 🤖 **AI that can actually operate on data**: Agent + Function Calling workflows (24+ tools) can search, summarize, and analyze chat records with context.\n- 📊 **Insight-rich visual views**: See trends, time patterns, interaction frequency, rankings, and more in one place.\n- 🧩 **Cross-platform normalization**: Different export formats are mapped into a unified model so you can analyze them consistently.\n\n## Installation\n\n### Desktop App\n\nDownload the installer for your OS from the [official website](https://chatlab.fun/?type=download) or [GitHub Releases](https://github.com/ChatLab/ChatLab/releases), then double-click to install.\n\n### CLI\n\nRequires Node.js ≥ 20.\n\n```bash\nnpm i chatlab-cli -g\n```\n\nStart ChatLab:\n\n```bash\nchatlab start            # Start API + Web UI, auto-open in browser\nchatlab start --no-open  # Start API + Web UI, skip auto-open\nchatlab start --headless # API only, no Web UI (for scripts / AI Agents)\n```\n\nCommon options: `--port \u003cport\u003e` (default 3110), `--host \u003caddress\u003e`, `--token \u003ctoken\u003e`.\n\nTo run as a persistent background service (auto-start on login + auto-restart on crash):\n\n```bash\nchatlab start --daemon   # Install as system service (macOS / Linux)\nchatlab status           # Check service status\nchatlab stop             # Stop and uninstall service\n```\n\nFor a full walkthrough, see the [Quick Start guide](https://docs.chatlab.fun/usage/quick-start).\n\n## Usage Guides\n\n- [Download Guide](https://chatlab.fun/?type=download)\n- [Chat Record Export Guide](https://docs.chatlab.fun/usage/how-to-export)\n- [Standardized Format Specification](https://docs.chatlab.fun/standard/chatlab-format)\n- [Troubleshooting Guide](https://docs.chatlab.fun/usage/troubleshooting)\n\n## Preview\n\nFor more previews, please visit the official website: [chatlab.fun](https://chatlab.fun/)\n\n![Preview Interface](/public/images/intro_en.png)\n\n## Architecture Overview\n\nChatLab is a pnpm monorepo built on Electron + Vue 3 + Nuxt UI + Tailwind CSS. Core business logic lives in shared packages (`@openchatlab/core`, `@openchatlab/node-runtime`, `@openchatlab/tools`), consumed by both the desktop app and the CLI service — so they stay in sync.\n\nData flows in five stages: **format detection → stream parsing → local persistence → SQL + AI query → visualization**.\n\nFor a deep dive, see the [architecture documentation](https://docs.chatlab.fun/intro).\n\n### Architecture Principles\n\n- **Local-first by default**: Raw chat data, indexes, and settings remain on-device unless you explicitly choose otherwise.\n- **Streaming over buffering**: Stream-first parsing and incremental processing keep large imports stable and memory-efficient.\n- **Composable intelligence**: AI features are assembled through Agent + Tool Calling, not hard-coded into one model path.\n- **Schema-first evolution**: Import, query, analysis, and visualization share a consistent data model that scales with new features.\n\n---\n\n## Local Development\n\nFor complete contributor instructions, see the [Development Guide](https://docs.chatlab.fun/contributing/development).\n\n### Requirements\n\n- Node.js \u003e= 24 \u003c 25\n- pnpm \u003e= 9 \u003c 10\n\n### Setup\n\n```bash\n# Install dependencies\npnpm install\n\n# Run desktop app in dev mode\npnpm dev\n\n# Run CLI in dev mode (apps/cli)\ncd apps/cli \u0026\u0026 pnpm dev\n```\n\nIf Electron encounters exceptions during startup, you can try using `electron-fix`:\n\n```bash\nnpm install electron-fix -g\nelectron-fix start\n```\n\n## Privacy Policy \u0026 User Agreement\n\nBefore using this software, please read the [Privacy Policy \u0026 User Agreement](./src/assets/docs/agreement_en.md).\n\n## Community\n\nPlease follow these principles before submitting a Pull Request:\n\n- Obvious bug fixes can be submitted directly.\n- For new features, please submit an Issue for discussion first; **PRs submitted without prior discussion will be closed**.\n- Keep one PR focused on one task; if changes are extensive, consider splitting them into multiple independent PRs.\n- For local setup, repository structure, checks, and AI collaboration notes, see the [Development Guide](https://docs.chatlab.fun/contributing/development).\n\nThanks to all contributors:\n\n\u003ca href=\"https://github.com/ChatLab/ChatLab/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=ChatLab/ChatLab\" /\u003e\n\u003c/a\u003e\n\n## License\n\nAGPL-3.0 License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatlab%2Fchatlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchatlab%2Fchatlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatlab%2Fchatlab/lists"}