dagre
Directed graph layout library for JavaScript.
- Active
- MIT
- TypeScript
- JavaScript graph & network visualization libraries
- GitHub stars
- 5.8K
- npm downloads / week
- 5.8M
- Commits, last 12 months
- 110
- Contributors
- 39
- Last commit
- Latest release
- v2.0.0Nov 23, 2025
Overview
dagre is an open-source JavaScript graph visualization library released under the MIT license. Its GitHub repository has 5,814 stars, 641 forks, and 39 contributors. It is actively developed with 110 commits in the last 12 months. The latest release, v2.0.0, was published on Nov 23, 2025. On npm it is downloaded about 5.8M times per week.
Its GitHub description: Directed graph layout for JavaScript
Install
Development activity
Commits per month to the default branch over the last 12 complete months.
Show data as a table
| Month | Commits |
|---|---|
| Oct 2025 | 2 |
| Nov 2025 | 39 |
| Dec 2025 | 10 |
| Jan 2026 | 13 |
| Feb 2026 | 5 |
| Mar 2026 | 8 |
| Apr 2026 | 4 |
| May 2026 | 13 |
| Jun 2026 | 0 |
| Jul 2026 | 0 |
| Aug 2026 | 16 |
| Sep 2026 | 0 |
Popularity among JavaScript graph & network visualization libraries
Show data as a table
| Tool | Stars |
|---|---|
| xyflow | 38,582 |
| G6 | 12,323 |
| Sigma.js | 12,180 |
| Cytoscape.js | 11,232 |
| Vue Flow | 6,888 |
| X6 | 6,716 |
| dagre | 5,814 |
Alternatives to dagre
-
xyflow
React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams.
-
G6
Graph visualization library powered by Javascript & Typescript, maintained by Alibaba
-
Sigma.js
JavaScript library dedicated to graph drawing.
-
Cytoscape.js
JavaScript library for graph drawing maintained by Cytoscape core developers.
-
Vue Flow
Flowchart and node-based graph component for Vue 3.
-
X6
Diagramming library for DAGs, ER diagrams, flowcharts and other graph editors, maintained by Alibaba.
dagre FAQ
Is dagre open source?
Is dagre still maintained?
How do I install dagre?
npm install @dagrejs/dagre.What are the best alternatives to dagre?
What language is dagre written in?
Data: GitHub API, npm. Updated Oct 4, 2026.