Live data from Hacker News

SwirlDB: Modular-first, CRDT-based embedded database

docs.swirldb.org

11–13 of 13 posts

Re: SwirlDB: Modular-first, CRDT-based embedded database

#11
post #8
post #2

This could be exactly what I need, AES GCM field-level encryption support is a godsend. Unfortunately seems like it’s planned and not ready. If I hadn’t just finished rolling out a sync feature built around the Matrix protocol, I would have loved to properly try this out.

i've been vetting matrix. what sold you? what are you using it for? seems like it is resource intensive and still a bit rickety. you using yjs?

My app is for chat-based notes[1] and I have been wanting E2E local-first sync on it for a while. Switched from Realm to SQLite after it was deprecated but never found a good non-niche DB SDK for it on Flutter. Tried to handroll sync + AES-GCM encryption with Supabase Realtime and it kind of worked but I knew managing encryption was going to be hell and also wanted collaboration features. Matrix was built for chat, and at some point I read someone call it basically a graph sync engine & potentially supporting general texting with other clients also seemed like a cool bonus.

That said, adopting it (even partially) was/is a big mess, there's a thousand corner cases with key exchange, etc. so it's really a big commitment, especially if there's no existing user-friendly SDK for it.

I'm not using yjs (yet), just going to more basic event sourcing that is essentially last-write wins but that's a direction I want to explore in the future.

[1] https://tetrify.com/

Re: SwirlDB: Modular-first, CRDT-based embedded database

#12
post #8

Earlier quoted context omitted.

i've been vetting matrix. what sold you? what are you using it for? seems like it is resource intensive and still a bit rickety. you using yjs?

My app is for chat-based notes[1] and I have been wanting E2E local-first sync on it for a while. Switched from Realm to SQLite after it was deprecated but never found a good non-niche DB SDK for it on Flutter. Tried to handroll sync + AES-GCM encryption with Supabase Realtime and it kind of worked but I knew managing encryption was going to be hell and also wanted collaboration features. Matrix was built for chat, a…

neat congrats on shipping! yeah i was kind of in the same boat which is why instantdb seemed like a good fit but it's early days. matrix feels like a house of cards that is meandering a bit with a ton of msc's. you using synapse or?

Re: SwirlDB: Modular-first, CRDT-based embedded database

#13
post #12

Earlier quoted context omitted.

My app is for chat-based notes[1] and I have been wanting E2E local-first sync on it for a while. Switched from Realm to SQLite after it was deprecated but never found a good non-niche DB SDK for it on Flutter. Tried to handroll sync + AES-GCM encryption with Supabase Realtime and it kind of worked but I knew managing encryption was going to be hell and also wanted collaboration features. Matrix was built for chat, a…

neat congrats on shipping! yeah i was kind of in the same boat which is why instantdb seemed like a good fit but it's early days. matrix feels like a house of cards that is meandering a bit with a ton of msc's. you using synapse or?

Yep just Synapse with more liberal rate limits and no federation.
Post reply on HN