New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Reference guide for building node-based graphs and workflow editors with the @xyflow/react library.

skills.sh installs
1.3K
GitHub stars
89
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers nodes, edges, handles, controlled state, custom node and edge components, and viewport control
  • Includes typed NodeProps and EdgeProps patterns, EdgeLabelRenderer for interactive labels, and useReactFlow for programmatic control
  • Shows path utilities (getBezierPath, getStraightPath, getSmoothStepPath) and dynamic handles via useUpdateNodeInternals
  • Designed for React developers building workflow visualizations, diagram editors, or custom graph UIs

Install

$ npx -y skills add existential-birds/beagle --skill react-flow -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

React Flow

React Flow (@xyflow/react) is a library for building node-based graphs, workflow editors, and interactive diagrams. It provides a highly customizable framework for creating visual programming interfaces, process flows, and network visualizations.

Quick Start

Installation

pnpm add @xyflow/react

Basic Setup

import { ReactFlow, Node, Edge, Background, Controls, MiniMap } from '@xyflow/react';
import '@xyflow/react/dist/style.css';

const initialNodes: Node[] = [
  {
    id: '1',
    type: 'input',
    data: { label: 'Input Node' },
    position: { x: 250, y: 5 },
  },
  {
    id: '2',
    data: { label: 'Default Node' },
    position: { x: 100, y: 100 },
  },
  {
    id: '3',
    type: 'output',
    data: { label: 'Output Node' },
    position: { x: 400, y: 100 },
  },
];

const initialEdges: Edge[] = [
  { id: 'e1-2', source: '1', target: '2', animated: true },
  { id: 'e2-3', source: '2', target: '3' },
];

Details

Repository
github.com/existential-birds/beagle
Category
Frontend & UI Code
First seen
Apr 16, 2026

More from existential-birds/beagle

All 37

Similar to React Flow

More Frontend & UI Code