ElectricSQL icon

ElectricSQL

Local-first sync layer.

electric-sql.com
Screenshot of ElectricSQL

About ElectricSQL

ElectricSQL enables the creation of reactive, realtime, local-first applications directly on Postgres. It provides a sync layer that allows seamless data synchronization between a cloud-based Postgres database and local SQLite or PGlite databases in the application. With ElectricSQL, developers can control data access using row-level Data Definition Language (DDL) rules and manage dynamic partial replication through "Shapes."

The tool supports live queries that are type-safe, reactive, and run purely against locally synced data, ensuring full SQL support. It also features local writes, which are immediate, reactive, and conflict-free, eliminating the need for state management libraries. ElectricSQL is designed to enhance modern user experience by providing instant reactivity, realtime multi-user collaboration, and offline conflict resolution using Conflict-free Replicated Data Types (CRDTs).

Operationally, ElectricSQL simplifies backend services by standardizing on a scalable replication protocol, reducing the cloud compute bill, and naturally tolerating network and backend downtime. It is compatible with existing Postgres-based systems and integrates smoothly with popular backend frameworks like Phoenix, Prisma, Rails, SQLAlchemy, Laravel, and frontend libraries like React, React Native, Expo, Vue, and Solid. The tool is open-source, licensed under Apache 2.0, and supports deployment via Docker, Kubernetes, and Fly.io.

📊 Repository Stats

Stars
9.1K
Forks
260
Last commit
17 hours ago
Repository age
3 years
License
Apache License 2.0

Auto-fetched from GitHub today.