Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
81–90 of 173 posts
Re: Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
#82It took me a while to understand the usecase but this is a very good solution for apps that are read intensive, wonder why this pattern isn't very common.
Re: Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
#83Re: Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
#84I saw this recently and I am really excited for, hopefully, a renaissance in local-first apps; it's been quite a long time coming. That said, it seems like there's still a lot of problems to work on in this space and it'll take a while for different approaches and implementations to approach their local maxima. I am curious about encryption. Assuming that ElectricSQL is handling essentially all of the syncing, is it…
If you want encrypted and shared with other devices or users you have to surface key management to users which is very difficult to do. Signal and a few others do this but they’re very bespoke to the specific business logic. To provide a general purpose abstraction layer is still an open problem, afaik.
Re: Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
#85Is the SQLite embedded in the browser?
The SQLite team has been working on making WASM support first class, so should work anywhere WASM does.
Re: Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
#86I saw this recently and I am really excited for, hopefully, a renaissance in local-first apps; it's been quite a long time coming. That said, it seems like there's still a lot of problems to work on in this space and it'll take a while for different approaches and implementations to approach their local maxima. I am curious about encryption. Assuming that ElectricSQL is handling essentially all of the syncing, is it…
Re: Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
#87I saw this recently and I am really excited for, hopefully, a renaissance in local-first apps; it's been quite a long time coming. That said, it seems like there's still a lot of problems to work on in this space and it'll take a while for different approaches and implementations to approach their local maxima. I am curious about encryption. Assuming that ElectricSQL is handling essentially all of the syncing, is it…
You can always encrypt local data even if the metadata is not encrypted. But that restricts it to the device itself by default, not even your other devices on the same account can read it. If you want encrypted and shared with other devices or users you have to surface key management to users which is very difficult to do. Signal and a few others do this but they’re very bespoke to the specific business logic. To pro…
Just like TLS, it'd probably be bad if most people implemented SRP from scratch. That said, I did write my own implementation of SRP-6a (a variant of SRP based on the RSA cryptosystem) in TypeScript and I found it fairly simple to do. There are also PAKEs that provide even better security properties than SRP-6a, but good implementations of them are still lacking for now.
What Matrix does seems pretty simple, it just has a lot of moving parts and nuance; the underlying keys are essentially sent directly between clients after a key exchange is performed and verified out of band to ensure there is no eavesdropping and that the two clients are connected to who they think they are.
As far as I know, Signal sidesteps key management almost entirely and only allows one logged in device, and everything else must proxy through it. That's pretty lame, though I understand the stakes are very high to get it 'right' and keeping the moving parts to a minimum was likely high priority.
Re: Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
#88I want to be able to have a Postgres database as the central source of truth for all data and user accounts, but then have each users private content to be siloed and synced to their own SQLite database which they alone have access to (maybe even they’re have one SQLite file on server and one SQLite file on phone or etc.). Is this possible with electricSQL? I remember looking at it a year ago or so and was excited bu…
Hey, This is the exact pattern we target :) Drop Electric onto an existing Postgres data model and use the Shape-based sync to manage dynamic partial replication of subsets of data between central Postgres and local SQLites: https://electric-sql.com/docs/usage/data-access/shapes James
Re: Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
#89Nice. When I looked at this last some months ago it only supported multi-tentant setups (where a whole db/table is synced) but seems like it now suports row based users, correct?