Messaging
Pub/sub channels for every app
Publish once and every subscriber gets the message, delivered from the nearest edge region.
chat.ts
import { Relay } from ‘@relay/client’
const relay = new Relay({ key: process.env.RELAY_KEY })
const room = relay.channel(‘support:4821’)
room.subscribe(‘message’, (msg) => render(msg))
await room.publish(‘message’, { text: ‘Hi there!’ })
Used by teams shipping in real time
Lumen
Northwind
Fieldnote
Arcadia
Quill
Monarch
What you get
Global fan-out
One publish reaches every subscriber in every region.
Ordered delivery
Messages arrive in the order they were sent, per channel.
Typed events
Name your events and subscribe only to the ones you need.
More products
Awareness
Presence
Show who is online, who is typing and where everyone’s cursor is, with one call to enter.
Learn more →
Storage
History
Let late joiners catch up and search past conversations without building a database of your own.
Learn more →
Integrations
Webhooks
Send channel and presence events to your own endpoints, signed, retried and replayable.
Learn more →
Agents
MCP server
Let coding agents create channels, watch live traffic and rotate keys through the Relay MCP server.
Learn more →
Start building in minutes
Install the SDK, open a channel and send your first message in five minutes.