dagrejs/graphlib
A directed multi-graph library for JavaScript observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 95
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4757
- days_rel: n/a
- days_push: 30
- n_releases_24m: 0
Adoption not part of the score
1742 stars · 248 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Graphlib is a JavaScript/TypeScript library providing data structures for directed and undirected multi-graphs along with common graph algorithms. It is the graph data-structure library underlying the Dagre diagram-layout project.
Use cases
- model directed and undirected graphs in JavaScript
- build a dependency graph of tasks or modules
- run graph algorithms like shortest path or topological sort
- represent a multigraph with parallel edges
- serialize and deserialize graph structures as JSON
- back a flowchart or DAG layout tool with graph data
When to choose
- you need a lightweight, dependency-free graph data structure in JS/TS
- you are building on top of Dagre or need compatibility with its ecosystem
- you want basic graph algorithms without pulling in a heavy library like graphology or Cytoscape
When to avoid
- you need advanced graph algorithms, centrality measures, or community detection
- you need graph visualization or rendering (use Cytoscape.js or D3 instead)
- you need high-performance graph processing on very large graphs
Facets
library · maturity stable
developer-tools developer-tools browser graph-data-structures directed-graph multigraph graph-algorithms typescript algorithms nodejs javascript
2 sources
- readme: https://github.com/dagrejs/graphlib · fetched 2026-08-28 · 6494a7d8c352
- registry_npm: https://registry.npmjs.org/graphlib · fetched 2026-08-29 · 7fcf2fcccc1f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dagrejs/graphlib | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="dagrejs/graphlib")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem