Data
Local-First App Data Sync
Choose a client-data synchronization architecture by offline behavior, local storage, writes, authorization, conflicts, convergence, and backend ownership.
Recommendation
Choose the local data and write model before the sync product.
Offline-capable SQLite sync, Postgres read-path Shapes, an existing Replicache migration, and Zero's query-driven model have materially different write and lifecycle boundaries.12
For: Web and mobile teams that need local availability, reactive data, intermittent-connectivity behavior, or an installed Replicache migration path
Four sync routes
Local-first is an application architecture: client storage, authorization, writes, conflicts, schema evolution, and recovery cannot be delegated as a single feature.
Synchronization routes
Route by offline-write and backend architecture; do not treat every reactive client-data layer as bidirectional local-first sync.
Offline-capable local SQLite is required
Evaluate PowerSync.
Client-local databases and explicit synchronization can support responsive reads and writes through intermittent connectivity.
Verify: Sync rules or streams, write APIs, conflicts, authentication, schema changes, service operation, supported sources, and billing become core architecture.12
A reactive Postgres read path is enough
Evaluate Electric.
Shapes over HTTP can deliver application-specific Postgres subsets while the application retains its own write API.
Verify: This is not the legacy bidirectional product; writes, authorization, logical replication, schema operations, deployment, and economics remain explicit.123
You already operate Replicache
Maintain while planning migration.
Existing installations still require support and a deliberate migration path.
Verify: Do not recommend Replicache for new projects: its official site states maintenance mode and directs new investment toward Zero.124
Zero's current query-driven model fits
Evaluate Zero as a prospective route.
Reactive local reads and query-driven synchronization can suit Postgres web applications with compatible authorization and deployment needs.
Verify: Validate current offline-write behavior, self-hosted server components, Postgres replication, schema constraints, maturity, and recovery before commitment.1256
Boundary: This Task does not cover ETL, reverse ETL, general iPaaS, or arbitrary database replication. Database remains the authoritative backend decision unless a route explicitly defines otherwise.
The write path is the architecture
Reactive reads alone do not establish local-first behavior; write ownership and convergence determine the product contract.
- Offline writes
- Products differ on whether writes can originate offline, queue locally, or must use an online application API.12
- Data selection
- Sync rules, Shapes, subscriptions, and queries express authorization and client data scope differently.12
- Conflict model
- Ordering, merge policy, rejection, server authority, and user-visible reconciliation must match domain semantics.1
Official resources
Use the primary documentation to validate product boundaries, operating behavior, limits, and current commercial terms.
Related tools
Related tasks
Sources
Official documentation supporting the decision routes and their boundaries.
- 1PowerSync sync overview
PowerSync · Accessed Official
- 2Electric Sync documentation
ElectricSQL · Accessed Official
- 3Electric writes guide
ElectricSQL · Accessed Official
- 4Replicache maintenance notice
Rocicorp · Accessed Official
- 5Zero introduction
Rocicorp · Accessed Official
- 6Zero connection and offline behavior
Rocicorp · Accessed Official