Home/AI Agents/electric
electric logo

electric

electric-sql/electric

An agent platform built on sync.

GraphCanon updated 2d · GitHub synced 2d

10k stars366 forksLast push 1w TypeScript Apache-2.0

Decision brief

Electric is a platform facilitating data synchronization with Postgres via HTTP API or client integrations, leveraging CRDTs for conflict-free replicated data types.

Good fit when

  • You require conflict-free replication for distributed systems where ensuring consistency and managing concurrent updates are critical.
  • Your development relies heavily on real-time synchronization capabilities with a Postgres database, enabling seamless integration via HTTP API or client integrations.

Avoid when

  • If your project does not involve handling concurrent updates across multiple nodes or needs minimal consistency guarantees since Electric's strength lies in its robust synchronization mechanisms.
  • For scenarios where the primary requirement is rapid data retrieval (read-heavy operations) from a central database without much need for distributed sync capabilities, as Electric might introduce an层

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (10,327) are secondary evidence.

npm downloads (30d)
576·npm downloads API·2d

Maintenance and security

Full trust report
Maintenance
Very active (5d since push)
As of 2d
Provenance
Not a fork · Organization account
As of 2d
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install electric
npm

How it fits your stack(4)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Electric-SQL/electric is a platform built around data synchronization using CRDTs, allowing developers to interact with Postgres via HTTP API or various client integrations. It supports logical replication and uses TypeScript as primary language.

Capability facts

MCP server
No MCP server detected

Source: repo_scan · Aug 19, 2026

Languages
typescript, javascript

Source: github.language+package.json · Aug 19, 2026

Categories

Tags

README

Getting Started

See the Quickstart guide to get up and running. In short, you need to:

  1. have a Postgres database with logical replication enabled; and then to
  2. run Electric in front of it, connected via DATABASE_URL

For example, using Docker Compose from the root of this repo:

docker compose -f .support/docker-compose.yml up

You can then use the HTTP API to sync data from your Postgres. For example, to start syncing the whole foo table:

curl -i 'http://localhost:3000/v1/shape?table=foo&offset=-1'

Or use one of the clients or integrations, such as the useShape React hook:

import { useShape } from '@electric-sql/react'

function Component() {
  const { data } = useShape({
    url: `http://localhost:3000/v1/shape`,
    params: {
      table: `foo`,
      where: `title LIKE 'foo%'`,
    },
  })

  return JSON.stringify(data)
}

Again, see the Quickstart and the Docs for more details.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.