Flock Documentation
Self-hostable, open-source SDK for live cursors and multiplayer presence.
What is Flock?
Flock is an open-source SDK that adds real-time multiplayer presence to any web app — live cursors, who's online, selection indicators — in under 10 lines of code.
It has three parts:
@xevrion/flock-react— React hooks for cursors, presence, and connection status@xevrion/flock-core— Framework-agnostic client (vanilla JS, other frameworks)@xevrion/flock-server— Self-hostable WebSocket server (Docker or npx)
Quick links
- Quickstart — get cursors working in 5 minutes
- Installation — all install paths
- Concepts — rooms, presence, cursors explained
Why Flock?
| Flock | Liveblocks | DIY | |
|---|---|---|---|
| Self-hostable | Yes | No | Yes |
| Open source | MIT | Partial AGPL | — |
| Per-seat pricing | None | Yes | None |
| Connection caps | None | 10 free / room | None |
| Setup | 10 lines | Full platform | Weeks |