[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-asset-037c28d3":3,"seo:featured-workflow:037c28d3-4cf2-11f1-9bc6-00163e2b0d79:en":83,"workflow-related-asset-037c28d3-037c28d3-4cf2-11f1-9bc6-00163e2b0d79":84},{"id":4,"uuid":5,"slug":6,"title":7,"description":8,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":13,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":15,"tags":22,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":29,"asset_kind":30,"target_tools":31,"install_mode":35,"entrypoint":19,"risk_profile":36,"dependencies":39,"verification":44,"agent_metadata":47,"agent_fit":59,"trust":70,"provenance":79,"created_at":81,"updated_at":82},3000,"037c28d3-4cf2-11f1-9bc6-00163e2b0d79","asset-037c28d3","Electric — Postgres Sync Engine for Local-First Apps","A sync engine that streams data from Postgres into local apps, browsers, and edge services in real time, enabling local-first architectures with partial replication and CDN-friendly delivery.","8a911193-3180-11f1-9bc6-00163e2b0d79","AI Open Source","",0,2,"en",[16],{"id":17,"step_order":18,"title":19,"description":11,"prompt_template":20,"variables":11,"depends_on":21,"expected_output":11},3563,1,"Electric Overview","# Electric — Postgres Sync Engine for Local-First Apps\n\n## Quick Use\n```bash\n# Run Electric sync service alongside your Postgres\ndocker run -e DATABASE_URL=postgresql:\u002F\u002Fuser:pass@host\u002Fdb \n  -p 3000:3000 electricsql\u002Felectric\n\n# Client-side: fetch a Shape (subset of data)\ncurl \"http:\u002F\u002Flocalhost:3000\u002Fv1\u002Fshape?table=items&where=status=active\"\n```\n\n## Introduction\nElectric is a Postgres sync engine that streams real-time data changes from your database into client applications. It uses a concept called Shapes to define partial replicas of your data, and delivers them through an HTTP API designed to work with CDNs for scalable fan-out.\n\n## What Electric Does\n- Streams real-time change data from Postgres tables to any HTTP client\n- Supports partial replication using Shapes that filter by table, columns, and where clauses\n- Delivers data over a simple HTTP API compatible with CDNs and edge caching\n- Provides client libraries for React, TypeScript, and Elixir with reactive data hooks\n- Maintains causal consistency guarantees for synced data subsets\n\n## Architecture Overview\nElectric connects to Postgres via logical replication and consumes the WAL (write-ahead log) to track data changes. It maintains an internal shape log that partitions changes by shape definition. Clients subscribe to shapes over HTTP using long-polling or streaming responses. The HTTP protocol is designed so that CDNs can cache and serve shape responses, reducing load on the Electric service for high fan-out scenarios.\n\n## Self-Hosting & Configuration\n- Deploy Electric as a Docker container or standalone binary alongside your Postgres instance\n- Set the `DATABASE_URL` environment variable pointing to your Postgres database\n- Enable logical replication on your Postgres (`wal_level = logical`)\n- Define shapes via query parameters on the HTTP API (`table`, `columns`, `where`)\n- Place a CDN in front of the Electric HTTP endpoint for production-scale delivery\n\n## Key Features\n- Shape-based sync: clients subscribe to exactly the data subset they need\n- CDN-compatible: HTTP responses use standard cache headers for edge delivery\n- Framework integrations: `useShape()` hooks for React and helpers for other frameworks\n- Incremental sync: clients receive only the changes since their last sync offset\n- No vendor lock-in: uses standard Postgres logical replication with no database extensions required\n\n## Comparison with Similar Tools\n- **Supabase Realtime** — WebSocket-based change notifications; Electric provides full data sync with offline support\n- **Firebase** — proprietary real-time database; Electric syncs from your own Postgres\n- **PowerSync** — Postgres sync to SQLite; Electric syncs to any client without requiring SQLite\n- **Liveblocks** — real-time collaboration primitives; Electric is a general-purpose data sync layer\n- **Debezium** — CDC pipeline for backend services; Electric is optimized for client-facing partial replication\n\n## FAQ\n**Q: Does Electric require changes to my Postgres schema?**\nA: No. Electric reads from standard Postgres tables via logical replication. No extensions, triggers, or schema modifications are needed.\n\n**Q: Can clients work offline?**\nA: Yes. Client libraries cache synced shapes locally. When the connection resumes, Electric sends only the changes that occurred while offline.\n\n**Q: How does Electric handle write conflicts?**\nA: Electric is a read-path sync engine. Writes go directly to Postgres through your application API. If you need conflict resolution for offline writes, you implement that logic in your application layer.\n\n**Q: What scale can Electric handle?**\nA: The HTTP\u002FCDN architecture allows horizontal fan-out to many clients. A single Electric instance handles the Postgres connection, while CDN edges serve cached shape responses.\n\n## Sources\n- https:\u002F\u002Fgithub.com\u002Felectric-sql\u002Felectric\n- https:\u002F\u002Felectric-sql.com\u002Fdocs","0",[23],{"id":24,"name":25,"slug":26,"icon":27},12,"Configs","config","⚙️",false,"efebab94c823dfd094fbe16ed1de4f5ee0f38ec2ec16bf8bc14b66f9a670030f","skill",[32,33,34],"claude_code","codex","gemini_cli","single",{"executes_code":28,"modifies_global_config":28,"requires_secrets":37,"uses_absolute_paths":28,"network_access":38},[],true,{"npm":40,"pip":41,"brew":42,"system":43},[],[],[],[],{"commands":45,"expected_files":46},[],[19],{"asset_kind":30,"target_tools":48,"install_mode":35,"entrypoint":19,"risk_profile":49,"dependencies":51,"content_hash":29,"verification":56,"inferred":38},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":50,"uses_absolute_paths":28,"network_access":38},[],{"npm":52,"pip":53,"brew":54,"system":55},[],[],[],[],{"commands":57,"expected_files":58},[],[19],{"target":33,"score":60,"status":61,"policy":62,"why":63,"asset_kind":30,"install_mode":35},64,"needs_confirmation","confirm",[64,65,66,67,68,69],"target_tools includes codex","asset_kind skill","install_mode single","policy confirm","risk_profile.network_access is true","trust established",{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":29,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":73,"review_status":75,"signals":76},"established","hash_only",[74],"network_access","unreviewed",[77,78],"author has published assets","content hash available",{"owner_uuid":9,"owner_name":10,"source_url":80,"content_hash":29,"visibility":18,"created_at":81,"updated_at":82},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-037c28d3","2026-05-11 12:29:34","2026-05-11 16:27:19",null,[85,144,191,246],{"id":86,"uuid":87,"slug":88,"title":89,"description":90,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":91,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":92,"tags":93,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":95,"asset_kind":30,"target_tools":96,"install_mode":35,"entrypoint":97,"risk_profile":98,"dependencies":100,"verification":105,"agent_metadata":108,"agent_fit":120,"trust":128,"provenance":132,"created_at":134,"updated_at":135,"__relatedScore":136,"__relatedReasons":137,"__sharedTags":142},1825,"e940ba5e-3c71-11f1-9bc6-00163e2b0d79","electricsql-real-time-sync-engine-postgres-e940ba5e","ElectricSQL — Real-Time Sync Engine for Postgres","ElectricSQL is an open-source sync engine that streams partial replication from PostgreSQL to local clients, enabling local-first applications with instant reads, offline support, and real-time multi-user sync.",91,[],[94],{"id":24,"name":25,"slug":26,"icon":27},"a23924ab396b6bf04351d4ac47f89d5e35fdd09bf8bd57d0f0af40de5dbaf027",[32,33,34],"ElectricSQL Overview",{"executes_code":28,"modifies_global_config":28,"requires_secrets":99,"uses_absolute_paths":28,"network_access":28},[],{"npm":101,"pip":102,"brew":103,"system":104},[],[],[],[],{"commands":106,"expected_files":107},[],[97],{"asset_kind":30,"target_tools":109,"install_mode":35,"entrypoint":97,"risk_profile":110,"dependencies":112,"content_hash":95,"verification":117},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":111,"uses_absolute_paths":28,"network_access":28},[],{"npm":113,"pip":114,"brew":115,"system":116},[],[],[],[],{"commands":118,"expected_files":119},[],[97],{"target":33,"score":121,"status":122,"policy":123,"why":124,"asset_kind":30,"install_mode":35},98,"native","allow",[64,65,66,125,126,127,69],"markdown-only","policy allow","safe markdown-only Codex install",{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":95,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":129,"review_status":75,"signals":130},[],[77,78,131],"no dangerous capability badges",{"owner_uuid":9,"owner_name":10,"source_url":133,"content_hash":95,"visibility":18,"created_at":134,"updated_at":135},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Felectricsql-real-time-sync-engine-postgres-e940ba5e","2026-04-20 12:32:16","2026-05-11 08:25:43",126.94568174101833,[138,139,140,141],"topic-match","same-kind","same-target","same-author",[26,143],"configs",{"id":145,"uuid":146,"slug":147,"title":148,"description":149,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":150,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":151,"tags":152,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":154,"asset_kind":30,"target_tools":155,"install_mode":35,"entrypoint":156,"risk_profile":157,"dependencies":159,"verification":164,"agent_metadata":167,"agent_fit":179,"trust":181,"provenance":184,"created_at":186,"updated_at":187,"__relatedScore":188,"__relatedReasons":189,"__sharedTags":190},1821,"79e9cd68-3c71-11f1-9bc6-00163e2b0d79","pglite-embeddable-postgres-webassembly-79e9cd68","PGlite — Embeddable Postgres in WebAssembly","PGlite is an embeddable PostgreSQL build that runs in the browser, Node.js, and Bun via WebAssembly, giving you a full Postgres engine under 3MB with real-time reactive queries.",25,[],[153],{"id":24,"name":25,"slug":26,"icon":27},"aa76974021b16366f759d9ddbe392e4647ac0565393eddcc84c16098845f7dfe",[32,33,34],"PGlite Overview",{"executes_code":28,"modifies_global_config":28,"requires_secrets":158,"uses_absolute_paths":28,"network_access":28},[],{"npm":160,"pip":161,"brew":162,"system":163},[],[],[],[],{"commands":165,"expected_files":166},[],[156],{"asset_kind":30,"target_tools":168,"install_mode":35,"entrypoint":156,"risk_profile":169,"dependencies":171,"content_hash":154,"verification":176},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":170,"uses_absolute_paths":28,"network_access":28},[],{"npm":172,"pip":173,"brew":174,"system":175},[],[],[],[],{"commands":177,"expected_files":178},[],[156],{"target":33,"score":121,"status":122,"policy":123,"why":180,"asset_kind":30,"install_mode":35},[64,65,66,125,126,127,69],{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":154,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":182,"review_status":75,"signals":183},[],[77,78,131],{"owner_uuid":9,"owner_name":10,"source_url":185,"content_hash":154,"visibility":18,"created_at":186,"updated_at":187},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fpglite-embeddable-postgres-webassembly-79e9cd68","2026-04-20 12:29:09","2026-05-08 13:44:19",97.12246002195623,[138,139,140,141],[26,143],{"id":192,"uuid":193,"slug":194,"title":195,"description":196,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":197,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":198,"tags":199,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":201,"asset_kind":30,"target_tools":202,"install_mode":203,"entrypoint":204,"risk_profile":205,"dependencies":208,"verification":213,"agent_metadata":216,"agent_fit":228,"trust":235,"provenance":239,"created_at":241,"updated_at":242,"__relatedScore":243,"__relatedReasons":244,"__sharedTags":245},1742,"4a643015-3b64-11f1-9bc6-00163e2b0d79","apache-couchdb-seamless-multi-master-sync-database-4a643015","Apache CouchDB — Seamless Multi-Master Sync Database","Apache CouchDB is a document-oriented NoSQL database that uses JSON for documents, JavaScript for queries, and HTTP for its API. Its signature feature is multi-master replication, enabling offline-first applications that sync reliably across distributed nodes.",77,[],[200],{"id":24,"name":25,"slug":26,"icon":27},"2381cec7a81a42b2d03eecdbd8bdfae5c5d0dbbdd1b723f81ee24ad86f3f4be5",[32,33,34],"stage_only","Apache CouchDB Database",{"executes_code":28,"modifies_global_config":28,"requires_secrets":206,"uses_absolute_paths":28,"network_access":28},[207],"COUCHDB_PASSWORD",{"npm":209,"pip":210,"brew":211,"system":212},[],[],[],[],{"commands":214,"expected_files":215},[],[204],{"asset_kind":30,"target_tools":217,"install_mode":203,"entrypoint":204,"risk_profile":218,"dependencies":220,"content_hash":201,"verification":225},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":219,"uses_absolute_paths":28,"network_access":28},[207],{"npm":221,"pip":222,"brew":223,"system":224},[],[],[],[],{"commands":226,"expected_files":227},[],[204],{"target":33,"score":229,"status":203,"policy":203,"why":230,"asset_kind":30,"install_mode":203},29,[64,65,231,232,233,234,69],"install_mode stage_only","policy stage_only","install_mode is stage_only","risk_profile.requires_secrets is not empty",{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":201,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":236,"review_status":75,"signals":238},[237,203],"requires_secrets",[77,78],{"owner_uuid":9,"owner_name":10,"source_url":240,"content_hash":201,"visibility":18,"created_at":241,"updated_at":242},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fapache-couchdb-seamless-multi-master-sync-database-4a643015","2026-04-19 04:22:15","2026-05-11 05:51:50",93.83814190403572,[138,139,140,141],[26,143],{"id":247,"uuid":248,"slug":249,"title":250,"description":251,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":252,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":253,"tags":254,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":256,"asset_kind":30,"target_tools":257,"install_mode":35,"entrypoint":258,"risk_profile":259,"dependencies":261,"verification":266,"agent_metadata":269,"agent_fit":281,"trust":283,"provenance":286,"created_at":288,"updated_at":289,"__relatedScore":290,"__relatedReasons":291,"__sharedTags":292},1394,"458a67fd-38d7-11f1-9bc6-00163e2b0d79","externaldns-sync-kubernetes-services-dns-providers-458a67fd","ExternalDNS — Sync Kubernetes Services with DNS Providers","Kubernetes SIG controller that keeps Route 53, Cloudflare, Google Cloud DNS and 30+ other providers in sync with Services, Ingresses, and Gateway API routes.",82,[],[255],{"id":24,"name":25,"slug":26,"icon":27},"ac74097b02cfb29b3de88f65637abcfea714781bc04e8286e92ba190d6356c40",[32,33,34],"ExternalDNS",{"executes_code":28,"modifies_global_config":28,"requires_secrets":260,"uses_absolute_paths":28,"network_access":28},[],{"npm":262,"pip":263,"brew":264,"system":265},[],[],[],[],{"commands":267,"expected_files":268},[],[258],{"asset_kind":30,"target_tools":270,"install_mode":35,"entrypoint":258,"risk_profile":271,"dependencies":273,"content_hash":256,"verification":278},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":272,"uses_absolute_paths":28,"network_access":28},[],{"npm":274,"pip":275,"brew":276,"system":277},[],[],[],[],{"commands":279,"expected_files":280},[],[258],{"target":33,"score":121,"status":122,"policy":123,"why":282,"asset_kind":30,"install_mode":35},[64,65,66,125,126,127,69],{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":256,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":284,"review_status":75,"signals":285},[],[77,78,131],{"owner_uuid":9,"owner_name":10,"source_url":287,"content_hash":256,"visibility":18,"created_at":288,"updated_at":289},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fexternaldns-sync-kubernetes-services-dns-providers-458a67fd","2026-04-15 22:27:46","2026-05-11 15:09:35",85.87861713856411,[138,139,140,141],[26,143]]