logoalt Hacker News

keepupnowyesterday at 12:31 AM2 repliesview on HN

You built your own sync engine? Why?


Replies

MegagramEnjoyeryesterday at 2:48 PM

if you mean why I didn't choose a lib like automerge, yjs and instead handrolled it - that's because these libs are geared towards plaintext.

Bramble's sync is built around its own encrypted vault instead. When two devices conflict it just compares timestamps on the encrypted entries and keeps the newer one as-is, without ever unwrapping your per-entry keys to merge. Nothing off the shelf did that against my vault format, so the core is custom. It's a pretty simple implementation tbh

show 2 replies
ramon156yesterday at 6:29 AM

Most sync engines are targeted towards being fast. I suppose for a PM you'd want one that's very resource efficienct. I'm just spitballing here, I'm not OP

show 1 reply