Local first Development

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2025 May 6 22:19
Editor
Edited
Edited
2025 Aug 1 13:2

Optimistic Update
+

Local first Development Sync Engines
 
 
 
 

Local first Development
CRDT

To synchronize without an asymmetric server, the server needs to merge changes without knowing the content. For this, homomorphic encryption is proposed instead of traditional encryption.
  1. Using the TFHE library, the server performs encrypted numerical operations (addition/multiplication) with a server key generated by the client, and the client decrypts the results to obtain correct sum and multiplication results.
  1. To apply homomorphic encryption to LWW (Last-Write-Wins) Register CRDT, all branches and iterations must be performed a fixed number of times, and use the select operation with encrypted boolean values for conditional replacement to prevent leaks.
While homomorphic encryption CRDT is theoretically possible, it has fundamental limitations in terms of keys, performance, and space, making it difficult to immediately apply to real local-first apps.
Homomorphically Encrypting CRDTs | jakelazaroff.com
Homomorphic encryption allows a computer to run programs on encrypted data. Learn how homomorphic encryption works through interactive examples, build a homomorphically encrypted CRDT and see whether it has promise for local-first software.
Homomorphically Encrypting CRDTs | jakelazaroff.com
so fast
Zero Bugs
Bug tracking with Zero.
Zero Bugs
Sync Engines and Local Data
🔥 Be the ~14,700th person to join our super tasty newsletter https://bit.ly/syntax_snackpack Wes and Scott talk about local-first sync engines—why they matter, what makes apps feel fast, and which platforms stand out. From LiveStore to Convex to Instant DB, they break down the pros and cons of each and debate what the “next React” might look like in a local-first future. (00:00) - Welcome to Syntax! (01:52) - Intro to local data: what makes apps feel fast (05:08) - Could the next React be a local-first sync engine? (08:23) - LiveStore (18:01) - Zero Sync (21:58) - InstantDB (24:18) - Brought to you by Sentry.io (24:43) - Convex (27:54) - ElectricSQL (29:48) - PowerSync and PartyKit (30:51) - Choosing the right sync engine (40:34) - Sick Picks + Shameless Plugs All links available at https://syntax.fm/924 ------------------------------------------------------------------------------ Hit us up on Socials! Syntax: https://x.com/syntaxfm Scott: https://x.com/stolinski Wes: https://x.com/wesbos CJ: https://x.com/CodingGarden Randy: https://www.youtube.com/@randyrektor http://www.syntax.fm Brought to you by Sentry.io #webdevelopment #webdeveloper #javascript #syntax #syntaxfm #webdev
Sync Engines and Local Data
 
 
 

Recommendations