Lurker News
Hi HN, James, Valter, Sam and the team from ElectricSQL here.

We're really excited to be sharing ElectricSQL with you today. It's an open source, local-first sync layer that can be used to build reactive, realtime, offline-capable apps directly on Postgres with two way active-active sync to SQLite (including with WASM in the browser).
Electric comprises a sync layer (built with Elixir) placed in front of your Postgres database and a type safe client that allows you to bidirectionally sync data from your Postgres to local SQLite databases. This sync is CRDT-based, resilient to conflicting edits from multiple nodes at the same time, and works after being offline for extended periods.
Some good links to get started:
- website: https://electric-sql.com
- docs: https://electric-sql.com/docs
- code: https://github.com/electric-sql/electric
- introducing post: https://electric-sql.com/blog/2023/09/20/introducing-electri...
You can also see some demo applications:
- Linear clone: https://linear-lite.electric-sql.com
- Realtime demo: https://electric-sql.com/docs/intro/multi-user
- Conflict-free offline: https://electric-sql.com/docs/intro/offline
The Electric team actually includes two of the inventors of CRDTs, Marc Shapiro and Nuno Preguiça, and a number of their collaborators who've pioneered a lot of tech underpinning local-first software. We are privileged to be building on their research and delighted to be surfacing so much work in a product you can now try out.

Comments (170) 71 threads

Earlier comments
android521#
I haven't checked the details yet but could this be used in react native?
Jonovono#
Been looking for something like this. I came across https://www.powersync.co the other day, which looks like similar goals.

Would love to see something like this natively for iOS.

zubairq1 reply#
Is the SQLite embedded in the browser?
pstuart2 replies#
It is in Firefox.

The SQLite team has been working on making WASM support first class, so should work anywhere WASM does.

zubairq1 reply#
Ok, so are you saying that currently Electric SQL only works with Firefox, but NOT with Google Chrome?
pstuart#
Can't speak to that, only that Firefox embeds SQLite. WASM support should make it ubiquitous in browsers.
iamwil#
How do you access the SQLite database in Firefox? Is there docs you can point me to?
orixilus1 reply#
Is MySQL support on your roadmap?
thruflo#
Potentially, but not for a while at least.

Technically it’s possible to support different backend databases. But we want to focus on getting Postgres right first.

Load more comments