Files
rondevu-server/README.md
Bas van den Aakster 02d460fa7e Replace KV storage with D1, add peer_id field, simplify README
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>
2025-11-07 21:21:13 +01:00

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