yrby

Yjs backend for Rails on y-crdt, with no Node process to run

Image 1 of 1: Two labeled carets typing on separate lines of one document, synced through a Rails server

Binds y-crdt into Ruby and builds a sync server for Action Cable and AnyCable, a browser provider, and server-side reading and rendering. Every update reaches the store before it is acknowledged or sent on, so replaying the store rebuilds the document.

  • over 2xGVL-free parallel apply

Trade-offs

  • Durable write before every ack. Client retries and idempotent CRDT updates give at-least-once delivery, where most Yjs servers do not write first.
  • A small interface, not the full Yjs type system. Ruby treats a document as opaque CRDT state by default, and the live handles that write to it are experimental.
  • Native CRDT work releases the GVL. It runs in parallel on MRI and cannot stall the VM, and each call first copies the Ruby byte strings.

Q&A3

No. Pending edits survive page navigation within one tab, but that is not offline storage: closing or reloading the tab loses unacknowledged edits.

Reviews

Loading reviews

    More in Local-first

    See all 45 →
    • HashCortxLocal-first desktop workspace for chat, coding agents and agent teams
    • Desktop-2FAOffline TOTP manager for the terminal with an encrypted local vault
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • DettoOn-device meeting capture and dictation for macOS, written to a vault
    • OpenSubsSubtitle generator that transcribes and burns captions with no video upload
    • GNOLocal knowledge engine with hybrid search, cited answers and agent memory

    More in Realtime

    See all 23 →
    • YgoPure-Go port of Yjs, byte-compatible with its V1 and V2 wire formats
    • YAOSReal-time Obsidian sync engine on a self-deployed Cloudflare Worker
    • Edge ScannerLocal intraday stock scanner with setups built without code
    • hostcOne command gives a dev server a public HTTPS URL
    • VoxperySelf-hostable chat with voice and screen sharing, as an open Discord alternative
    • DripSelf-hosted tunnel to expose local services on a custom domain

    More in Rails

    See all 4 →
    • DobaseA self-hosted workspace of installable tools, from mail and boards to video
    • LastSignalSelf-hosted dead man's switch that delivers end-to-end encrypted messages
    • RoundhouseOps UI for Sidekiq and Solid Queue, mounted as a Rails engine
    • RclownSelf-hosted web UI that schedules rclone backups of object storage buckets