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
| Primitive | What it does | Use case |
|---|---|---|
| Pub/Sub | Broadcast messages instantly | Chat, live updates, multiplayer |
| Queues | Reliable background jobs | Emails, uploads, webhooks |
| KV Store | Shared state | Sessions, 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.
Need Help?
Join our Discord server, post your concern & someone from our team will help you out ✌️