reaflow
5.0/53
reaflow
npm i reaflow
reaflow

reaflow

ğŸŽ¯ React library for building workflow editors, flow charts and diagrams

by reaviz

5.0.6 (see all)License:Apache-2.0TypeScript:Built-InCategories:React Graph, React Data Visualization
npm i reaflow
Readme

🕸 reaflow


Node-based Visualizations for React

Open Collective backers and sponsors

REAFLOW is a modular diagram engine for building static or interactive editors. The library is feature-rich and modular allowing for displaying complex visualizations with total customizability.

If you are looking for network graphs, checkout reagraph.

✨ Features

  • Complex automatic layout leveraging ELKJS
  • Easy Node/Edge/Port customizations
  • Zooming / Panning / Centering controls
  • Drag and drop Node/Port connecting and rearranging
  • Nesting of Nodes/Edges
  • Proximity based Node linking helper
  • Node/Edge selection helper
  • Undo/Redo helper

📦 Usage

Install the package via NPM:

npm i reaflow --save

Install the package via Yarn:

yarn add reaflow

Import the component into your app and add some nodes and edges:

import React from 'react';
import { Canvas } from 'reaflow';

export default () => (
  <Canvas
    maxWidth={800}
    maxHeight={600}
    nodes={[
      {
        id: '1',
        text: '1'
      },
      {
        id: '2',
        text: '2'
      }
    ]}
    edges={[
      {
        id: '1-2',
        from: '1',
        to: '2'
      }
    ]}
  />
);

🔭 Development

If you want to run reaflow locally, its super easy!

  • Clone the repo
  • yarn install
  • yarn start
  • Browser opens to Storybook page

❤️ Contributors

Thanks to all our contributors!

5.0/ 5
3
Rate
5
3
4
0
3
0
2
0
1
0
Great Documentation3
Easy to Use3
Highly Customizable3
Responsive Maintainers1

Downloads/wk

2.8K

GitHub Stars

1.1K

LAST COMMIT

5mos ago

MAINTAINERS

1

CONTRIBUTORS

13

OPEN ISSUES

57

OPEN PRs

1
VersionTagPublished
5.0.6
latest
2mos ago