Automic VaultAutomic Vault

brew

使用 Homebrew, apt, MacPorts 安装 electric

查看 electric 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install electric

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install electric

MacPorts ports tree · graphics/electric/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install electric

Debian stable package indexes · electric · 来源: deb.debian.org

概览

软件包摘要

Real-time sync for Postgres

命令和别名

  • electric

历史

项目历史与用法

Electric is an open-source Postgres sync engine. It focuses on syncing data out of Postgres into local clients over HTTP, using Shapes for partial replication and client libraries or framework integrations for consumption.

项目历史

The electric-sql/electric repository was created in June 2022. The project grew around the local-first application problem: keeping local UI state fast while retaining Postgres as the source database.

Electric's own 1.0 release notes describe a major 2024 rebuild that made the sync engine simpler, faster, more reliable, and more scalable. The project reached beta in December 2024 and then announced 1.0 general availability in March 2025 with stable APIs for the core sync service.

采用历史

Electric's adoption story is tied to production local-first and real-time workloads rather than traditional database administration. The 1.0 announcement cites production users, managed Electric Cloud, open-source users, and workloads that process large volumes of sync traffic.

The project has also broadened through integrations and examples: the official docs list TypeScript clients, React integration, framework integrations, deployment guides, demos, and the related PGlite project.

使用方式

A typical Electric setup runs the sync service in front of a Postgres database with logical replication enabled and a `DATABASE_URL`. Clients consume the HTTP API directly or through libraries such as the TypeScript client and React hooks.

Developers use Electric when they want local-first or real-time application behavior without writing their own fan-out, partial replication, and data delivery layer. The README highlights Shapes as the primitive for selecting the subset of Postgres data to sync.

为什么软件包爱好者会关心

Electric is package-nerd interesting because it packages database synchronization as a developer-service CLI/runtime rather than a framework-only library. It sits at the intersection of Postgres, local-first apps, HTTP APIs, client packages, and deployment tooling.

时间线

  • 2022: GitHub repository created.
  • 2024: Electric rebuilt around a simpler, faster sync engine.
  • 2024: Beta announced with production users and updated docs.
  • 2025: Electric 1.0 released with stable sync service APIs.

Related projects

  • Electric is related to Postgres logical replication, PGlite, TanStack integrations, Phoenix integrations, local-first data libraries, and real-time sync systems such as Replicache or custom WebSocket fan-out services.

安全态势

尚未找到受保护工具覆盖

没有找到 electric 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
electriccli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.7.8
管理器更新时间2026-07-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/electric-sql/electric

安装元数据

软件包元数据

软件包键brew:electric
版本1.7.8
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/electric
主页https://electric-sql.com
仓库https://github.com/electric-sql/electric
上游文档https://electric-sql.com/docs
许可证Apache-2.0
源码归档https://github.com/electric-sql/electric/archive/refs/tags/@core/sync-service@1.7.8.tar.gz
最后更新2026-07-22T16:03:49Z
Pulseupdated
依赖openssl@3
构建依赖elixir, erlang@28
macOS 提供的库ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameelectric
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

electric 9.07+dfsg-7

electrical CAD system

http://www.staticfreesoft.com/productsFree.html

sudo apt install electric
  • Section: electronics
  • Architecture: all
  • 8 依赖
  • normalized package name match
  • 匹配方式:Electric
Debian stable package indexes · deb.debian.org · Debian stable package indexes: electric from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

electric 9.07+dfsg-7

electrical CAD system

http://www.staticfreesoft.com/productsFree.html

sudo apt install electric
  • Section: universe/electronics
  • Architecture: all
  • 8 依赖
  • normalized package name match
  • 匹配方式:Electric
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: electric from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
MacPorts95%

electric

sudo port install electric
  • normalized package name match
  • 匹配方式:Electric
MacPorts ports tree · api.github.com · MacPorts ports tree: graphics/electric/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment