subscription-sync

Official

Real-time frontend-backend subscriptions.

Authorchaingraphlabs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of keeping frontend views synchronized with backend state in real-time, while avoiding race conditions and stale data during flow and execution event processing.

Core Features & Use Cases

  • Two-channel real-time syncing: Separate WebSocket-connected channels for flow editing and execution events to prevent backpressure and performance issues.
  • Event buffering & atomic flush: Buffer incoming flow events and flush atomically on FlowInitEnd to ensure nodes render before edges.
  • Dedicated subscriptions: Independent tRPC clients for editing and execution to isolate concerns and improve reliability.
  • Use Case: Implement live flow editing dashboards that reflect backend changes instantly and safely while execution traces stream concurrently.

Quick Start

Configure the frontend to connect to ws://localhost:3001 (main server) and ws://localhost:4021 (executor server), then subscribe to flow events and execution events as needed, ensuring FlowInitEnd flush is performed before rendering completed structures and starting execution.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: subscription-sync
Download link: https://github.com/chaingraphlabs/chaingraph/archive/main.zip#subscription-sync

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.