
ElectricSQL Has a Free API — Sync PostgreSQL to Your App in Real-Time
TL;DR ElectricSQL syncs your PostgreSQL database to local SQLite in the browser or mobile app — giving you instant reads, offline support, and real-time sync. It's the local-first approach to building reactive apps. What Is ElectricSQL? ElectricSQL enables local-first development: Sync PostgreSQL to local — data lives on the client Instant reads — query local SQLite, no network latency Offline support — works without internet Real-time sync — changes propagate instantly CRDT-based — conflict-free concurrent editing React hooks — live queries that auto-update Free — Apache 2.0 How It Works PostgreSQL (source of truth) ↕ Electric sync layer Local SQLite (in browser/mobile) ↕ Your app reads/writes locally Quick Start npm install electric-sql Define Your Schema -- In PostgreSQL CREATE TABLE todos ( id UUID PRIMARY KEY DEFAULT gen_random_uuid (), title TEXT NOT NULL , completed BOOLEAN DEFAULT false , created_at TIMESTAMPTZ DEFAULT now () ); -- Enable Electric sync ALTER TABLE todos ENABLE
Continue reading on Dev.to React
Opens in a new tab


