Ship real-time features with Relay

Open a channel, subscribe from any client and publish your first message in five minutes. Then add presence, history and agents when you need them.

Install

Publish

Subscribe

›_

terminal

1

npm i @relay/client

2

npx relay login

3

npx relay channels create support

Quickstart

Three steps from an empty project to a live channel.

01

Install the SDK

Add the client package to your web, mobile or server project.

02

Open a channel

Create a channel with a name that describes the room or document.

03

Publish and subscribe

Send a message and watch every subscriber receive it.

›_

chat.ts

1

import { Relay } from ‘@relay/client’

2

 

3

const relay = new Relay({ key: process.env.RELAY_KEY })

4

const room = relay.channel(‘support:4821’)

5

 

6

room.subscribe(‘message’, (msg) => render(msg))

7

await room.publish(‘message’, { text: ‘Hi there!’ })

SDKs

Official client libraries, all speaking the same protocol.

JavaScript

Browsers, Node.js, Bun and edge runtimes.

React

Hooks for channels, presence and history.

Swift

Native client for iOS and macOS apps.

Kotlin

Native client for Android and the JVM.

Python

Server-side publishing and agent streaming.

Go

High-throughput publishing from your backend.

All systems normal.

© 2026 Relay Labs, Inc.

All systems normal.

© 2026 Relay Labs, Inc.

All systems normal.

© 2026 Relay Labs, Inc.

Create a free website with Framer, the website builder loved by startups, designers and agencies.