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

npm
npm install @dagrejs/dagre
v3.1.1

Development activity

Commits per month to the default branch over the last 12 complete months.

02040 Oct 2025 Nov Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep
02040 Oct 2025 Jan 2026 Apr Jul
110 commits from Oct 2025 to Sep 2026.
Show data as a table
dagre commits per month
MonthCommits
Oct 20252
Nov 202539
Dec 202510
Jan 202613
Feb 20265
Mar 20268
Apr 20264
May 202613
Jun 20260
Jul 20260
Aug 202616
Sep 20260

Popularity among JavaScript graph & network visualization libraries

GitHub stars for dagre and the most-starred alternatives.
Show data as a table
GitHub stars
ToolStars
xyflow38,582
G612,323
Sigma.js12,180
Cytoscape.js11,232
Vue Flow6,888
X66,716
dagre5,814

Alternatives to dagre

  • xyflow

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

    38.6K starsTypeScriptMIT

  • G6

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

    12.3K starsTypeScriptMIT

  • Sigma.js

    JavaScript library dedicated to graph drawing.

    12.2K starsTypeScriptMIT

  • Cytoscape.js

    JavaScript library for graph drawing maintained by Cytoscape core developers.

    11.2K starsJavaScriptMIT

  • Vue Flow

    Flowchart and node-based graph component for Vue 3.

    6.9K starsTypeScriptMIT

  • X6

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

    6.7K starsTypeScriptMIT

dagre FAQ

Is dagre open source?

Yes. dagre is released under the MIT license, and its source code is on GitHub.

Is dagre still maintained?

Yes. dagre is actively developed, with 110 commits in the last 12 months and the latest commit 2 months ago.

How do I install dagre?

From npm: npm install @dagrejs/dagre.

What are the best alternatives to dagre?

The most popular alternatives listed in JavaScript graph & network visualization libraries are xyflow, G6, and Sigma.js. See the full ranking.

What language is dagre written in?

dagre is primarily written in TypeScript, according to GitHub.

Data: GitHub API, npm. Updated Oct 4, 2026.