How we sync Postgres to the browser: ElectricSQL for rows, Yjs for documents (opens in new tab)馃摯Offline-First

A deep dive into the sync layer that makes Plain feel fast and collaborative. The browser holds a live replica of the slice of Postgres it's looking at, and edits documents as CRDTs. Two sync engines, one principle: subscribe to state, not endpoints. Here's how it works, end to end.

Read the original article
Sign in to keep reading the full article.

Cited by 1 article

tldr.tech

Keyboard Shortcuts

Navigation

Next / previous item
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help