r/CloudFlare • • 10h ago

Community I built a mailbox for my domains that runs in my own Cloudflare account

Post image
61 Upvotes

I built cloudmail to run email for my own domains. You deploy it to your Cloudflare account and get a normal inbox: send, reply, search, labels, shared inboxes.

Gmail stops "Send mail as" in January. If you forward your domain to Gmail with Email Routing, you won't be able to reply from it after that. This is what I use instead.

Mail comes in through Email Routing to a Worker. Each mailbox is a SQLite database in a Durable Object, and attachments go to R2. You send with Cloudflare Email Service, or with your own SES or Resend account.

Demo, no sign-up: https://demo.trycloudmail.com

The source is available on GitHub: https://github.com/cloudmail-hq/cloudmail

Tell me what's missing for you.


r/CloudFlare • • 13h ago

Cloudflare Blog Post-quantum cryptography is still safe

Thumbnail
blog.cloudflare.com
56 Upvotes

r/CloudFlare • • 15h ago

End-to-end encrypted, invite-only messenger that runs entirely on Cloudflare's free plan (Durable Objects + Pages), and you can host your own

Thumbnail
gallery
32 Upvotes

cha7 is a small private messenger, 1:1 chats, groups up to 10, photos, voice, short videos, files up to 25 MB, P2P chat and voice calls. Everything is end-to-end encrypted in the browser; it installs as a web app on phones and computers. No phone number, no email: an account is a key on your device (similar to a crypto wallet), and you get in only with an invite link - https://cha7.pages.dev

How it uses Cloudflare

  • One Durable Object per member (SQLite-backed) is their inbox: it holds their WebSockets (hibernation API), keeps sealed envelopes until every device has them, then deletes them. A second DO is the registry (invites, members, admin).
  • Pages serves the app; Pages Functions only forward /inbox/* and /api/* to the DOs, and throw away malformed requests before any DO wakes up.
  • Web Push straight from the Worker (VAPID, RFC 8291 for the one push with a payload: "incoming call").
  • Cloudflare Realtime TURN relays P2P chats and calls when there's no direct path.
  • Built for the free plan: live chats write nothing to SQLite (held-and-forwarded if every device is online), rows are metered per sender with a daily budget so one member can't burn an inbox's read quota, persisted logs are off.

What the server sees, honestly: who writes to whom and when, sizes, IPs. Never content, names or group membership: a group message is one sealed copy per member, and the server has no group object. Forward secrecy is per day (not per message, to save up in CF free tier), there's no deniability yet, and as with any web app, the code comes from the server. The white paper spells all that out, including a comparison with WhatsApp, Telegram and Signal.

Try it / read more

Run your own: about 15 minutes. Clone, npx wrangler login, one script makes the secrets and config, deploy the Worker and the Pages project, open the admin link. Steps: https://github.com/t0ma5/cha7#self-hosting

Feedback welcome, especially from anyone who has pushed Durable Objects hard on the free plan, or wants to poke holes in the crypto.


r/CloudFlare • • 14h ago

Discussion Workers + D1 + R2 for a small indie app: when would you choose a VPS instead?

5 Upvotes

For a small indie product, my starting preference is managed infrastructure: less time configuring servers, more time testing whether anyone wants the product. Cloudflare's Workers + D1 + R2 combination looks appealing for that: frontend and APIs, SQL data, and uploaded files in one stack. The free tiers help with early validation, but they aren't unlimited. Workers has request and CPU limits; D1 has query and storage limits; R2 has storage and operation costs even though egress is free. What I'm interested in is where this stops being a sensible default. For those who have shipped on this stack, what pushed you toward a VPS or another managed backend: CPU-heavy work, database query patterns, background jobs, portability, or something else? My instinct is to optimize for fewer infrastructure chores before the first paying customer, then revisit the architecture based on actual usage. Which tradeoff would you make differently?


r/CloudFlare • • 3h ago

Clipstral - Mistral Multimodal Embed - When can we have it on Workers AI? Pls :)

2 Upvotes