Key differences

  • xyflow has 3.5× as many GitHub stars as Cytoscape.js (39.1K vs 11.3K).
  • xyflow had more development activity over the last 12 months: 949 commits vs 273.
  • Cytoscape.js is downloaded 1.2× as often on npm (27.3M vs 22.2M per week).
  • Both are released under the MIT license.
  • Cytoscape.js is written primarily in JavaScript, xyflow in TypeScript.
  • Cytoscape.js is the older project: its repository was created in 2011, xyflow's in 2019.

By the numbers

  • Cytoscape.js
  • xyflow
GitHub stars
11.3K 39.1K
npm downloads / week
27.3M 22.2M
Commits, last 12 months
273 949
Contributors
153 146
Forks
1.7K 2.6K
Show data as a table
Cytoscape.js vs xyflow by the numbers
MetricCytoscape.jsxyflow
GitHub stars11,29639,070
npm downloads / week27,331,51522,201,492
Commits, last 12 months273949
Contributors153146
Forks1,6952,586

Development activity

Commits per month to each default branch, last 12 complete months.

  • Cytoscape.js
  • xyflow
0100200300 Nov 2025 Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep OctCytoscape.jsxyflow
0100200300 Nov 2025 Feb 2026 May Aug Cytoscape.jsxyflow
Show data as a table
Cytoscape.js vs xyflow: commits per month
MonthCytoscape.jsxyflow
Nov 2025032
Dec 2025327
Jan 2026119
Feb 2026017
Mar 20261043
Apr 20265426
May 20263297
Jun 202624116
Jul 202624204
Aug 202663190
Sep 20261050
Oct 202652128

Side by side

AttributeCytoscape.jsxyflow
DescriptionJavaScript library for graph drawing maintained by Cytoscape core developers.React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams.
CategoryJavaScript graph & network visualization librariesJavaScript graph & network visualization libraries
LicenseMITMIT
LanguageJavaScriptTypeScript
StatusActiveActive
Latest releasev3.35.0 ()@xyflow/svelte@2.0.2 ()
Last commit
Repository created
Open issues2076
Install
npm install cytoscape
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.

  • Cytoscape.js

    JavaScript library for graph drawing maintained by Cytoscape core developers.

    11.3K starsJavaScriptMIT

  • xyflow

    React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams.

    39.1K starsTypeScriptMIT

More comparisons