WebRTC-Bun is a WebRTC signaling server implementation using Bun runtime. It provides a simple and efficient way to establish WebRTC connections between clients.
- WebSocket-based signaling server
- Support for WebRTC offer/answer exchange
- ICE candidate exchange
- Authentication using Auth0
- Redis integration for storing call and participant information
- Bun runtime
- Redis server (running on localhost or accessible via network)
- Auth0 account for authentication
bun install
Before running the server, you need to create a .env file in the project root directory and provide the necessary configuration:
AUTH0_AUTH_DOMAIN="your-domain.auth0.com"
AUTH0_AUDIENCE="your-auth0-audience"
AUTH0_CERTIFICATE="your-auth0-certificate"
Replace your-domain.auth0.com, your-auth0-audience, and your-auth0-certificate with your actual Auth0 configuration values.
To run:
bun serve
To run in development:
bun watch
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.