← All posts

Product · · 1 min read

Introducing ByoTalk: realtime chat that writes to your own database

ByoTalk runs delivery, presence and calls for your app, and keeps the permanent record of every conversation in a database you own.

Vishal Chaubey

Adding chat to a product usually means choosing between two bad options. Build it yourself, and you spend months on websockets, reconnects, read receipts and push notifications. Buy a hosted service, and your users' conversations live in someone else's database, priced per message, exportable only on their terms.

ByoTalk is a third option. We run the realtime part. You keep the data.

What ByoTalk does

  • Delivery. Messages reach every connected device in milliseconds over a single websocket, with at-least-once delivery and de-duplication built into the SDK.
  • Presence and typing. Who is online, who is typing, who has read what.
  • Voice and video calls. One-to-one and group calls with screen sharing, on the same connection.
  • Push notifications. FCM, APNs and Expo, or a webhook so you send them yourself.
  • Webhooks. Every message, edit and membership change, signed, so your backend stays in sync.

Your database keeps the record

Point ByoTalk at your own PostgreSQL, MySQL or MongoDB (or any store behind an HTTPS endpoint) and every conversation is written there, in tables you can query, join and back up like the rest of your data. ByoTalk keeps a short buffer for delivery and sync; the permanent record is yours.

Prefer not to run a database for chat? Managed mode stores everything for you, encrypted at rest, and you can switch to your own database later.

Getting started

  1. Sign in with your email and create an app. You get a development and a production environment, each with its own keys.
  2. Install the SDK: npm i byotalk.
  3. Connect two test users with dev tokens and send your first message:
import { Chat } from "byotalk";

const chat = new Chat({ env: "env_…", token: Chat.devToken("alice") });
await chat.connect();
const dm = await chat.conversations.direct("bob");
await dm.send({ text: "Hello Bob" });

The quick start walks through production tokens, attachments and calls.

We would love to hear what you build. Reply to any of our emails, or write to us from the dashboard.

  • launch
  • realtime
  • byo-database

Build chat on ByoTalk

Realtime chat and calls, with the permanent record in your own database.