@trupdf/collaboration
Real-time collaboration
WebSocket sync · presence · conflict-free ops
Live annotation sync, presence cursors, and selection broadcast over a small WebSocket protocol. Exponential reconnect, heartbeat ping, stop-on-destroy. Bring your own server.
F.01 — What you get
- AnnotationManager bidirectional binding — every add/update/remove broadcasts and dedupes.
- Presence with per-peer name + colour + cursor + selection.
- Exponential reconnect with jitter; heartbeat ping every 30 s; missed pings trigger early reconnect.
- Wire protocol documented in @trupdf/collaboration so any backend can host it.
Next step
See it in the demo
The live demo wires this feature into a full viewer. Open any PDF and try it.