yrby

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.