{"by":"matharmin","descendants":105,"id":38473743,"kids":[38481685,38487397,38484031,38481753,38485269,38481219,38480612,38481129,38508373,38480627,38481451,38486609,38485230,38481074,38481475,38481260,38486620,38509218,38481309,38482540,38481786,38485442,38481397,38485195],"score":356,"text":"Hi HN,<p>Today we’re launching PowerSync, a Postgres&lt;&gt;SQLite bi-directional sync engine that enables an offline-first app architecture. It currently supports Flutter, React Native and web (JavaScript) using Wasm SQLite in the browser, with more client SDKs on the way.<p>Conrad and I (Ralf) have been working on our sync engine since 2009, originally as part of a full-stack app platform. That version of the system is still used in production worldwide and we’ve learnt a lot from its use cases and scaling. About a year ago we started on spinning off PowerSync as a standalone product that is designed to be stack-agnostic.<p>If you’d like to see a simple demo, check out the pebbles widget on the landing page here: <a href=\"https:&#x2F;&#x2F;www.powersync.com&#x2F;\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;www.powersync.com&#x2F;</a><p>We wrote about our architecture and design philosophy here: <a href=\"https:&#x2F;&#x2F;www.powersync.com&#x2F;blog&#x2F;introducing-powersync-v1-0-postgres-sqlite-sync-layer\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;www.powersync.com&#x2F;blog&#x2F;introducing-powersync-v1-0-po...</a><p>This covers amongst other things how we designed the system for scalable dynamic partial replication, why we use a server authority architecture based on an event log instead of CRDTs for merging changes, and the approach to consistency.<p>Our docs can be found here: <a href=\"https:&#x2F;&#x2F;docs.powersync.com&#x2F;\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;docs.powersync.com&#x2F;</a><p>We would love to hear your feedback!\n- Ralf, Conrad, Kobie, Phillip and team","time":1701353605,"title":"Show HN: Bi-directional sync between Postgres and SQLite","type":"story","url":"https://powersync.com"}