LiveKit is an open source project that provides scalable, multi-user conferencing over WebRTC. It's designed to give you everything you need to build real time video/audio/data capabilities in your applications.
LiveKit is written in Go, using the awesome Pion WebRTC implementation.
- Scalable, distributed WebRTC SFU (Selective Forwarding Unit)
- Modern, full-featured client SDKs for JS, React, iOS, Android, Flutter, and Mac
- Built for production - JWT authentication and server APIs
- Robust networking & connectivity. UDP/TCP/TURN
- Easy to deploy - single binary, docker & kubernetes
- Advanced features - speaker detection, simulcast, selective subscription, moderation APIs, and webhooks.
Docs & Guides at: https://docs.livekit.io
Head to our playground and give it a spin. Build a Zoom-like conferencing app in under 100 lines of code!
Client SDKs:
Server SDKs:
- Javascript (docs)
- Go (docs)
- Ruby
Tools:
- livekit-cli: command line admin & tools
- chrometester: load testing with headless-Chrome bots
- docker image
docker run --rm -v$PWD:/output livekit/generate --local
The above command generates a livekit.yaml
you can use to start LiveKit. It'll contain an API key/secret pair you can
use with your LiveKit install.
docker run --rm -p 7880:7880 \
-p 7881:7881 \
-p 7882:7882/udp \
-v $PWD/livekit.yaml:/livekit.yaml \
livekit/livekit-server \
--config /livekit.yaml \
--node-ip <machine-ip>
When running with docker, --node-ip
needs to be set to your machine's IP address. If the service will be exposed to
the public Internet, this should the machine's public IP.
Head over to the example app and enter the generated token to connect to your LiveKit server. This app is built with our React SDK.
Once connected, your video and audio are now published to your new LiveKit instance!
To add more users to a room, you'll have to create a token for each participant. Learn more about access tokens.
livekit-server
provides a convenient sub-command to create a development token. This token has an expiration of a
month, which is useful for development and testing, but not appropriate for production use.
docker run --rm -e LIVEKIT_KEYS="<api-key>: <api-secret>" \
livekit/livekit-server create-join-token \
--room "<room-name>" \
--identity "<participant-identity>"
Deployment Docs: https://docs.livekit.io/guides/deploy
Use our deploy config generator to set up a single node deployment with automatic TLS termination and built-in TURN.
It includes a cloud-init/setup script that's supported by most cloud environments.
docker run --rm -it -v$PWD:/output livekit/generate
We publish a helm chart that helps you to set up a cluster with high availability. For detailed instructions, see Kubernetes guide
Use the connection tester to ensure your installation is set-up properly for user traffic.
Pre-requisites:
- Go 1.15+ is installed
- GOPATH/bin is in your PATH
Then run
git clone https://github.com/livekit/livekit-server
cd livekit-server
./bootstrap.sh
mage
We welcome your contributions to make LiveKit better! Please join us on Slack to discuss your ideas and/or submit PRs.
LiveKit server is licensed under Apache License v2.0.