Modern Creator
Indie Hacker News · YouTube

Someone basically open-sourced Google Workspace (8k stars)

A five-minute tour of Mailflare, an open-source mail, calendar and drive suite you run on your own Cloudflare account, and the real limits of its free edition.

Posted
2 days ago
Duration
Format
Review
educational
Views
16.6K
247 likes
Big Idea

The argument in one line.

Mailflare lets a solo user or small team replace per-seat Google Workspace billing with mail, calendar, booking and files on their own Cloudflare account, as long as someone is willing to own the server.

Who This Is For

Read if. Skip if.

READ IF YOU ARE…
  • A freelancer or solo founder paying for a single Google Workspace seat just to get mail on their own domain plus scheduling.
  • A small agency or team of five or so that is watching per-user Workspace costs grow with every hire and has someone technical on staff.
  • A builder who wants to see how a modern open-source app runs on Cloudflare Workers, D1 and R2 or as a single Docker container.
SKIP IF…
  • Nobody on your team will look after a server, since mail is how you recover every other account.
  • Your team lives in shared Docs and Meet video calls all day, because Mailflare has neither.
TL;DR

The full version, fast.

Mailflare is an open-source copy of the parts of Google Workspace small teams use: mail on your own domain, calendar, public booking pages, drive and an AI assistant reachable over MCP. It runs as a Next.js app on a Cloudflare Worker with D1 and R2, or as one Docker container with SQLite. The free self-hosted edition covers one account, and team accounts need a $249 one-time license. Mail apps connect over JMAP only, there is no antivirus, and nothing replaces Docs or Meet. It suits solo users and agencies with someone to run it.

Free for members

Chat with this breakdown — free.

Sign in and you get 23 free chat messages on us — ask for the hook, quote a framework, find the exact transcript moment, generate a markdown action plan. Bring your own key when you want unlimited.

Create a free account →
Chapters

Where the time goes.

00:00 – 00:32

01 · Google Workspace, self-hosted

The pitch: per-seat billing versus an open-source copy you deploy yourself.

00:32 – 01:01

02 · The README

Screenshots, the cost table, and a prompt that has an AI agent do the whole install.

01:01 – 02:00

03 · What Google charges and the numbers

Workspace plan pricing, the $840 a year example for five people, and Mailflare's hosted and self-hosted costs.

02:00 – 02:54

04 · What you get

Mail with routing rules, calendar, booking page, drive, AI assistant over MCP, and import tools.

02:54 – 03:35

05 · How it's built

Next.js on a Cloudflare Worker with D1, R2 and queues, or one Docker container with SQLite.

03:35 – 04:01

06 · Install

Deploy button, scoped API token, setup page, and the MX record switch.

04:01 – 04:32

07 · This week

Version 0.5.7 security release and 0.5.6 features.

04:32 – 05:13

08 · What's not free

One account limit, $249 team license, JMAP only, no antivirus, no Docs or Meet.

05:13 – 05:43

09 · Who it's for

Solo users and agencies with a spare domain; everyone else stays on Google.

Atomic Insights

Lines worth screenshotting.

  • Google bills Workspace per person per month, so the cost grows with every hire, while a self-hosted setup has no per-seat license fee.
  • Booking pages only come with Google Business Standard at $14 per user, so five people on Standard pay $840 a year.
  • Cloudflare Email Routing receives mail for free, and Resend's free tier covers 3,000 sent emails a month.
  • Every AI draft in Mailflare waits for a human to approve it, and an MCP key can only request a send, never send directly.
  • Two releases in two days is good for features but means the code you deploy today looks different by next week.
  • Changing your password in Mailflare now revokes every API and MCP key on the account.
  • A self-hosted mail server fails in a way that locks you out of recovery for every other account you own.
  • The free edition covers one account; shared mailboxes and extra team accounts need the $249 one-time team license.
Takeaway

What self-hosting Workspace really costs you

WHAT TO LEARN

Replacing Google Workspace can cut per-seat bills to near zero, but the saving is paid for in server upkeep, protocol gaps and missing apps.

  • Per-seat pricing grows with headcount: five people on Google Business Standard pay $840 a year, versus a $249 one-time Mailflare team license.
  • Receiving mail on Cloudflare is free and sending through Resend's free tier gives 3,000 emails a month, which is enough for many small teams.
  • Check protocol support before switching: Mailflare speaks only JMAP, so Apple Mail and Outlook cannot connect yet.
  • Fast-moving open-source projects ship security fixes quickly, but two releases in two days means you must keep up with updates.
  • Email is the recovery path for every other account, so only self-host it if someone will actually watch the server.
  • Trial a migration with a spare domain for 30 days before moving the address your clients write to.
Glossary

Terms worth knowing.

MX records
DNS records that tell the internet which server receives mail for your domain. Changing them moves your inbox to a new provider.
JMAP
A modern mail protocol that some newer apps speak. Apple Mail and Outlook use IMAP and SMTP instead, so they cannot connect to Mailflare yet.
SPF and DKIM
DNS-based checks that let a receiving server tell a real sender from a spoofed one.
MCP
Model Context Protocol, a standard way for AI agents to call tools. Here it lets an agent search mail and request drafts or sends.
Cloudflare D1
Cloudflare's serverless SQLite-style database, used as Mailflare's default store on the Cloudflare deployment.
Resources

Things they pointed at.

Quotables

Lines you could clip.

00:00
“Google charges a small business $7 a month for every single inbox. Mailflare puts your company email on your own Cloudflare account instead.”
clean cost hook with no setup→ TikTok hook↗ Tweet quote
04:32
“Two releases in two days is great for features, and it also means the code you deploy today looks different by next week.”
honest tradeoff line→ newsletter pull-quote↗ Tweet quote
The Script

