Demos
Each demo syncs a different kind of Yjs document through the same Rails
app. Each room is one record with a document per demo, declared with
has_collaborative_document. The shape demos use
RoomChannel, yrby-rails' own document channel, which saves
every update, sends it to everyone in the room, and has no code for any
particular demo. The Lexxy demo uses LexxyChannel,
lexxy-realtime's channel, which also renders the room's body to HTML after
each change. Every demo page has a panel that shows what Ruby reads from
the saved state.
New to yrby? Start with the record-backed editor.
It runs the quickstart code on a single record, with
collaborative_document_tag and a CodeMirror editor.
Each demo opens in a new room with its own URL. Share the URL to edit together. Anyone with the link can edit the room. A room is deleted after 24 hours with no edits and nobody connected, so please don't paste anything private.
-
Y.XmlTextBasecamp's Lexxy editor. After each change, the server renders the document to HTML and saves it to a record. -
Y.XmlFragmentRich text with Tiptap's own collaboration extensions, including other people's cursors. -
Y.Array of row Y.MapsEach cell is its own Y.Map, so edits to different cells merge. Each window sorts on its own. -
Y.Map of Y.MapsSticky notes you can add, drag, and edit together. -
Y.Array of Y.MapsMoving a card changes one field, so two people can move different cards at the same time. -
Y.Array of Y.MapsMessages with reactions. Everyone sees who is typing, and a message shows up only when it's sent. -
Y.TextCodeMirror 6 with y-codemirror.next, including other people's cursors and selections. -
Y.Map of Y.TextsEach text field is a Y.Text, so two people typing in the same field both keep their edit. A choice is a plain value, and the last pick wins.