A curated drawer of DAG/graph algorithm libraries and the flow/diagram UI components I reach for when building node-graph editors and dependency visualizations.

Graph algorithms & DAG libraries

Building, sequencing, and analyzing directed acyclic graphs.

ResourceWhy it is useful
task-graph-runnerRun async tasks ordered by a dependency graph.
graph-sequencerTopologically sequence graph items into parallel-safe groups.
toposortMinimal topological sort of a directed graph.
madgeGenerate dependency graphs and find circular deps in JS/TS.
jsona-openapi-deref deref logicReference impl for detecting circular references during deref.
dag-mapMap-like structure that maintains DAG ordering.
graphologyRobust graph data structure + algorithm ecosystem.
serverless/compose ComponentsServiceReal-world DAG used to order serverless component deploys.

Dependency-graph extractors

Tools that derive a graph from existing source code.

ResourceWhy it is useful
express-router-dependency-graphBuild a graph of Express routes from source.
workspace-dependency-graphGraph dependencies across a monorepo workspace.

Flow & diagram UI components

Interactive node-graph editors for building diagrams in the browser.

ResourceWhy it is useful
react-diagramsFlexible diagramming engine; see drag-and-drop demo.
React Flow edge examplesEdge styling/behavior examples for the React Flow library.
reteVisual programming / node-editor framework; see basic example.
butterflyAlibaba node-graph diagramming library.
react-visual-modelingReact visual modeling components built on butterfly.
react-monitor-dag canvasDAG monitor canvas reference implementation.
flowyLightweight library for building flowchart UIs.
pipeline-editor-s5Pipeline/flow editor component.

Visualization libraries & demos

Rendering graphs, trees, and infra diagrams.

ResourceWhy it is useful
rediagramCompose infrastructure diagrams with React.
react-topologyTopology/graph viz for React; see demo.
vis-tree demoTree visualization demo.
react-d3-bubblechartD3 bubble chart in React.

Reference

ResourceWhy it is useful
text-to-diagramSurvey/comparison of many text-to-diagram tools.