dagrejs /dagre

Directed graph layout for JavaScript

★ 5,858⑂ 643👁 90⑃ 183● 347▤ 9
TypeScriptMITCreated 2012-09-27
Download: v2.0.0v2.0.0 ↓2.0.02025-11-23
+2
Daily
5,858
stars
643
forks
90
watchers
183
prs
347
issues
9
releases

README

dagre - Graph layout for JavaScript





Dagre is a JavaScript library that makes it easy to lay out directed graphs on the client-side.

For more details, including examples and configuration options, please see our wiki.

There are 2 versions on NPM, but only the one in the DagreJs org is receiving updates right now.

 License

dagre is licensed under the terms of the MIT License. See the LICENSE file for details.

Top issues

Latest release

v2.0.0 v2.0.0 2025-11-23
What's Changed
Updated the dependencies to remove or replace Bower, Karma, JSHint and dependent libraries.

The old IIFE style library, for loading as a script tag and including dagre in the global namespace is available in the dagre[.min].js files.

A new import style library is available at dagre.esm.js

Full Changelog: https://github.com/dagrejs/dagre/compare/v1.1.8...v2.0.0

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON