This is an experimental extension for CRDTs, pg_crdt: GitHub repo[0]. It supports Yjs/Yrs and Automerge.
The linked blog post [1] describes how we're thinking about this extension in a Supabase context. I want to emphasise this part: "pg_crdt has not been released onto the Supabase platform (and it may never be). We’re considering many options for offline-sync/support and, while CRDTs will undoubtedly factor in, we’re not sure if this is the right approach."
[0] GitHub repo: https://github.com/supabase/pg_crdt
[1] Blog post: https://supabase.com/blog/postgres-crdt
[0] Yjs: https://github.com/yjs/yjs
[1] Automerge: https://github.com/automerge/automerge
[3] pgx: https://github.com/tcdi/pgx