Package Reference
All 31 packages in GoliveKit's modular architecture.
Core
| Package | Description |
core | Component interface, Socket, Assigns, Session, Params |
router | HTTP routing, WebSocket upgrade, middleware |
transport | WebSocket, SSE, Long-polling transports |
protocol | Wire protocol, Phoenix-compatible codec |
Rendering
| Package | Description |
diff | Hybrid HTML diff engine with slot caching |
streaming | SSR with suspense boundaries |
islands | Partial hydration (load, visible, idle, interaction, media) |
Real-time
| Package | Description |
pubsub | Real-time pub/sub messaging |
presence | User presence tracking |
State & Storage
| Package | Description |
state | State persistence (Memory, Redis) |
pool | Memory pooling, RingBuffer |
Security
| Package | Description |
security | Auth, CSRF, XSS sanitization |
limits | Rate limiting, backpressure |
Extensibility
| Package | Description |
plugin | Plugin system with 15+ hooks |
js | JavaScript commands |
Observability
| Package | Description |
metrics | Prometheus-compatible metrics |
logging | Structured logging (slog) |
tracing | OpenTelemetry integration |
Infrastructure
| Package | Description |
retry | Exponential backoff with jitter |
shutdown | Graceful shutdown handler |
Utilities
| Package | Description |
i18n | Internationalization |
a11y | Accessibility helpers |
testing | Component testing utilities |
External Dependencies
GoliveKit uses only 3 external dependencies:
github.com/gorilla/websocket - WebSocket
github.com/google/uuid - UUID generation
github.com/vmihailenco/msgpack/v5 - MsgPack codec