~/talk

Building Real-Time Multi-User Apps With JSON Patches

links:none on file
slides:none on file

Library released as an npm package that adds real‑time multi‑user sync to a production design tool (BuilderX) using json patches generated by Immer, with an API of createDocumentStore, a useDoc hook and setDoc callbacks. It uses Redux under the hood but avoids react‑redux by pushing updates to components listening to a document path, offers a history plugin that stores patches (not snapshots) for compact undo/redo, and a remote plugin that buffers, reorders and reconciles patches on the server with last‑write‑wins conflict resolution; experimental but working in the BuilderX product.

AI-written summary · about

  1. 0:00Introduction to BuilderX
  2. 1:44Understanding JSON patches
  3. 4:21Benefits of patch-based storage
  4. 6:54Handling conflicts and sync
  5. 8:53Sync state library overview
  6. 11:18Push vs. pull strategies
  7. 13:37Counter example implementation
  8. 16:15History and undo features
  9. 18:26Remote multi-user syncing
  10. 22:45Future outlook and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.