Ygo

Pure-Go port of Yjs, byte-compatible with its V1 and V2 wire formats

Image 1 of 1: Ygo collaborative editor demo with a shared text area, backed by a pure-Go server

Runs the Yjs CRDT in Go with no CGO, so JavaScript clients on yjs@13 sync directly with Go servers, and gomobile reaches iOS and Android. A Hocuspocus-compatible server ships as one static binary with SQLite persistence and multi-instance clustering.

  • 160 KBB4 doc size (V2)
  • 4.4 msB4 parse (M3)
  • ~20 bytesUpdate per append

Trade-offs

  • Commit-time squash and GC over raw apply speed. Documents shrink 8.8x on the B4 trace, but applying all edits takes 20.3 s, about 3.5x yjs on different hardware.
  • Pure Go, no C-FFI. Binaries cross-compile and bind to mobile, and the CRDT core builds for wasm, but the SQLite-backed store has no wasm target.
  • Yjs wire format only. Byte-level compatibility is the main guarantee, so Loro, Automerge and RGA stay out of scope.

Q&A4

Fixtures regenerate from pinned yjs@13.6.33 on every CI run, JS to Go and Go to JS, and git diff --exit-code testdata/ catches byte-level regressions.

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 →
    • YAOSReal-time Obsidian sync engine on a self-deployed Cloudflare Worker
    • Edge ScannerLocal intraday stock scanner with setups built without code
    • yrbyYjs backend for Rails on y-crdt, with no Node process to run
    • 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 Go

    See all 99 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • OmagenImage-to-theme studio for Omarchy with reversible previews and recovery
    • XDPerfXDP traffic generator with WASM packet plugins
    • pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
    • PandaWardLocal application security assessment that reports what it couldn't decide