{"by":"samwillis","descendants":170,"id":37584049,"kids":[37590034,37585535,37585220,37587852,37584395,37586645,37592347,37584945,37585073,37584293,37586630,37593363,37593214,37594609,37588864,37591138,37584329,37586643,37586547,37586111,37587814,37585363,37591514,37592749,37592069,37585357,37586473,37586306,37585510,37590480,37588813,37586036,37594074,37585798,37584246,37588088,37584232,37590659,37588923,37603496,37593649,37586255,37592707,37584202,37593570,37590228,37586779,37588066,37587863,37592993,37593697,37591402,37585423,37586701,37624813,37587661,37599304,37586430,37591442,37597380,37592445,37591975,37587998,37589478,37584248,37596361,37586227,37591762,37588212,37584800,37589088],"score":617,"text":"Hi HN, James, Valter, Sam and the team from ElectricSQL here.<p>We&#x27;re really excited to be sharing ElectricSQL with you today. It&#x27;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).<p>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.<p>Some good links to get started:<p>- website: <a href=\"https:&#x2F;&#x2F;electric-sql.com\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;electric-sql.com</a><p>- docs: <a href=\"https:&#x2F;&#x2F;electric-sql.com&#x2F;docs\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;electric-sql.com&#x2F;docs</a><p>- code: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;electric-sql&#x2F;electric\">https:&#x2F;&#x2F;github.com&#x2F;electric-sql&#x2F;electric</a><p>- introducing post: <a href=\"https:&#x2F;&#x2F;electric-sql.com&#x2F;blog&#x2F;2023&#x2F;09&#x2F;20&#x2F;introducing-electricsql-v0.6\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;electric-sql.com&#x2F;blog&#x2F;2023&#x2F;09&#x2F;20&#x2F;introducing-electri...</a><p>You can also see some demo applications:<p>- Linear clone: <a href=\"https:&#x2F;&#x2F;linear-lite.electric-sql.com\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;linear-lite.electric-sql.com</a><p>- Realtime demo: <a href=\"https:&#x2F;&#x2F;electric-sql.com&#x2F;docs&#x2F;intro&#x2F;multi-user\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;electric-sql.com&#x2F;docs&#x2F;intro&#x2F;multi-user</a><p>- Conflict-free offline: <a href=\"https:&#x2F;&#x2F;electric-sql.com&#x2F;docs&#x2F;intro&#x2F;offline\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;electric-sql.com&#x2F;docs&#x2F;intro&#x2F;offline</a><p>The Electric team actually includes two of the inventors of CRDTs, Marc Shapiro and Nuno Preguiça, and a number of their collaborators who&#x27;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.","time":1695217615,"title":"Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps","type":"story","url":"https://electric-sql.com/"}