What problem does it solve?
This Skill helps developers understand and implement the ChainGraph port system, including nine port types, plugins, a factory for port creation, and transfer rules to enforce type-safe connections across nodes in complex graphs.
Core Features & Use Cases
- Nine distinct port types with strong typing, validation, and serialization support.
- Port plugins for per-type validation, configuration, and value serialization.
- Port Factory to create single or multiple ports from concise configurations.
- Transfer rules that govern compatibility and safe data flow between ports.
- Frontend and node integration patterns for rendering and managing ports in UI.
Use cases:
- Designing custom ports for specialized data shapes (strings, numbers, objects, streams).
- Debugging port compatibility in visual graphs and ensuring end-to-end type safety.
- Rapid prototyping of nodes with complex input/output schemas.
Quick Start
Set up a minimal port configuration, instantiate it via the PortFactory, and validate a basic connection between source and target ports in a simple test node.