Backpressure is product behavior.
Per-connection outboxes and priority classes isolate slow consumers. Repairable signals can be dropped; authoritative mutations cannot.
C++ signaling · protobuf · LiveKit
Kergit is a Discord-like text and voice platform built to explore the hard parts behind the interface: sessions, state, backpressure, reconnects, and server-owned voice.
Interactive product demo
Switch channels, send a local message, join a voice room to open the call grid, spotlight a participant, toggle a simulated camera or screen share, and inspect the member list. It behaves like the product while staying entirely inside this page.
Simulation only — no account, server, microphone, WebRTC, or stored data.
Under the interface
Every interaction enters a server-authoritative path. Media is delegated to LiveKit; application truth, permissions, recovery, and ownership stay in the C++ core.
One click, four boundaries
Voice is not a direct browser-to-room shortcut. Kergit makes authorization and ownership explicit before media starts.
The active browser session asks to enter a specific voice channel.
The C++ core validates membership and assigns voice ownership to one session.
A narrow LiveKit token names the room, participant, permissions, and selected node.
Webhooks, reconnect grace, and resume paths bring media and application state back together.
Engineering decisions
Kergit is a systems project disguised as a community app. These are the choices that make the prototype interesting beyond its interface.
Per-connection outboxes and priority classes isolate slow consumers. Repairable signals can be dropped; authoritative mutations cannot.
message Envelope {
uint32 version = 1;
Type type = 3;
bytes payload = 100;
}
STATE_DELTA durable
RT_SIGNAL transient
VOICE_JOIN authorized
Read the protocol
Takeover and resume revoke the previous owner deliberately instead of letting tabs race.
A dropped WebSocket does not instantly erase a healthy media participant.
Honest boundary
The repository contains the working backend, web and admin clients, Docker stack, metrics, tests, and voice lifecycle. This public page replaces live infrastructure with local UI behavior so anyone can explore it safely.
Read the architecture notesBuilt across the boundary
Open source
Trace the protocol, inspect the queues, run the stack, or follow the voice lifecycle from request to reconciliation.