GitHub stars
5.9K
npm downloads / week
9.1M
Commits, last 12 months
131
Contributors
42
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,861 stars, 641 forks, and 42 contributors. It is actively developed with 131 commits in the last 12 months. The latest release, v2.0.0, was published on Nov 23, 2025. On npm it is downloaded about 9.1M times per week.

Its GitHub description: Directed graph layout for JavaScript

Install

npm
npm install @dagrejs/dagre
v3.1.3

Development activity

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

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

Popularity among JavaScript graph & network visualization libraries

GitHub stars for dagre and the most-starred alternatives.
Show data as a table
GitHub stars
ToolStars
xyflow39,070
G612,397
Sigma.js12,245
Cytoscape.js11,296
Vue Flow6,939
X66,768
dagre5,861

Alternatives to dagre

  • xyflow

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

    39.1K starsTypeScriptMIT

  • G6

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

    12.4K 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.3K 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.8K 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 131 commits in the last 12 months and the latest commit 24 days 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 Nov 18, 2026.