DEV Community

Cover image for I built a pen-pal platform that gives your inbox back — mutual match or no email
China Wang
China Wang

Posted on Edited on Originally published at minglist.hashnode.dev

I built a pen-pal platform that gives your inbox back — mutual match or no email

Every social platform I've ever used has the same business model: keep the conversation inside the app, forever. Messages live in their database, notifications live on their schedule, and if the platform dies — so does every friendship that lives on it.

I wanted the opposite. So I built Echo Connect — a free international pen-pal platform where the entire point is that you don't stay. You match with someone, you get each other's Gmail address, and the conversation moves to your own inbox.

(Yes, the name collides with a certain smart speaker. The name was taken; the idea wasn't. This post is about the idea.)

What it does

  1. Sign in with Google — no passwords, no email verification loops. OAuth gives me a verified Gmail address, and a Gmail address is all a pen-pal platform really needs.
  2. Build a short profile — a few lines about who you are, where you're from, what you want to talk about.
  3. Discover people — browse by country, filter, and hit "Connect" on people who seem interesting.
  4. Match happens only when it's mutual — and only then does the site reveal both Gmail addresses, with a one-click "Email in Gmail" button.

That last rule is the whole product. Emails are never shown in Discover — not to other users, not in any API response — they are exposed exclusively between mutual matches. There is no in-app chat to lock you in, and nothing to lose if the site disappears tomorrow: by then, the conversation already lives in your mailbox.

The stack (deliberately boring)

  • Cloudflare Workers + Hono — one small Worker handles OAuth, sessions, the API, and serves the static frontend through Workers Assets.
  • Cloudflare D1 (SQLite) for profiles, connections, and matches.
  • Vanilla HTML/CSS/JS — no build step, no framework, no node_modules in the frontend. The whole frontend is hand-written static pages.
  • No cookies beyond one HttpOnly session cookie, security headers on every response, and basic rate limiting on the API.

The deploy is a single wrangler deploy with a custom domain. Total infrastructure bill: $0.

The part I'd highlight: matching without a messaging system

The hardest design decision was not building a chat. It's tempting — realtime messaging is what makes a platform sticky. But sticky is exactly what pen-pal platforms shouldn't be. Pen-pal culture is about letters: slow, deliberate, written in your own words, kept in your own archive. Gmail already is a perfect pen-pal client with 40 years of reliability behind it.

So the platform's job reduces to three things:

  1. Identity — prove you're a real person with a real Gmail (Google OAuth).
  2. Discovery — help people find each other across countries.
  3. The handoff — a gate that only opens when both people say yes.

Everything else — the actual relationship — happens off-platform, by design. It's a dating-app mechanic applied to pen-pals, minus the app you get locked into.

Things I learned building it

  • Workers Assets + a custom-domain Worker on a subdomain plays surprisingly well with an existing zone — the subdomain is a separate host, so it can't collide with routes already bound on the apex domain. (The site lives at echo.minglist.top next to my classifieds project.)
  • OAuth redirect URIs are unforgiving: APP_URL drives both the redirect_uri and the secure flag on session cookies. One trailing slash mismatch and Google rejects the callback with redirect_uri_mismatch.
  • Safe projections matter more on a site whose whole value is private data: every DB query helper returns an explicit column allowlist, so an email can't leak through a hastily-written SELECT *.
  • Server-rendering the public pages (landing, about, privacy) keeps the site crawlable without a JS runtime — which matters when your entire audience is people finding you through search.

Try it

echo.minglist.top — it's free, there are no ads, and it's new (the discover page needs more humans — that's the honest part of every launch post). If you've ever had a pen pal, or wanted one, come write a first letter.

If you're building something similar, I'm happy to talk shop about the Workers/D1 setup in the comments. 🖊️

Top comments (0)