Libraries for drawing node-link diagrams: social networks, dependency graphs, knowledge graphs, flowcharts and other relational data. Most pair a renderer with layout algorithms (force-directed, hierarchical, circular) and interactions such as dragging, zooming and selecting nodes.

Graph size decides a lot: Sigma.js renders with WebGL to keep large graphs interactive, Cytoscape.js combines visualization with graph analysis, and diagramming libraries focus on editing and constraint-based layout. For the graph data model and algorithms on their own, see Graphology.

By GitHub stars, the most popular JavaScript graph visualization libraries here are xyflow (39.1K stars), G6 (12.4K stars), and Sigma.js (12.2K stars). 13 of 18 had commits in the last 90 days.

JavaScript graph & network visualization libraries, ranked by GitHub stars
1 xyflow

React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams.

39.1K 949 MIT
2 G6

Graph visualization library powered by Javascript & Typescript, maintained by Alibaba

12.4K 46 MIT
3 Sigma.js

JavaScript library dedicated to graph drawing.

12.2K 410 MIT
4 Cytoscape.js

JavaScript library for graph drawing maintained by Cytoscape core developers.

11.3K 273 MIT
5 Vue Flow Archived

Flowchart and node-based graph component for Vue 3.

6.9K 17 MIT
6 X6

Diagramming library for DAGs, ER diagrams, flowcharts and other graph editors, maintained by Alibaba.

6.8K 107 MIT
7 3d-force-graph

3D force-directed graph component using Three.js/WebGL.

6.6K 9 MIT
8 dagre

Directed graph layout library for JavaScript.

5.9K 131 MIT
9 JointJS

SVG-based JavaScript diagramming library for interactive diagrams and graph editors.

5.4K 163 MPL-2.0
10 Viz.js

Graphviz compiled to WebAssembly for rendering DOT graphs in the browser and Node.js.

4.4K 86 MIT
11 VivaGraph

Graph drawing library for JavaScript.

3.9K 1 BSD-3-Clause
12 elkjs

Eclipse Layout Kernel (ELK) graph layout algorithms for JavaScript.

2.9K 78 EPL-2.0 OR GPL-3.0-or-later
13 Uber React Digraph Inactive

React.js based directed graph library maintained by UBER.

2.6K 0 MIT
14 force-graph

Force-directed graph component rendered on HTML5 canvas.

2.2K 20 MIT
15 Cola.js

A tool to create diagrams using constraint-based optimization techniques. Works with d3 and svg.js.

2.1K 3 MIT
16 diagram.js

Javascript diagram library serving as the basis for camunda's online BPMN modeler.

1.9K 274 MIT
17 cosmos.gl

GPU-accelerated force graph layout and rendering engine that runs entirely in WebGL shaders.

1.3K 563 MIT
18 Vizdom Inactive

A declarative graph layout and rendering engine for Javascript/Typescript powered by Rust/WebAssembly.

193 0 Apache-2.0

Head-to-head comparisons

Related topics

Related categories

Frequently asked questions

What is the most popular JavaScript graph visualization library?

By GitHub stars, xyflow is the most popular, with 39.1K stars, followed by G6 (12.4K) and Sigma.js (12.2K).

Which JavaScript graph visualization libraries are actively maintained?

15 of the 18 tools listed had commits in the last 12 months, including xyflow, G6, Sigma.js, Cytoscape.js, and X6. Each tool page shows monthly commit activity.

Are these JavaScript graph visualization libraries free and open source?

18 of the 18 tools listed use an OSI-approved open-source license. The most common license here is MIT.

Missing a tool? Add it with a one-line pull request to the README.