Dagre
JavaScript library for computing layouts of directed graphs and DAGs.
Charts and data visualisation npm MIT
How Dagre is used
Dagre is a dependency in 7 of the 6,211 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,980); counting those, it appears in 31 projects, and what it is used with below comes from all of them. The most used alternative in our scan is ELK.js (11 projects). Projects that use it most often also use Lucide React (71.0%), react-markdown (54.8%), Tailwind CSS (83.9%).
Dagre popularity over time
Gid Score 51: downloads 68, use in agent projects 34, GitHub stars 41, downloads trend 58 (each 0-100). How it is calculated.
Often used with Dagre
| Lucide React | 71.0% of Dagre projects · 3.5× more than average |
|---|---|
| react-markdown | 54.8% of Dagre projects · 14.0× more than average |
| Tailwind CSS | 83.9% of Dagre projects · 2.6× more than average |
| XY Flow | 51.6% of Dagre projects · 55.3× more than average |
| React | 80.6% of Dagre projects · 2.5× more than average |
| Zod | 71.0% of Dagre projects · 2.8× more than average |
| Framer Motion | 45.2% of Dagre projects · 5.7× more than average |
| Radix UI | 48.4% of Dagre projects · 3.7× more than average |
From all 31 projects in our scan that use Dagre, including the dependency samples.
By coding agent
| GitHub Copilot | 0.2% of projects set up for it |
|---|
Share of public repos configured for each agent that list Dagre as a dependency.
Install
| Package | npm install dagre |
|---|---|
| Main stacks | TypeScript / JavaScript (18), Next.js (12), Python (1) |
| Example projects | NG-ZORRO/ng-zorro-antd, phodal/routa, thesongzhu/Friday, robsannaa/mission-control, LayerNorm/overlay-web |
Alternatives to Dagre
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Dagre are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| ELK.js npm · new in the catalog Automatic graph layout (Eclipse Layout Kernel) for diagrams and node editors. |
56 | 11 (0.2%) | 7.5M | 2,833 | EPL-2.0 OR GPL-3.0-or-later |
More in Charts and data visualisation: Recharts Matplotlib Chart.js Mermaid Seaborn XY Flow Plotly D3.js