Skip to content

Collaboration

Lily Howan edited this page Oct 23, 2022 · 4 revisions

Yjs

Yjs is a shared editing framework. It exposes Shared Types that can be manipulated like any other data type but are also synced automatically.

y-webrtc

This is the provider used to connect users editing a note. Due to the serverless environment, a WebSocket connection will not work, meaning a third-party connection handler will be needed if WebRTC is undesirable. A room-name, ydoc and an optional password are required to create the connection. All users within the same room and ydoc will be connected to each other over an encrypted peer connection.

Y.Doc()

Y.Doc() is a shared CRDT strategy which handles all user updates.

Clone this wiki locally