
I built an experimental TypeScript SDK that uses Gmail threads as a lightweight persistence layer
Originally started as a joke, but it turned into an interesting engineering experiment around:
Basically I’m trying to use Gmail like a digital storage box 😭
Normally apps need lots of separate services:
- one for database
- one for file uploads
- one for storage
My experiment is:
“What if Gmail could handle all of that?”
So:
- the app secretly stores data inside emails
- folders/labels organize the data
- attached files/images work like cloud storage
Meaning apps could theoretically run using just a Google account + Gmail API.
It’s mostly a fun engineering experiment, not meant to replace real databases 😭
But it’s been surprisingly interesting to build. And soon it will be ready for production based level too.
Curious what scaling/security problems people would expect from this kind of architecture.
Here’s the repo if you want to check it out yourself:
https://github.com/naitik2004/GmailDB