cverse-livekit-adapter v0.1.0
adapter
capsule://quake0day/[email protected]
Provides Go-based integration with LiveKit, a WebRTC platform, for managing real-time rooms, generating access tokens, and handling media streams. This capsule abstracts LiveKit interactions for the Go orchestration server.
Owns
- LiveKit room management logic
- LiveKit token generation
- LiveKit media processing utilities (VP8 chunking)
Does not own
- The LiveKit server itself
- Direct WebRTC peer connection management
- Go orchestration server business logic
AI orientation
An AI agent working on this capsule would focus on updating LiveKit SDK versions, optimizing room management strategies, or enhancing media stream handling related to LiveKit. It requires strong Go programming skills and knowledge of LiveKit APIs.
Avoid
- Modifying LiveKit server internals.
- Implementing core Go orchestration logic.
Provides
library:livekit-server-sdk— Go library for interacting with LiveKit server.
Requires
env:LIVEKIT_API_KEY— API key for LiveKit server authentication.env:LIVEKIT_API_SECRET— API secret for LiveKit server authentication.env:LIVEKIT_WS_URL— WebSocket URL for the LiveKit server.
Invariants (must always hold)
- LiveKit room creation and token generation must be reliable.
- Media stream processing must be efficient and correct.
Source files (9)
Click any file to view its content; the path on the right shows where the file lands when this capsule is installed.
src/server/internal/livekit/bot.go→internal/livekit/bot.gosrc/server/internal/livekit/room_manager.go→internal/livekit/room_manager.gosrc/server/internal/livekit/token.go→internal/livekit/token.gosrc/server/internal/livekit/token_test.go→internal/livekit/token_test.gosrc/server/internal/livekit/vp8_chunk.go→internal/livekit/vp8_chunk.gosrc/server/internal/livekit/vp8_chunk_test.go→internal/livekit/vp8_chunk_test.gosrc/server/stubs/livekit/media-sdk/go.mod→stubs/livekit/media-sdk/go.modsrc/server/stubs/livekit/protocol/go.mod→stubs/livekit/protocol/go.modsrc/server/stubs/livekit/server-sdk-go-v2/go.mod→stubs/livekit/server-sdk-go-v2/go.mod
Plus capsule.yaml and
install.json.