Developer center
Build decentralized meetings, calls, group voice and on-demand video with Zelay. Everything for the SDKs, nodes, HTTP API and conformance vectors starts here.
Quick start
Run a dev node
go build -o zelay-node ./cmd/zelay-node ./scripts/build-livekit.sh ./bin/livekit-server ./zelay-node -dev -http :8090 -data ./data
Add the SDK
# pubspec.yaml — pin to a commit
dependencies:
zelay_flutter:
git:
url: <zelay repo>
path: dart/zelay_flutter
ref: <commit>Join a room
final client = ZelayNodeClient(Uri.parse('https://127.0.0.1:8090'), signer: wallet); final session = await ZelaySession.join(client, room: roomId); session.people.addListener(() => render(session.people.value));
SDK
| Package | Language | What it does | Status |
|---|
Rooms and membership
Room IDs are self-certifying: r + hex(sha256("zelay-room-v1\n" + lowercase creator address + "\n" + nonce)[:16]); group rooms start with g. Group membership is a v3 token signed by a group admin, valid for at most 7 days. The SDK renews it through groupTokenProvider.
final token = await issueGroupMember(admin, groupId: gid, member: addr, ttl: Duration(hours: 24)); final s = await ZelaySession.join(client, room: gid, groupNonce: nonce, groupTokenProvider: () => fetchToken());
End-to-end encryption
Two modes. By default Zelay manages epoch keys: it rotates whenever the roster changes and seals only to members the client has verified. Or your app manages the keys itself and Zelay only forwards ciphertext.
final s = await ZelaySession.join(client, room: gid, e2ee: ZelayE2eeMode.appManaged()); s.keys.setKey(3, epochKey); // install the key first s.keys.setSendSlot(3); // then switch the send slot s.e2ee.addListener(() => lock.value = s.e2ee.value.ready);
# An epoch record (excerpt): nodes cannot tell who is on the roster { "v": 1, "room": "g3f9c…", "current": { "n": 7, "key_index": 6, "kid": "a41e09d2…", "wraps": [ { "rid": "0c7a…", "eph_pub": "…", "ct": "…" }, { "rid": "5e21…", "eph_pub": "…", "ct": "…" } ] }, "auth": { "group_nonce": "…", "membership": "v3.…" } } # Sealing: X25519 + XChaCha20-Poly1305 # rid derives from room, epoch, address and device; it hides the roster
Receipts and metering
With ReceiptOptions on, the SDK meters bytes down, bytes up and track-seconds from local WebRTC stats, and signs a receipt every 5 minutes and on leave. Each receipt carries an app-issued pass: weight 1 for member, 2 for vip.
Run a node
One binary and one public TLS port, with a patched SFU embedded. A node joins after presenting admission credentials from at least M distinct committee members, and once it binds a beneficiary address it claims USDT or USDC against receipts. Nodes ship no TURN server; relay-only clients bring their own.
zelay-node admission-issue -peer <peer id> -ttl 90d -key-env ZELAY_ISSUER_KEY zelay-node -http :443 -data /var/lib/zelay -credential <v3…>
HTTP API
| Method | Path | Auth | Description |
|---|
Status codes
| Code | Meaning | Client should |
|---|
CLI
Conformance vectors
Every implementation must pass the same vectors byte for byte. They live in conformance/ and are regenerated with ZELAY_UPDATE_VECTORS=1.