# @dagrejs/dagre

> Graph layout for JavaScript

Latest version **3.1.1** (published 2026-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dagrejs/dagre
pnpm add @dagrejs/dagre
yarn add @dagrejs/dagre
bun add @dagrejs/dagre
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.1 |
| Published | 2026-08-08 |
| First published | 2017-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5790 |
| Author | Chris Pettitt |
| Maintainers | cpettitt, lutzroeder, davidnewell |
| Keywords | graph, layout |

## Links

- npm: https://www.npmjs.com/package/@dagrejs/dagre
- Repository: https://github.com/dagrejs/dagre
- Homepage: https://github.com/dagrejs/dagre#readme
- Issues: https://github.com/dagrejs/dagre/issues
- npm.io page: https://npm.io/package/@dagrejs/dagre

## Dependencies (1)

- [@dagrejs/graphlib](https://npm.io/package/@dagrejs/graphlib.md) 4.0.5

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 3.1.1 (latest) — 2026-08-08
- 3.1.0 — 2026-08-02
- 3.0.0 — 2026-03-22
- 2.0.4 — 2026-02-09
- 2.0.3 — 2026-01-23
- 2.0.1 — 2025-12-01
- 2.0.0 — 2025-11-20
- 1.1.8 — 2025-11-03
- 1.1.5 — 2025-06-17
- 1.1.4 — 2024-08-15
- 1.1.3 — 2024-06-28
- 1.1.2 — 2024-04-11
- 1.1.1 — 2024-03-15
- 1.1.0 — 2024-03-13
- 1.0.4 — 2023-09-11
- … 5 more at https://npm.io/package/@dagrejs/dagre/versions

## README

# dagre - Graph layout for JavaScript

[![Build Status](https://github.com/dagrejs/dagre/workflows/Build%20Status/badge.svg?branch=master)](https://github.com/dagrejs/dagre/actions?query=workflow%3A%22Build+Status%22)
[![npm](https://img.shields.io/npm/v/@dagrejs/dagre.svg)](https://www.npmjs.com/package/@dagrejs/dagre)


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](https://github.com/dagrejs/dagre/wiki).

There are 2 versions on NPM, but only [the one in the DagreJs org](https://www.npmjs.com/package/@dagrejs/dagre) is receiving updates right now.

## License

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

---
_Source: https://npm.io/package/@dagrejs/dagre · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
