rift-sdk
Part of the riftd project — serverless P2P voice + text chat over UDP.
What's in this crate?
rift-sdk is the easiest way to add P2P voice and text chat to your app:
- Simple API — High-level abstractions over the mesh
- Auto Discovery — mDNS + DHT peer finding
- NAT Traversal — Just works™ (hole punch + TURN fallback)
- E2EE by Default — All messages encrypted end-to-end
- Voice Calls — Opus-encoded voice with QoS adaptation
- Cross-Platform — Desktop, mobile (via FFI), and WASM
Usage
use ;
async
Features
ffi— C FFI bindings for mobile/native integrationandroid— Android JNI bindings
Platform Support
| Platform | Status |
|---|---|
| Linux | ✅ Full support |
| macOS | ✅ Full support |
| Windows | ✅ Full support |
| Android | ✅ Via JNI |
| iOS | 🚧 Planned |
| Web | ✅ Via rift-wasm |
Related Crates
| Crate | Description |
|---|---|
| rift-mesh | Low-level mesh networking |
| rift-media | Audio capture/playback |
| rift-wasm | Browser bindings |
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.