@pokapali/sync
v0.1.0-alpha.10
Published
```sh npm install @pokapali/sync ```
Readme
@pokapali/sync
npm install @pokapali/syncWebRTC room setup for real-time Yjs sync. Creates one y-webrtc room per writable namespace (password-protected with the namespace access key) and a shared awareness room for cursor presence. Signaling is handled via a GossipSub adapter over the libp2p mesh — no external WebSocket signaling servers required.
Key Exports
setupNamespaceRooms()— creates WebrtcProvider instances for each writable namespacesetupAwarenessRoom()— creates the shared awareness room (all capability levels join)createGossipSubSignaling()— GossipSub-based signaling adapter that registers in y-webrtc'ssignalingConnsmapSyncManager— interface for connection status, cleanup, andonStatusChange(cb)for reacting to y-webrtc provider status events (e.g. after PBKDF2 key derivation completes)SyncOptions— configuration (ICE servers, peer options)PubSubLike— minimal pubsub interface for GossipSub integration
