reagraph
TypeScript icon, indicating that this package has built-in type declarations

4.21.1 • Public • Published


WebGL Network Graphs for React

Open Collective backers and sponsors

Reagraph is a high-performance network graph visualization built in WebGL for React.

🚀 Quick Links

💎 Other Projects

  • Reaflow - Open-source library for workflow and diagram graphs.
  • Reablocks - Open-source component library for React based on Tailwind.
  • Reaviz - Open-source library for data visualizations for React.
  • Reachat - Open-source library for building LLM/Chat UIs for React.

✨ Features

  • WebGL based for high performance
  • Node Sizing based on attribute, page rank, centrality, custom
  • Light and Dark Mode with custom theme ability
  • Path finding between nodes
  • Radial Context Menu
  • Highlight and Selection Hook
  • Dragging Nodes
  • Lasso Selection
  • Expand/Collapse Nodes
  • Customizable Nodes
  • Advanced Label Placement
  • Edge Interpolation
  • Clustering

with the following built in layouts:

  • Force Directed 2D
  • Force Directed 3D
  • Circular 2D
  • Tree Top Down 2D
  • Tree Left Right 2D
  • Tree Top Down 3D
  • Tree Left Right 3D
  • Radial Out 2D
  • Radial Out 3D
  • Hierarchical Top Down 2D
  • Hierarchical Left Right 2D
  • No Overlap 2D
  • Force Atlas 2 2D

📦 Usage

Install the package via NPM:

npm i reagraph --save

Install the package via Yarn:

yarn add reagraph

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

import React from 'react';
import { GraphCanvas } from 'reagraph';

export default () => (
  <GraphCanvas
    nodes={[
      {
        id: 'n-1',
        label: '1'
      },
      {
        id: 'n-2',
        label: '2'
      }
    ]}
    edges={[
      {
        id: '1->2',
        source: 'n-1',
        target: 'n-2',
        label: 'Edge 1-2'
      }
    ]}
  />
);

Checkout an example on CodeSandbox.

🔭 Development

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

  • Clone the repo
  • npm i
  • npm start
  • Browser opens to Storybook page

❤️ Contributors

Thanks to all our contributors!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.21.197latest

Version History

VersionDownloads (Last 7 Days)Published
4.21.197
4.21.01,224
4.20.151
4.20.00
4.19.511
4.19.492
4.19.3878
4.19.2727
4.19.11
4.19.00
4.18.10
4.18.00
4.17.48
4.17.321
4.17.21
4.17.10
4.17.00
4.16.161
4.16.01
4.15.275
4.15.2658
4.15.251
4.15.240
4.15.230
4.15.220
4.15.2138
4.15.200
4.15.1978
4.15.180
4.15.175
4.15.160
4.15.151
4.15.140
4.15.130
4.15.120
4.15.110
4.15.103
4.15.90
4.15.81
4.15.74
4.15.612
4.15.50
4.15.44
4.15.30
4.15.20
4.15.10
4.15.00
4.14.213
4.14.12
4.14.00
4.13.01
4.12.40
4.12.30
4.12.20
4.12.10
4.12.062
4.11.190
4.11.00
4.10.50
4.10.41
4.10.33
4.10.20
4.10.10
4.10.00
4.9.30
4.9.20
4.9.10
4.9.00
4.8.40
4.8.35
4.8.20
4.8.10
4.8.00
4.7.120
4.7.110
4.7.100
4.7.90
4.7.80
4.7.70
4.7.60
4.7.51
4.7.41
4.7.30
4.7.20
4.7.10
4.7.07
4.6.33
4.6.20
4.6.10
4.6.00
4.5.10
4.5.01
4.4.51
4.4.40
4.4.30
4.4.20
4.4.10
4.4.00
4.3.10
4.3.00
4.2.00
4.1.00
4.0.521
4.0.40
4.0.30
4.0.21
4.0.13
4.0.00
3.0.20
3.0.10
3.0.00
2.1.60
2.1.50
2.1.40
2.1.30
2.1.20
2.1.10
2.1.00
2.0.100
2.0.90
2.0.80
2.0.70
2.0.60
2.0.50
2.0.40
2.0.30
2.0.20
2.0.10
2.0.00
1.2.00
1.1.00
1.0.31
1.0.21
1.0.11
1.0.036
0.0.11

Package Sidebar

Install

npm i reagraph

Weekly Downloads

3,639

Version

4.21.1

License

Apache-2.0

Unpacked Size

1.1 MB

Total Files

87

Last publish

Collaborators

  • amcdnl