WebRTC P2P Signaling Library

Data channels, media streams, auto-reconnection, and offline message queuing. Backed by a Rust signaling server built for thousands of concurrent peers.

Features

Everything you need for real-time peer-to-peer connections.

Real-Time Rooms

Create rooms for teams, games, or collaboration. Presence tracking, topic-based messaging, and automatic host migration built in.

Reliable Delivery

sendWithAck() guarantees your messages arrive. Automatic reconnection with offline queuing means nothing gets lost.

Works Everywhere

WebRTC for speed, WebSocket relay for reliability. Automatic fallback through VPNs, firewalls, and restrictive networks.

Rich Presence

Show who's online, their cursor position, status, or any custom data. Real-time sync with automatic cleanup.

Built-In RPC

Call functions on remote peers and get responses back. Timeouts, error codes, and async handlers included.

No Per-Message Fees

Data flows directly between peers. The server only handles signaling — no relay costs at scale.

Live Examples

Deployed demos you can try right now.

Code Examples

From rooms and presence to reliable messaging and video calls.

Install

Add Dendri to your project in one command.

npm install dendri