React
@xyflow/react
React Flow - A highly customizable React library for building node-based editors and interactive flow charts.
Charts
react
node-based UI
graph
diagram
workflow
react-flow
xyflow
@xyflow/react
Charts
javascript
Stars
38k
Weekly
7.9M
Open issues
133
Bundle
~15 kB
Installation
npm install @xyflow/reactCode example
import { React } from "@xyflow/react";
const data = [
{ name: "Jan", value: 12 },
{ name: "Feb", value: 18 },
];
export function Example() {
return (
<React data={data} width={420} height={240}>
{/* series / axes from React */}
</React>
);
}Pros & cons
Pros
- Actively maintained by peterkogo
- 7.9M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 133 open issues on GitHub