Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps (opens in a new tab)electric-sql.com
617 pointsWe'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 commentsI still maintain that we need an interchange standard for write ahead logs, but tools like this are a step in the right direction.
I would like to point out thought why you may be underselling this. Local-first yes, but that dynamic can also apply to edge-networked apps (at least before everyone started equating edge networking with Lambda).
Excited to take a closer look.
Also, it reinforces that fact that everyone should pronounce SQL as 'squeal'.
'S.Q.L.' is far too many syllables, and 'sequel' isn't much better. 'Squeal' is just one syllable, so obviously better.
Also, I love how this project now has me singing "OO girl, shock me like an electricSQL".
I think that "sequel" and "squeal" have basically the exact same consonant and vowel sounds just in different orders.
I mean I know you're making a bit of a joke here, but I'm having fun saying the two words and picking apart the sounds.
Quick question about the business side of things: I saw you're Apache 2.0 and VC-backed. So what's the plan for making money down the line?
All comments shown.
Couldn't load more comments. Check your connection and try again.