G6 vs xyflow
A data-driven comparison of two JavaScript graph & network visualization libraries: popularity, development activity, licensing and installation. Updated .
Key differences
- xyflow has 3.1× as many GitHub stars as G6 (38.6K vs 12.3K).
- xyflow had more development activity over the last 12 months: 510 commits vs 44.
- xyflow is downloaded 57× as often on npm (15.2M vs 265.8K per week).
- Both are released under the MIT license.
- G6 is the older project: its repository was created in 2017, xyflow's in 2019.
By the numbers
- G6
- xyflow
Show data as a table
| Metric | G6 | xyflow |
|---|---|---|
| GitHub stars | 12,323 | 38,582 |
| npm downloads / week | 265,820 | 15,244,142 |
| Commits, last 12 months | 44 | 510 |
| Contributors | 180 | 138 |
| Forks | 1,646 | 2,541 |
Development activity
Commits per month to each default branch, last 12 complete months.
- G6
- xyflow
Show data as a table
| Month | G6 | xyflow |
|---|---|---|
| Oct 2025 | 6 | 132 |
| Nov 2025 | 14 | 32 |
| Dec 2025 | 6 | 26 |
| Jan 2026 | 1 | 19 |
| Feb 2026 | 3 | 17 |
| Mar 2026 | 8 | 43 |
| Apr 2026 | 1 | 7 |
| May 2026 | 1 | 76 |
| Jun 2026 | 1 | 59 |
| Jul 2026 | 2 | 23 |
| Aug 2026 | 0 | 66 |
| Sep 2026 | 1 | 10 |
Side by side
| Attribute | G6 | xyflow |
|---|---|---|
| Description | Graph visualization library powered by Javascript & Typescript, maintained by Alibaba | React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams. |
| Category | JavaScript graph & network visualization libraries | JavaScript graph & network visualization libraries |
| License | MIT | MIT |
| Language | TypeScript | TypeScript |
| Status | Active | Active |
| Latest release | 5.1.1 () | @xyflow/svelte@1.7.0 () |
| Last commit | ||
| Repository created | ||
| Open issues | 322 | 90 |
| Install | npm install @antv/g6 | npm install @xyflow/react |
Which should you choose?
Popularity and activity are only part of the story. Consider which ecosystem you work in, the chart types and interactions you need, how much data you render, and whether the license fits your project. Both tool pages list alternatives if neither is quite right.