A sophisticated, self-hosted analytics platform that transforms chat exports into comprehensive behavioral, temporal, and content-based insights. Built with a modular strategy pattern architecture for extensible analysis capabilities.
Chat Intelligence is an open-source solution that works with any structured chat JSON export, providing deep analytics without platform dependencies. Whether you're analyzing group dynamics, communication patterns, or content trends, this platform delivers actionable insights through interactive visualizations.
- Dominance Index: Measure participant influence and control in conversations
- Engagement Metrics: Visualize participation patterns through pie charts
- Response Time Analysis: Track communication latency and responsiveness
- Weekly/Monthly Trends: Identify recurring communication cycles
- Moving Averages: Smooth out noise to reveal underlying patterns
- Periodicity Heatmaps: Discover optimal communication times and patterns
- Filterable Timeline: Interactive exploration of message flow over time
- Word Frequency Analysis: Identify trending topics and vocabulary patterns
- Content Classification: Automatic categorization of message themes
- Anomaly Detection: Spot unusual spikes or patterns in communication
- Peak Detection: Automatically identify significant conversation peaks
- Time Series Analysis: Comprehensive temporal data exploration
- Interactive Visualizations: Dynamic charts with filtering and zoom capabilities
The platform follows a clean, modular architecture designed for scalability and maintainability:
- Streamlit Dashboard: Single-page application with intuitive UI
- Real-time Updates: Dynamic chart rendering based on user interactions
- Responsive Design: Optimized for various screen sizes
- Strategy Pattern: Modular chart strategies for easy extension
- Lazy Loading: Efficient data processing with on-demand computation
- Caching Layer: Optimized performance through intelligent caching
- Universal Parser: Platform-agnostic chat data ingestion
- Structured Processing: Clean data transformation and normalization
- Error Handling: Robust parsing with comprehensive error reporting
-
Install uv (Python package manager)
curl -Ls https://astral.sh/uv/install.sh | sh -
Clone and setup the project
git clone <repository-url> cd chatIntelligence uv sync
-
Launch the application
uv run streamlit run src/app.py
Option 1: Pull from GitHub Container Registry
# Pull the latest pre-built image
docker pull ghcr.io/netphantom/chatintelligence:latest
# Run the application
docker run -p 8501:8501 ghcr.io/netphantom/chatintelligence:latestOption 2: Build locally
# Build the container
docker build -t chat-intelligence .
# Run the application
docker run -p 8501:8501 chat-intelligencechatIntelligence/
βββ src/
β βββ app.py # Main application entry point
β βββ controller/
β β βββ TelegramParser.py # Chat data parsing logic
β β βββ __init__.py
β βββ view/
β βββ DashboardApp.py # Streamlit dashboard implementation
β βββ charts/
β β βββ ChartStrategy.py # Base strategy interface
β β βββ DominanceIndexStrategy.py # Dominance analysis
β β βββ EngagementPieStrategy.py # Engagement visualization
β β βββ FilterableTimelineStrategy.py # Interactive timeline
β β βββ MovingAverageStrategy.py # Trend analysis
β β βββ PeakAnomalyStrategy.py # Anomaly detection
β β βββ PeriodicityHeatmapStrategy.py # Time pattern analysis
β β βββ ResponseTimeStrategy.py # Response time metrics
β β βββ TimeSeriesPlotStrategy.py # Basic time series
β β βββ WordFrequencyStrategy.py # Content analysis
β β βββ __init__.py
β βββ __init__.py
βββ pyproject.toml # Project configuration and dependencies
βββ Dockerfile # Container build configuration
βββ .github/
β βββ workflows/
β βββ deploy.yml # CI/CD pipeline
βββ README.md # This documentation
βββ LICENSE # MIT License
No environment variables required for basic operation.
- Logging Level: Control verbosity of application logs
- Cache Settings: Tune performance parameters (future feature)
- Chart Defaults: Customize visualization preferences
- Strategy Pattern: Extensible analytics modules for easy feature addition
- Separation of Concerns: Clear distinction between UI, logic, and data layers
- Stateless Execution: Efficient resource usage with minimal memory footprint
- Lazy Evaluation: Compute analytics only when needed
- Modular Architecture: Independent components for maintainability
- Frontend: Streamlit for rapid web application development
- Backend: Python 3.13+ with modern async capabilities
- Data Processing: Pandas for efficient data manipulation
- Visualization: Plotly for interactive, publication-quality charts
- Package Management: uv for fast, reliable dependency management
- AI-powered conversation summaries
- PDF report generation
- Real-time streaming analysis
- Multi-chat comparison dashboard
- Advanced sentiment analysis
- Custom chart strategy builder
- Integration with popular chat platforms
- Team collaboration features
We welcome contributions! Please see our contributing guidelines for details on:
- Code style and standards
- Testing requirements
- Pull request process
- Issue reporting
This project is licensed under the MIT License - see the LICENSE file for details.
