Electric: PGLite Sync Engine

Use Electric to solve PostgreSQL data synchronization challenges with partial replication and real-time data transfer.

Electric is a PostgreSQL sync engine that solves complex data synchronization problems.

Electric supports partial replication, fan-out delivery, and efficient data transfer, making it ideal for building real-time and offline-first applications.

Quick Start

cd ~/pigsty/app/electric
make up     # Start Electric service

Access URL: http://electric.pigsty or http://10.10.10.10:3000

Features

  • Partial Replication: Sync only the data you need
  • Real-time Sync: Millisecond-level data updates
  • Offline-first: Work offline with automatic sync
  • Conflict Resolution: Automatic handling of data conflicts
  • Type Safety: TypeScript support

Last Modified 2026-01-09: add supabase asciinema demo (693cfa8)