Libraries
Framework
Start
Router
Data & State
Query
DB
Store
AI
UI
Table
Charts
Form
Markdown
Highlight
UX
Virtual
Pacer
Hotkeys
Tooling
Devtools
Config
CLI
Intent
Browse all libraries
Blog
Blog & Release Notes
About
YouTube
The official TanStack channel.
Workshops
Live sessions from the maintainers.
Release Notes
The latest releases and changelog.
Community
Channels
Discord
Real-time community support.
GitHub
Source, issues, discussions, and releases.
People & Work
Maintainers
Meet the people maintaining the stack.
Showcase
Projects selected by the TanStack team.
Community projects
Tools
Tools
Application Starter
Alpha
Generate TanStack app starters.
Builder
Alpha
Build and share TanStack projects.
Stats
NPM and ecosystem usage data.
Merch
View all
Support
Support
Support Overview
Find the right support path.
Partners
Companies supporting TanStack.
OSS Sponsors
Sponsors keeping TanStack open source.
Enterprise Support
Private consulting and expert support.
Contact
Get in touch with the TanStack team.
About
Ethos
How we approach open source.
Tenets
The values that shape TanStack libraries.
Design System
Logos, tokens, and UI components.
Search
Ask AI
Libraries
Blog
Community
Tools
Merch
Support
Search
Ask AI
Sign In
Back
TanStack Intent
/
Registry
/
@electric-sql/client
Fetching package from npm...
TanStack Intent
/
Registry
/
@electric-sql/client
@electric-sql/client
1.5.28 (latest) — 8 skills
1.5.27 — 8 skills
1.5.26 — 8 skills
1.5.25 — 8 skills
1.5.24 — 8 skills
1.5.23 — 8 skills
1.5.22 — 8 skills
1.5.21 — 8 skills
1.5.20 — 8 skills
1.5.19 — 8 skills
1.5.18 — 8 skills
1.5.17 — 8 skills
1.5.16 — 8 skills
1.5.15 — 8 skills
1.5.14 — 8 skills
1.5.13 — 8 skills
1.5.12 — 8 skills
1.5.11 — 0 skills
1.5.10 — 0 skills
1.5.9 — 0 skills
1.5.8 — 0 skills
1.5.7 — 0 skills
1.5.6 — 0 skills
1.5.5 — 0 skills
1.5.4 — 0 skills
1.5.3 — 0 skills
1.5.2 — 0 skills
1.5.1 — 0 skills
1.5.0 — 0 skills
1.4.2 — 0 skills
1.4.1 — 0 skills
1.4.0 — 0 skills
1.3.1 — 0 skills
1.3.0 — 0 skills
1.2.2 — 0 skills
1.2.1 — 0 skills
1.2.0 — 0 skills
1.1.5 — 0 skills
1.1.4 — 0 skills
1.1.3 — 0 skills
1.1.2 — 0 skills
1.1.1 — 0 skills
1.1.0 — 0 skills
1.0.14 — 0 skills
1.0.13 — 0 skills
1.0.12 — 0 skills
1.0.11 — 0 skills
1.0.10 — 0 skills
1.0.9 — 0 skills
1.0.8 — 0 skills
1.0.7 — 0 skills
1.0.6 — 0 skills
Copy install prompt
Postgres everywhere - your data, in sync, wherever you need it.
Skills
(8)
Skills
All Skills
8
electric-debugging
lifecycle
electric-deployment
lifecycle
electric-new-feature
lifecycle
electric-orm
composition
electric-postgres-security
security
electric-proxy-auth
core
electric-schema-shapes
core
electric-shapes
core
Skills
8
History
electric-debugging
lifecycle
Troubleshoot Electric sync issues. Covers fast-loop detection from CDN/proxy cache key misconfiguration, stale cache diagnosis (StaleCacheError), MissingHeadersError from CORS misconfiguration, 409 shape expired handling, SSE proxy buffering (nginx proxy_buffering off, Caddy flush_interval -1), HTTP/1.1 6-connection limit in local dev (Caddy HTTP/2 proxy), WAL growth from replication slots (max_slot_wal_keep_size), Vercel CDN cache issues, and onError/backoff behavior. Load when shapes are not receiving updates, sync is slow, or errors appear in the console.
218 lines
electric-deployment
lifecycle
Deploy Electric via Docker, Docker Compose, or Electric Cloud. Covers DATABASE_URL (direct connection, not pooler), ELECTRIC_SECRET (required since v1.x), ELECTRIC_INSECURE for dev, wal_level=logical, max_replication_slots, ELECTRIC_STORAGE_DIR persistence, ELECTRIC_POOLED_DATABASE_URL for pooled queries, IPv6 with ELECTRIC_DATABASE_USE_IPV6, Kubernetes readiness probes (200 vs 202), replication slot cleanup, and Postgres v14+ requirements. Load when deploying Electric or configuring Postgres for logical replication.
215 lines
electric-new-feature
lifecycle
End-to-end guide for adding a new synced feature with Electric and TanStack DB. Covers the full journey: design Postgres schema, set REPLICA IDENTITY FULL, define shape, create proxy route, set up TanStack DB collection with electricCollectionOptions, implement optimistic mutations with txid handshake (pg_current_xact_id, awaitTxId), and build live queries with useLiveQuery. Also covers migration from old ElectricSQL (electrify/db pattern does not exist), current API patterns (table as query param not path, handle not shape_id). Load when building a new feature from scratch.
367 lines
electric-orm
composition
Use Electric with Drizzle ORM or Prisma for the write path. Covers getting pg_current_xact_id() from ORM transactions using Drizzle tx.execute(sql) and Prisma $queryRaw, running migrations that preserve REPLICA IDENTITY FULL, and schema management patterns compatible with Electric shapes. Load when using Drizzle or Prisma alongside Electric for writes.
190 lines
electric-postgres-security
security
Pre-deploy security checklist for Postgres with Electric. Checks REPLICATION role, SELECT grants, CREATE on database, table ownership, REPLICA IDENTITY FULL on all synced tables, publication management (auto vs manual with ELECTRIC_MANUAL_TABLE_PUBLISHING), connection pooler exclusion for DATABASE_URL (use direct connection), and ELECTRIC_POOLED_DATABASE_URL for pooled queries. Load before deploying Electric to production or when diagnosing Postgres permission errors.
197 lines
electric-proxy-auth
core
Set up a server-side proxy to forward Electric shape requests securely. Covers ELECTRIC_PROTOCOL_QUERY_PARAMS forwarding, server-side shape definition (table, where, params), content-encoding/content-length header cleanup, CORS configuration for electric-offset/electric-handle/ electric-schema/electric-cursor headers, auth token injection, Bun fetch concurrency cap (BUN_CONFIG_MAX_HTTP_REQUESTS default 256), ELECTRIC_SECRET/SOURCE_SECRET server-side only, tenant isolation via WHERE positional params, onError 401 token refresh, and subset security (AND semantics). Load when creating proxy routes, adding auth, or configuring CORS for Electric.
289 lines
electric-schema-shapes
core
Design Postgres schema and Electric shape definitions together for a new feature. Covers single-table shape constraint, cross-table joins using multiple shapes, WHERE clause design for tenant isolation, column selection for bandwidth optimization, replica mode choice (default vs full for old_value), enum casting in WHERE clauses, and txid handshake setup with pg_current_xact_id() for optimistic writes. Load when designing database tables for use with Electric shapes.
201 lines
electric-shapes
core
Configure ShapeStream and Shape to sync a Postgres table to the client. Covers ShapeStreamOptions (url, table, where, columns, replica, offset, handle), custom type parsers (timestamptz, jsonb, int8), column mappers (snakeCamelMapper, createColumnMapper), onError retry semantics, backoff options, log modes (full, changes_only), requestSnapshot, fetchSnapshot, subscribe/unsubscribe, and Shape materialized view. Load when setting up sync, configuring shapes, parsing types, or handling sync errors.
340 lines