Product Real-Time Infrastructure 2025

Dendri

Build real-time collaborative apps where data flows directly between users. Chat, whiteboards, video calls, multiplayer games — one library handles all of it, and your server never touches the data.

Platform

dendri.dev

Visit Dendri

Dendri

Real-Time P2P for the Web

~1ms Latency

At a Glance

~1ms

Peer-to-peer latency

7

Live interactive demos

975+

Tests in the client library

0

Server sees your data (P2P)

The Problem

Building real-time features like collaborative editing, live cursors, or multiplayer games means choosing between expensive platforms that charge per message and route everything through their servers, or unreliable open-source libraries that break under real-world conditions — disconnections, firewalls, VPNs. Most teams spend months on plumbing instead of building their actual product.

The Solution

Dendri gives you production-grade real-time communication in a single npm install. Data flows directly between users' browsers so it's fast and private. When networks are restrictive, it automatically falls back through four transport layers so connections never fail. Rooms, presence, message delivery guarantees, and reconnection are all built in — you write your app logic, not networking code.

What You Can Build

Every feature is designed for real-world use — not demos. Dendri handles the hard parts of real-time communication so you can focus on your application.

Rooms & Presence

Create rooms for teams, games, or collaboration sessions. See who's online, track cursor positions, share custom status data — all synced in real time. When a host disconnects, leadership transfers automatically so the room stays alive.

Up to 20 peers Host migration Live presence

Reliable Messaging

Send messages with delivery acknowledgments so you know they arrived. If a peer goes offline temporarily, messages queue automatically and replay when they reconnect. Topic-based channels let you organize traffic — chat in one channel, game state in another.

Delivery guarantees Offline queuing Topic channels

Works Everywhere

Four transport tiers ensure connections succeed regardless of network conditions. Direct peer-to-peer when possible, automatic fallback through WebSocket relay, server-sent events, or HTTP polling. VPNs, corporate firewalls, restrictive networks — Dendri adapts silently.

WebRTC P2P Auto-fallback 4 transport tiers

Video, Audio & Data Together

Run video calls with a data channel alongside — show live cursors during a screen share, send reactions during a meeting, or sync game state during a voice call. Media streams and data channels work together out of the box.

Video calling Data + media Screen share

RPC & Function Calls

Call functions on remote peers and get structured responses back — like a REST API between browsers. Built-in timeouts, error codes, and async handlers make it easy to build request/response patterns for actions like "move piece to B4" or "approve this edit."

Remote procedure calls Timeout handling Error codes

Private by Design

Data flows directly between peers — the server only handles connection setup, never sees your content. When relay fallback is needed, end-to-end encryption (AES-256-GCM) keeps data private. Optional JWT authentication controls who can join which rooms.

E2E encryption JWT room access Zero data relay

Who It's For

Collaborative SaaS

Add live cursors, real-time editing, and presence indicators to your product. Figma-style collaboration without building the networking stack from scratch.

Examples: Whiteboards, document editors, design tools, project management

Multiplayer Games

Sync game state between players with sub-millisecond latency. RPC for turn-based actions, broadcast for continuous state, presence for lobbies.

Examples: Browser games, board games, interactive classrooms, quizzes

Privacy-First Apps

Data never touches your server — it flows directly between users. End-to-end encryption on fallback relay means even restrictive networks stay private.

Examples: Secure messaging, medical collaboration, legal review, file sharing

Three Steps to Real-Time

01

Install the library

One npm package. Works with Svelte, React, Vue, or plain JavaScript. No build plugins or special configuration needed.

02

Join a room

Create or join a named room. First peer becomes the host. Presence, messaging, and peer discovery happen automatically.

03

Send and receive

Broadcast messages, subscribe to topics, call remote functions, track presence. The library handles reconnection, queuing, and transport fallback.

Why Dendri

For Developers

  • One npm install replaces months of WebRTC plumbing — rooms, presence, messaging, and reconnection included
  • Works with any framework — reactive stores for Svelte, React, and Vue out of the box
  • No per-message fees: data flows peer-to-peer, the server only handles signaling
  • Self-host the Rust server or use the hosted service at dendri.dev — your choice

For End Users

  • Sub-millisecond latency when peers connect directly — faster than any server-mediated solution
  • Seamless recovery from network interruptions with automatic reconnection and message replay
  • Works behind VPNs, firewalls, and corporate networks thanks to four-tier transport fallback
  • Data stays private — end-to-end encrypted when relay is needed, never stored on the server

Real-time features, without the infrastructure headache

Install the library, join a room, start sending. Chat, cursors, video, games — built and deployed in hours, not months.

Get Started with Dendri