Currently supported: LINE, Telegram, plus Meta (Messenger, Instagram, and Threads). More platforms may come later.
- Privacy policy: We don't upload anything when you import a chat. Parsing and charts run on your device; the file never leaves the browser.
- Interactive charts: We designed many interactions between the charts. Enjoy exploring your own story.
- Side chat panel: Open the actual messages next to the dashboard, jump to a busy day, and anonymize names before you share.
- Share a snapshot: Export the dashboard as a PNG. No extra caption text.
- Responsive design: The site is built to view on both phones and computers.
- Chinese and English UI: Switch language without leaving the page.
ChatStory is a Next.js App Router app with a static export (output: "export"). There is no API and no database.
Data flows in four stages: file checks → platform parser → local analysis → dashboard.
| Layer | Path | Role |
|---|---|---|
| Routes | src/app/ |
Home, changelog, import guides |
| Shell | src/components/ |
Landing, dashboard layout, chat panel, i18n |
| Charts | src/components/dashboard/ |
One file per visualization, plus share-image export |
| Domain | src/lib/ |
Import, LINE/Meta/Telegram parsers, stats, word tokenization |
| Tests | tests/ |
Parser unit tests, kept out of src/lib/ |
src/
├── app/ # Static pages
├── components/
│ ├── Landing.tsx # File drop
│ ├── Dashboard.tsx # Layout, share, chat panel
│ ├── ChatProvider.tsx # Chats kept in memory
│ └── dashboard/ # Charts
└── lib/
├── import-chat.ts # Type / size checks
├── parse/ # LINE .txt, Meta .json, and Telegram Desktop .json
├── analyze.ts # Stats
└── words.ts # Word clouds
tests/
└── parse/ # LINE, Meta, and Telegram parser tests
- Node.js 22
- npm
# Clone the repo
git clone https://github.com/f964966828/ChatStory.git
# Change directory
cd ChatStory
# Install dependencies
npm install
# Start the dev server
npm run dev
# Open localhost:3000 and you'll seeParser tests live in tests/parse/. After npm install:
# Run all tests
npm test
# Run one file
npx vitest run tests/parse/line.test.ts
npx vitest run tests/parse/meta.test.tsPull requests are welcome.
| Type | Start with | Notes |
|---|---|---|
| Functionality issue | Issue or PR | A bug in import, charts, or display. Say what broke and how you checked the fix. |
| Typos and wording | Issue or PR | README, UI text, import guides, or Chinese / English phrasing. |
| New feature | Issue first | New chart, group chats, another platform, or a large UI / data-flow change. |
Share a proposal on the issue first. A pull request opened before discussion will not be approved.
