https://github.com/bsreeram08/bun-webrtc-server
This is an open-source Bun Web-RTC server that anyone can integrate into their frontend to do video calling.
https://github.com/bsreeram08/bun-webrtc-server
bun server webrtc
Last synced: 4 months ago
JSON representation
This is an open-source Bun Web-RTC server that anyone can integrate into their frontend to do video calling.
- Host: GitHub
- URL: https://github.com/bsreeram08/bun-webrtc-server
- Owner: bsreeram08
- License: mit
- Created: 2024-04-01T06:39:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T15:18:34.000Z (almost 2 years ago)
- Last Synced: 2024-08-27T16:55:22.924Z (almost 2 years ago)
- Topics: bun, server, webrtc
- Language: TypeScript
- Homepage:
- Size: 101 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# webrtc-bun
WebRTC-Bun is a WebRTC signaling server implementation using Bun runtime. It provides a simple and efficient way to establish WebRTC connections between clients.
## Features
- WebSocket-based signaling server
- Support for WebRTC offer/answer exchange
- ICE candidate exchange
- Authentication using Auth0
- Redis integration for storing call and participant information
## Prerequisites
- Bun runtime
- Redis server (running on localhost or accessible via network)
- Auth0 account for authentication
## Installation
```bash
bun install
```
### Configuration
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.
### Usage
To run:
```bash
bun serve
```
To run in development:
```bash
bun watch
```
### Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.