ZeBridge – PostgreSQL replicas on devices, synchronized over NATS
ndrean
30 points
15 comments
November 03, 2026
Related Discussions
Found 5 related stories in 39.5ms across 3,874 title embeddings via pgvector HNSW
- PostgreSQL Extensions in Go valyala · 133 pts · November 21, 2026 · 47% similar
- Gnomon. Git for Postgres data, built for agents shawkisukkar · 22 pts · November 13, 2026 · 45% similar
- Show HN: db-branch – database branches in seconds for AI agents and CI, via ZFS nu_nu11 · 39 pts · November 15, 2026 · 44% similar
- The Internals of PostgreSQL ibobev · 205 pts · November 03, 2026 · 44% similar
- PostgreSQL 19 jascha_eng · 13 pts · November 19, 2026 · 44% similar
Discussion Highlights (2 comments)
ndrean
I built ZeBridge to keep a local database on each device (SQLite, PGlite or DuckDB) in sync with a central PostgreSQL, for apps that must keep working on a bad connection. It's aimed at B2B operational apps (fleets, depots, field teams), where each customer organisation is a tenant. It isn't built for consumer apps with one tenant per user. How it works: a bridge written in Zig reads PostgreSQL's logical replication and publishes changes to NATS JetStream, one stream per tenant. Clients seed from snapshots kept in the NATS object store, then follow the stream. Writes made offline wait in a local outbox. When the device reconnects they go to PostgreSQL, which applies your rules (functions, row-level security) and sends back a verdict for each one. PostgreSQL stays the authority; NATS only carries the data. The same NATS connection also reaches your own services. The live demo uses this to ask a routing service for a truck's route: https://bridge.zebridge.eu/demo (five trucks on a map of 16,173 charge points; open it in two tabs). Clients: TypeScript (browser and Node), and a native Zig library with a C ABI, wrapped for Swift, Android, React Native, Flutter and Python.
satvikpendem
Is this like ElectricSQL which was acquired recently?