— React, Python, AI, OpenAI, Gmail API — 3 min read
and let me tell you, I've tried every client under the sun. They're either too cluttered, too slow, or just don't get out of your way. So, I decided to build my own. Meet MailFlowAI.
For someone who lives in their inbox, context switching is the enemy. MailFlowAI is designed to be a modern, AI-powered email client that integrates seamlessly with Gmail. It’s not just about reading emails; it’s about understanding them.
What blows my mind is that I built this entire thing—frontend, backend, AI integration—in roughly 2 days.
I wanted a stack that was fast, type-safe, and scalable. Here's what I went with:
User privacy is massive for me. I chose SQLite specifically because I didn't want to persist sensitive email data in a centralized database. The only drawback is that it resets on every deployment, but for the current scope, it's a worthy trade-off for security.
The goal was a "Brutalist" design—high contrast, distinct, and focused.
The inbox is your command center. I wanted it clean. No distractions, just your mail and the tools to manage it.
This is where things get interesting. I used CopilotKit, and honestly, it felt like cheating. Integrating AI into the frontend was surprisingly easy. It’s not just a chat bot; it understands the context of the app. You can ask it to "Summarize this thread," "Draft a reply," or even "Find emails from last week with attachments."
Reading emails should be a pleasant experience. The detail view is distraction-free, but powerful. You can Reply, Forward, or Delete with a click.
Words are cheap. I used Loom to record a demo—something I've never done before and was super cautious about, but hey, it's out there now! ;)
Building an email client is... hard.
One of the biggest challenges was the sync strategy. Currently, MailFlowAI fetches data directly from Gmail for freshness. This means you always see the latest state, but it can be slower than a fully synced local database for massive inboxes.
Also, dealing with OAuth and Gmail API permissions is always a fun dance 💃. Ensuring user data is secure while providing a seamless login experience was a top priority.
This entire project was built using Google's Antigravity, a next-generation AI-first code editor.
screenshot of the editor in action
Here is why it was a game-changer:
It handled the complexity of a full-stack AI app without breaking a sweat, letting me focus on the bigger picture rather than getting stuck on wiring things together.
I recently came across the term "Forward Deployed Engineer"—someone who works directly with clients to solve problems with an engineering mindset. I believe tools like Antigravity (and yes, I'm a bit biased towards Google products, don't hate me!) or Claude Code are going to be game-changers for these kinds of roles.
They empower developers—especially those with a product or entrepreneurial mindset—to build fully functional, production-ready apps solo. The fact that I could build MailFlowAI in just two days using a free AI editor is proof of that.
I'm far from done, but the future of MailFlowAI is wide open. Here are some ideas I'm toying with:
If you're interested in the code or want to contribute, check it out on MailFlowAI!