# dagre

> Directed graph layout library for JavaScript.

- Category: [JavaScript graph & network visualization libraries](https://awesomedataviz.com/categories/javascript-graph-visualization/)
- Repository: https://github.com/dagrejs/dagre
- License: MIT
- Language: TypeScript
- Status: Active (commits in the last 90 days)
- GitHub stars: 5,814
- Commits in the last 12 months: 110
- Contributors: 39
- Last commit: Aug 8, 2026
- Latest release: v2.0.0 (Nov 23, 2025)
- Install (npm): `npm install @dagrejs/dagre`, 5.8M downloads per week
- Topics: Graph & network visualization

## 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.

## Alternatives

- [xyflow](https://awesomedataviz.com/tools/xyflow/): React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams. (38.6K stars)
- [G6](https://awesomedataviz.com/tools/g6/): Graph visualization library powered by Javascript & Typescript, maintained by Alibaba (12.3K stars)
- [Sigma.js](https://awesomedataviz.com/tools/sigma-js/): JavaScript library dedicated to graph drawing. (12.2K stars)
- [Cytoscape.js](https://awesomedataviz.com/tools/cytoscape-js/): JavaScript library for graph drawing maintained by Cytoscape core developers. (11.2K stars)
- [Vue Flow](https://awesomedataviz.com/tools/vue-flow/): Flowchart and node-based graph component for Vue 3. (6.9K stars)
- [X6](https://awesomedataviz.com/tools/x6/): Diagramming library for DAGs, ER diagrams, flowcharts and other graph editors, maintained by Alibaba. (6.7K stars)

Source: https://awesomedataviz.com/tools/dagre/ · Data updated 2026-10-04 · Content: CC BY 4.0, Awesome Dataviz (https://awesomedataviz.com).
