A simple Chatbot Annual Summary Tool
中文版 | English
A comprehensive chat history analysis tool for AI conversations, providing insights and visualizations of your interaction patterns with AI models.
- Annual Summary: Get a complete overview of your AI chat history with detailed statistics
- Visual Analytics: Interactive charts showing usage patterns, time distributions, and language preferences
- CLI Frontend: A terminal-based interface with interactive menus and rich visualizations (Stacked Bar Charts)
- Multi-Model Support: Analyze conversations across different AI models
- Language Detection: Identify natural languages and programming languages used with high accuracy
- Behavioral Insights: Discover politeness patterns, emoji usage, and interaction styles
- Export Functionality: Save your annual summary as an image
- 2025/12/30: Added CLI Frontend with interactive mode, stacked distribution charts, and improved language detection (Natural/Code separation) 🚀
- Fix bug in quick start on 2025/12/20 🐛 Thanks for bug report from @Su-Zi-Zhan
- Support Claude model on 2025/12/20 🎉
- Support Qwen model on 2025/12/19 🎉
- Support Windows platform on 2025/12/13 🎉 Thanks for bug report from @zengly22
- Python 3.7 or higher
- pip package manager
- Clone this repository:
git clone git@github.com:Pamyt/GPT-Rewind.git
cd GPT-Rewind- Run the application:
- On macOS/Linux:
bash ./start_frontend.sh- On Windows:
.\start_frontend.bat- Open your browser and navigate to
http://localhost:5173
You can now explore your data directly from the terminal using the rewind_cli.py tool.
-
Interactive Mode: Simply run the script without arguments to enter the interactive menu:
python3 rewind_cli.py
Follow the on-screen prompts to select your data file, provider, and the type of analysis you want to see.
-
Command Line Arguments: You can also run specific commands directly:
# View Overview (Models, Languages, Session Counts) python3 rewind_cli.py overview --file data/your_chat_history.json --provider deepseek# View Time Analysis (Monthly Frequency, Hourly Distribution) python3 rewind_cli.py time --file data/your_chat_history.json --provider deepseek
# View Style Analysis (Emoji, Politeness) python3 rewind_cli.py style --file data/your_chat_history.json --provider deepseek
- Download your chat history from the DeepSeek website:
- Go to your DeepSeek account settings
- Find the data export option
- Download your conversation history as a JSON file
-
Upload your chat history:
- Click the "Upload JSON Record" button
- Select your downloaded JSON file
- Wait for the analysis to complete
-
Explore your insights:
- Navigate through different pages using the arrow keys or on-screen buttons
- View your annual overview, AI partners, time patterns, and interaction styles
- Export your summary as an image using the "Save Annual Memory" button
- Download your chat history from the Qwen website:
- Go to your Qwen account settings
- Find the data export option
- Download your conversation history as a JSON file
-
Upload your chat history:
- Click the "Upload JSON Record" button
- Select your downloaded JSON file
- Wait for the analysis to complete
-
Explore your insights:
- Navigate through different pages using the arrow keys or on-screen buttons
- View your annual overview, AI partners, time patterns, and interaction styles
- Export your summary as an image using the "Save Annual Memory" button
- Download your chat history from the Claude website:
- Go to your Claude account settings
- Find the data export option
- Download your conversation history as a JSON file
-
Upload your chat history:
- Click the "Upload JSON Record" button
- Select your downloaded JSON file
- Wait for the analysis to complete
-
Explore your insights:
- Navigate through different pages using the arrow keys or on-screen buttons
- View your annual overview, AI partners, time patterns, and interaction styles
- Export your summary as an image using the "Save Annual Memory" button
The application provides the following REST API endpoints:
GET /- Main web interfacePOST /api/upload- Upload chat history JSON filePOST /api/analyze- Analyze uploaded chat dataGET /health- Health check endpoint
GPT-Rewind/
├── rewind/ # Core analysis modules
│ ├── apis/ # API endpoints for data analysis
│ ├── data_process/ # Data processing utilities
│ └── utils/ # Helper functions
├── frontend/ # Web interface
│ ├── static/ # CSS and JavaScript files
│ └── templates/ # HTML templates
├── data/ # Sample data
├── assets/ # Images and assets
└── tests/ # Test files
Key dependencies include:
- Flask: Web framework
- pandas: Data processing
- plotly: Data visualization
- numpy: Numerical computing
- requests: HTTP client
For a complete list, see requirements.txt.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues:
- Check that your JSON file matches the expected format
- Ensure all dependencies are installed correctly
- Check the server logs for error messages
- Create an issue on GitHub with details about your problem






