Friendship Wrapped
WhatsApp Chat Analyzer
Overview
Friendship Wrapped brings the joy of 'Spotify Wrapped' to personal friendships by analyzing exported WhatsApp chat histories and generating highly visual, shareable stories.
The Problem
People generate massive amounts of interesting text data with their friends over years, but have no way to visualize or celebrate those communication patterns.
The Solution
A local-first analytical engine that parses raw text logs, extracts sentiment, word frequencies, and active hours, and feeds that data into a beautiful React-based slideshow presentation.
Technology
Frontend
- React
- Framer Motion
- Tailwind CSS
Tools
- Regex
- Web Workers
Raw Export
WhatsApp .txt Upload
Worker Thread
Non-blocking Web Worker
Lexical Matrix
Regex Tokenizer & Sentiment
Story Synthesis
Framer Motion Slideshow
Key Capabilities
Local Processing
Total privacy—chat files are parsed in the browser, never sent to a server.
Statistical Insights
Discover who texts first, most used emojis, and peak conversation hours.
Story UI
Smooth, interactive story format built with Framer Motion.
Obstacles Faced
- Moved the heavy text parsing (often 10MB+ of text) to a Web Worker to prevent main thread blocking.
Key Takeaways
- Web Workers are essential for any heavy computation on the frontend to prevent browser freezing.
Future Improvements
- Support for iMessage and Telegram exports.
- More dynamic animation transitions.
- Export to video feature.
