custom-node-definition

Define custom react-wireflow node definitions with ports and renderers.

6|Updated Oct 12, 2025
One-click install
npx skills add https://github.com/trkbt10/react-wireflow --skill custom-node-definition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: custom-node-definition
Source: https://github.com/trkbt10/react-wireflow/tree/main/skills/custom-node
Command: npx skills add https://github.com/trkbt10/react-wireflow --skill custom-node-definition

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables developers to define new node types for react-wireflow, including how they render, what ports they expose, and how they interact with external data. It streamlines extending a node-based editor with bespoke appearances and behaviors.

Core Features & Use Cases

  • Define NodeDefinition structures: specify type, displayName, ports, defaultData, and constraints to wire up new node types.
  • Build custom renderers: implement renderNode with NodeRendererProps to customize visuals and interactions.
  • External data integration: loadExternalData and updateExternalData to fetch and persist node-specific data.

Quick Start

Create a new NodeDefinition object for your custom node, implement a renderNode component, and register it with the NodeEditor.

Frequently Asked Questions about custom-node-definition

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom node types with renderers and ports in react-wireflow?

Node definitions in react-wireflow require a NodeDefinition structure containing type, displayName, ports, and defaultData. You further customize visuals and interactions by implementing an optional renderNode component using NodeRendererProps.

How does external data handling work for react-wireflow custom nodes?

External data handling for react-wireflow custom nodes uses optional loadExternalData and updateExternalData hooks. These hooks allow your custom node definitions to fetch and persist node-specific data dynamically during editor interactions.

Can I use TypeScript to define custom node structures for node editors?

Yes, you can use TypeScript to enforce a NodeDefinition contract for custom node types. This contract specifies required properties like type, displayName, and ports, ensuring type-safe node structures within TypeScript node editor projects.

What is the best way to customize node appearances in a react-wireflow editor?

The best way to customize node appearances in react-wireflow is by implementing the renderNode function with NodeRendererProps. This approach allows you to design bespoke visual components and define specific interaction behaviors for each custom node type.

Do I need to implement both renderNode and renderInspector for custom node definitions?

No, implementing both renderNode and renderInspector is optional. You only need to define the core NodeDefinition contract with type, displayName, and ports, while renderers and external data hooks can be added as needed.