mirror of
https://github.com/xtr-dev/rondevu-server.git
synced 2025-12-10 10:53:24 +00:00
Storage changes: - Remove KV storage adapter - Add D1 storage adapter for Cloudflare Workers - Update schema to use peer_id instead of info field - Add database migrations for D1 Documentation: - Simplify README to be more concise - Update deployment instructions for D1 - Add D1_SETUP.md explaining migration from KV - Update DEPLOYMENT.md with D1 setup steps API changes: - Replace info field with peerId in session creation - Update all storage interfaces and implementations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
63 lines
958 B
Markdown
63 lines
958 B
Markdown
# Rondevu
|
|
|
|
🎯 Meet WebRTC peers by topic, by peer ID, or by connection ID.
|
|
|
|
## Rondevu Server
|
|
|
|
A simple HTTP server for WebRTC peer signaling and discovery.
|
|
|
|
**Three ways to connect:** by topic, by peer ID, or by connection ID.
|
|
|
|
### Quick Start
|
|
|
|
**Node.js:**
|
|
```bash
|
|
npm install && npm start
|
|
```
|
|
|
|
**Docker:**
|
|
```bash
|
|
docker build -t rondevu . && docker run -p 3000:3000 rondevu
|
|
```
|
|
|
|
**Cloudflare Workers:**
|
|
```bash
|
|
npx wrangler deploy
|
|
```
|
|
|
|
See [DEPLOYMENT.md](./DEPLOYMENT.md) for details.
|
|
|
|
### API
|
|
|
|
```bash
|
|
# Create offer
|
|
POST /:topic/offer {"peerId":"alice","offer":"..."}
|
|
|
|
# List sessions
|
|
GET /:topic/sessions
|
|
|
|
# Send answer
|
|
POST /answer {"code":"...","answer":"..."}
|
|
|
|
# Poll for updates
|
|
POST /poll {"code":"...","side":"offerer|answerer"}
|
|
```
|
|
|
|
See [API.md](./API.md) for details.
|
|
|
|
### Configuration
|
|
|
|
```env
|
|
PORT=3000
|
|
SESSION_TIMEOUT=300000
|
|
CORS_ORIGINS=*
|
|
```
|
|
|
|
### Storage
|
|
|
|
Supports SQLite (Node.js/Docker) or D1 (Cloudflare Workers).
|
|
|
|
### License
|
|
|
|
MIT
|