u/noick-22

I built an experimental TypeScript SDK that uses Gmail threads as a lightweight persistence layer
▲ 0 r/nextjs+1 crossposts

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

u/noick-22 — 19 hours ago
▲ 30 r/nextjs

At this point I’m convinced developers will use literally anything as a datastore if you give them enough free tier and caffeine.

Somebody just created something that could literally save you a stupid amount of money.

I’m not gonna ruin the curiosity by explaining it here — go see it for yourself:

https://github.com/naitik2004/GmailDB
npm install gmaildb

u/noick-22 — 1 day ago