Word for word.

Read-along

Don't just watch it. Burn it in.

See every word as it's spoken — crank it to 2× and still catch all of it. The same dual-channel trick behind Amazon's Kindle + Audible.

Google charges a small business $7 a month for every single inbox. Mailflare puts your company email on your own Cloudflare account instead. If you've got a domain and a small team, Google Workspace bills you for every person every month, so the bill grows each time you hire someone.
Mailflare is an open -source copy of the workspace parts small teams actually use, starting with mail on your own domain, and you deploy it yourself. I wanted to know whether the free install carries a whole team, or just you. The README opens with screenshots of the actual inbox and calendar, right under a one -line pitch against Google Workspace.
The cost table is the part I'd show a client. Receiving mail is free, and sending goes through resend, which gives you 3 ,000 emails a month on its free tier. Further down, there's a prompt you paste into cloud code, and it does the whole install on your Cloudflare account.
Pay Google month to month, and Business Starter is $8 .40 a user. Booking pages only come with Business Standard at $14 a user, so a team of five on Standard pays $840 a year. MailFlare's own hosted version charges $16 a month for those same five people, flat.
If you host it yourself, the free edition costs nothing in licenses, and your mail sits in a database you own instead of on Google's servers. Enjoying this so far? Subscribe to the YouTube channel and grab the free daily newsletter at IndieHacker .news.
New deep dive every weekday. The repo went public at the end of May as a ShowHN post titled, I cloned Gmail, and the stars came in over the six months since. Every fork is somebody running their own copy.
Most commits come from one developer. Hu Nguyen, but he isn't working alone, because outside contributors keep sending fixes, and two of those fixes landed this weekend. Mail works with personal or team mailboxes on your domain, and routing rules can store, forward, reject, or file anything, including one rule that sweeps every newsletter into its own folder.
The calendar handles repeating events across time zones and emails invitations to attendees. Your booking link is a public page where anyone picks a free slot, so that's the Calendly part covered, and Drive stores and shares files. The AI Assistant searches your mail and drafts replies, and you can point any AI agent at it over MCP.
Every draft waits for a person to approve it, and an MCP key can only request a send. Moving in is covered too, because it imports Mbox files plus your old Google Calendar and contacts. The spam filter even adds 45 points to cold emails that pitch SEO for your site.
It's a Next .js app in TypeScript that runs as a Cloudflare worker, with D1 as the database and R2 for files, while Qs carry mail in and out. Set one database URL, and it switches to Postgres, MySQL, or Terso instead. The same code also runs as a single Docker container with SQLite, for when you'd rather keep everything on your own box.
In that setup, it can run its own SMTP listener, and it checks SPF and DKIM by itself, which are the records that tell a real sender from a spoofed one. Want to be featured? Pitch your open -source repo at indihacker .news .apply and get in front of thousands of builders.
On Cloudflare, you click the Deploy button, keep the app name exactly Mailflare, and paste a scoped API token. Then you open slash setup. Make the admin account, add your domain, and it writes the MX records for you.
The container route is a clone and one compose command. Mailflare shows you the old MX records before it replaces them, because the moment you confirm, your old provider stops getting your mail. Version 0 .5 .7 landed on Sunday, and it's a security release.
It closed access gaps in Drive, shared mailboxes, and the calendar, and changing your password now kills every access key on the account, MCP keys included. The day before, 0 .5 .6 added Vercel hosting and Google Takeout imports, plus masked email aliases. Two releases in two days is great for features, and it also means the code you deploy today looks different by next week.
The free self -hosted edition covers one account. Extra team accounts and shared mailboxes need the team license, $249 once, and someone who bought the cheaper Pro license is already on GitHub asking how to add seats. That's still under four months of workspace standard for five people.
Mail apps connect over JMAP only right now, which Apple Mail and Outlook don't speak. There's no antivirus, so a bad PDF gets through, and there's nothing like Docs or Meet. Mailflare's own site says that if nobody on your team will look after a server, you should pick a hosted service, because email is how you recover every other account.
If you work alone and keep paying for one workspace seat, Mailflare can take that seat over for nothing, and the scheduling comes along with it. An agency should try it with a spare domain first and give it 30 days before moving the address clients write to. If everyone you work with writes in shared documents and meets on video all day, Stay with Google.
Would you move your work inbox off Google for this?
The Hook

The bait, then the rug-pull.

Google bills a small business per inbox, per month, and the bill climbs with every hire. Mailflare is an open-source answer that puts mail, calendar, booking and files on your own Cloudflare account.

CTA Breakdown

How they asked for the click.

VERBAL ASK
01:30newsletter
“Subscribe to the YouTube channel and grab the free daily newsletter at IndieHacker.news.”

A mid-roll ask plus a repo-feature pitch; the video closes on a direct audience question.

MENTIONED ON CAMERA
Storyboard

Visual structure at a glance.

open
hookopen00:01
README
valueREADME00:57
shared mailboxes
valueshared mailboxes02:06
how it's built
valuehow it's built02:55
security release
valuesecurity release04:15
CTA
ctaCTA05:40
Frame Gallery

Visual moments.

One-click upgrade to your Google

Get more breakdowns in your search results

Add Modern Creator as a preferred source and Google shows you more of our breakdowns in Search, Top Stories, and AI Overviews. It only changes what you see, and you can undo it in your Google settings anytime.

Add to Preferred SourcesOpens your Google source preferences with us pre-loaded. Tick the box and you're done.
Watch next

More from this channel + related breakdowns.