RE

Reactflow

reactflow

A highly customizable React library for building node-based editors and interactive flow charts

Charts
react
node-based UI
graph
diagram
workflow
react-flow
reactflow
Charts
javascript
npm
Stars
38k
Weekly
2.0M
Open issues
133
Bundle
~25 kB

Installation

npm install reactflow

Code example

import { Reactflow } from "reactflow";

const data = [
  { name: "Jan", value: 12 },
  { name: "Feb", value: 18 },
];

export function Example() {
  return (
    <Reactflow data={data} width={420} height={240}>
      {/* series / axes from Reactflow */}
    </Reactflow>
  );
}

Pros & cons

Pros

  • Actively maintained by webk1d
  • 2.0M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 133 open issues on GitHub

FAQs

Alternatives & similar libraries