Skip to main content

Overview


Real-time messaging without the infrastructure headache.


Installation

npm install relayx-js

Quick Start

const { Realtime } = require('relayx-js');

const client = new Realtime({ api_key: 'YOUR_KEY', secret: 'YOUR_SECRET' });
await client.init();
await client.connect();

// Subscribe to a topic
client.on('chat.room1', (msg) => {
console.log('Received:', msg.data);
});

// Publish a message
await client.publish('chat.room1', { user: 'alice', text: 'Hello!' });

That's it. You're live.


Three Primitives

PrimitiveWhat it doesUse case
Pub/SubBroadcast messages instantlyChat, live updates, multiplayer
QueuesReliable background jobsEmails, uploads, webhooks
KV StoreShared stateSessions, feature flags

What You Can Build

  • Chat & Collaboration — Real-time messaging, typing indicators, presence
  • Live Dashboards — Push metrics to browsers, sub-100ms latency
  • Notifications — Instant alerts across web and mobile
  • Background Jobs — Queue tasks, process reliably, built-in retries

Get Started

Get your API keys at the Developer Console and ship something real in 5 minutes.

Full Quickstart Guide →



Need Help?

Join our Discord server, post your concern & someone from our team will help you out ✌️