💌 Threadless — From Inbox Chaos to Instant Clarity
Built for the Google Hackathon | Open Source | Powered by Prompt API + Firebase
🚀 About the Project
Threadless is a Chrome extension that brings the power of AI summarization directly into your Gmail inbox. It was designed to solve a simple but universal problem — email overload.
We all know how painful it is to open a long Gmail thread on a Monday morning and scroll endlessly to understand the latest update. Threadless makes this effortless — it summarizes long email threads into clean, structured insights in just a few seconds.
💡 Inspiration
The idea came from our own daily frustration — reading through long threads, repetitive replies, and irrelevant disclaimers. While Gmail filters help organize emails, they don’t help you understand the context.
We wanted to build something that not only reads but also comprehends — using AI to summarize meaningfully, not mechanically.
That’s how Threadless was born.
🧩 How We Built It
Tech Stack:
- Frontend: Chrome Extension (JavaScript, HTML, CSS)
- Backend: Firebase (for authentication, storage, and analytics)
- AI Core: Built using the
Prompt APIfor high-speed, non-streamed summarization - Database: Firestore (for caching, metadata, and summary storage)
Flow:
- The extension first checks Firebase for any existing summaries of the opened thread.
- If not found, it extracts the incoming email directly from Gmail’s DOM.
- The email is preprocessed — removing signatures, HTML tags, disclaimers, and repeated replies.
- The text is passed through the Prompt API for AI summarization:
- Short mode: Quick highlights
- Full mode: Detailed context summary
- The results are stored back in Firebase for caching and analytics.
// Example: Trigger summarizer
const summary = await summarizeText(emailContent, "short");
await saveToFirebase(summary);
🧭 How to Run / Instructions
To set up and run Threadless locally:
1️⃣ Clone the repository:
git clone https://github.com/your-repo/threadless.git
2️⃣ Open Google Chrome → Extensions (chrome://extensions/)
3️⃣ Enable Developer Mode (toggle on top right)
4️⃣ Click Load Unpacked
5️⃣ Select the project folder (/threadless)
6️⃣ Pin the Threadless extension from the toolbar
7️⃣ Open Gmail, and Threadless will automatically activate inside your inbox!
8️⃣ Click on the extension icon to summarize any email thread.
🧠 What We Learned
- Integrating Prompt API efficiently for non-streamed summarization taught us how to balance speed vs. quality.
- Handling Gmail’s complex HTML email structure required smart preprocessing.
- Firebase’s real-time sync was a perfect fit for lightweight, serverless caching.
We also learned the importance of UX simplicity — users shouldn’t need to click 10 buttons to get value. Just open the mail, and let Threadless do the rest.
⚙️ Challenges Faced
- Managing asynchronous data flow between the extension scripts and Firebase.
- Handling HTML-heavy emails with inline styles, nested quotes, and weird formatting.
- Avoiding duplicate summaries while maintaining real-time performance.
- Designing a clean AI prompt that works across different email tones and formats.
Even debugging Chrome extensions required patience — from permissions to background script messaging.
🔭 Future Scope
- Smart Reply Generation: AI-generated draft responses based on summarized context.
- Semantic Search: Retrieve past email summaries using meaning, not just keywords.
- Dashboard: Visualize summary trends, latency, and token usage.
🧮 Fun Math (because we can 😎)
We even modeled summary latency as an optimization equation:
$$ T_{total} = T_{preprocess} + T_{prompt} + T_{firebase} $$
Where minimizing ( T_{prompt} ) through caching gave a 40% latency improvement overall.
❤️ Open Source
Threadless is fully open source — because we believe AI productivity tools should be transparent, educational, and community-driven.
👉 Contribute on GitHub Let’s make inboxes smarter together.
Tagline: Threadless — From Inbox Chaos to Instant Clarity.
Built With
- javascript
- promptapi
- summarizerapi