Getting started
InstallationQuick startControlled and uncontrolled state
Entities
The entity modelSockets and widgetsEntity typesFrames and groupsText and commentsImages, video and models
Edges and connections
EdgesConnections
Data
EvaluationSaving and exportingUndo and redoLayout and alignmentThe flow storeGraph queriesClipboard and cloning
Interaction
Canvas and cameraSelectionKeyboardSelection toolbarContext menusDrawingDropping and pasting media
Styling
ThemingEntity stylingFonts and text renderingMinimap
API reference
KookieFlowThe ref instanceHooksUtilitiesTypes
StartEntitiesDataAPI

Kookie Flow

A node graph library for React that renders on the GPU. It keeps React Flow's ergonomics — entities, edges and a hook to hold them — and draws 50,000 nodes at 60fps with zero React re-renders while you pan, zoom and drag.

Getting started

Install Kookie Flow, build a small graph that you can wire up by hand, and decide who holds the graph's state.

InstallationQuick startControlled and uncontrolled state

Entities

Everything on the canvas is an entity. Learn the shape every entity shares, then the sockets, widgets and built-in types that make one a node, a frame, a note or a picture.

The entity modelSockets and widgetsEntity typesFrames and groupsText and commentsImages, video and models

Edges and connections

Draw the wires between entities, and decide which connections a person is allowed to make by dragging.

EdgesConnections

Data

Make the graph compute, save it and undo edits, tidy it, and read or change the live graph from your own code.

EvaluationSaving and exportingUndo and redoLayout and alignmentThe flow storeGraph queriesClipboard and cloning

Interaction

Control the camera, selection and keyboard, and add a toolbar, a context menu, a pen and media paste to your editor.

Canvas and cameraSelectionKeyboardSelection toolbarContext menusDrawingDropping and pasting media

Styling

Make the graph follow your KookieUI theme, set how entities look, choose the font labels are drawn with, and add a minimap.

ThemingEntity stylingFonts and text renderingMinimap

API reference

Look up every prop, ref method, hook, utility and type, with a link to the chapter that explains each one.

KookieFlowThe ref instanceHooksUtilitiesTypes

Live demos

Open a full-window canvas and use the library the way an app would. Each demo runs on the same package these pages document.

PlaygroundEvaluation pipelineWebGL benchmarkHeader positions
Getting started
  • Installation
  • Quick start
  • Controlled and uncontrolled state
Entities
  • The entity model
  • Sockets and widgets
  • Entity types
  • Frames and groups
  • Text and comments
  • Images, video and models
Edges and connections
  • Edges
  • Connections
Data
  • Evaluation
  • Saving and exporting
  • Undo and redo
  • Layout and alignment
  • The flow store
  • Graph queries
  • Clipboard and cloning
Interaction
  • Canvas and camera
  • Selection
  • Keyboard
  • Selection toolbar
  • Context menus
  • Drawing
  • Dropping and pasting media
Styling
  • Theming
  • Entity styling
  • Fonts and text rendering
  • Minimap
API reference
  • KookieFlow
  • The ref instance
  • Hooks
  • Utilities
  • Types
Reference
  • Live demo
  • llms.txt
  • GitHub
MIT licensed. © 2026 Kushagra Dhawan.