Case study · Internal platform

communication: One Service for Every Chat and Email

One service holds every conversation for our apps: chats, the emails about them, the replies to those emails, translation between languages, and the bill for all of it. Apps call a few endpoints and drop in a ready chat component.

First commit
2 October 2026
Live for
IssueBeam
API routes
147, locked
Tests
About 500
01 · The challenge

Every app had rebuilt chat, badly

Most of our apps need people to talk to each other: a rental company and its customer, a team and the person who reported a bug. Before this service, every app built that on its own: its own chat tables, its own email code, and its own unread badge that counted wrong.

We wanted one inbox across apps, email you can reply to, translation only when it is needed, usage billed line by line, and one promise: never lost, never twice, never a flood.

02 · What we built

A conversation service that apps plug into

communication is split into 21 areas behind 147 API routes. The ones apps use most:

  • Conversations with identity and guest chat, so a customer without an account can still talk to a business.
  • Reply by email: notifications go out by email, and the reply comes back into the same conversation through the service's own mail server.
  • Translation between languages, only when it is needed, using Claude or OpenAI models.
  • Slack, webhooks, templates, routing, delivery reports (delivered or bounced, from Postmark) and push notifications.
  • Usage billed line by line, per app.
  • Client packages: a Python client, a JavaScript SDK, a ready chat component and email templates. Plus an operator console, three demo apps and 13 tutorials.
03 · How

How it is built and run

Architecture: never lost, never twice

A Flask API, a worker and a scheduler on PostgreSQL, with its own Redis. Every message that has to go out is written to an outbox table in the same database transaction as the change that caused it, so a crash cannot lose it. Each delivery has a unique key, so the same email or webhook is never sent twice. Before one fix we saw 133 webhooks in minutes; "never a flood" is a rule for a reason.

The routes are locked in a file that the architecture tests check, so an endpoint cannot change or disappear without anyone noticing.

Alongside the API run a template renderer for emails and a small mail server that receives replies. Channels we have not built yet, such as WhatsApp, Viber and SMS, are listed in the catalogue, but a request for them is refused clearly instead of failing silently.

Testing and hosting

About 500 automated tests (432 in Python, 65 in TypeScript), including chaos tests and a real reply-by-email loop over SMTP. It runs on its own DigitalOcean server behind Caddy, deployed from GitLab CI with operations.do and an extra CI job for architecture checks. The console is private; this page is its public description.

FlaskPostgreSQLNext.jsRedisPostmarkClaudeSMTPGitLab CI
04 · The result

Built once, used by every app

Most of it was built in October 2026: the first commit was on 2 October, and IssueBeam was live on it, and verified, by the 27th. IssueBeam runs on it in production: comments in its dashboard, the email thread with the person who reported a bug and the Slack thread are one conversation. The Travel Suite already sends push notifications through it, and its booking conversations are next.

Five of our codebases, from IssueBeam and the Travel Suite to advert.cafe, already include its client. It carries thousands of messages a month.

Every new app we build gets working chat and email from day one, instead of a fourth copy of the same code. If your product needs messaging that people can trust, this is the part we have already solved.