reagraph

reavizApache-2.0更新放缓

基于 WebGL 的 React 图可视化组件,能流畅渲染大规模网络图和知识图谱,解决普通 SVG 方案在节点边数多时卡顿的问题。

🕸 WebGL Graph Visualizations for React. Maintained by @goodcodeus.

暂无版本1,098star93fork同步于 2026-11-07 07:31 UTC

怎么上手

由 README 提炼,执行前请确认
npm i reagraph --save
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 WebGL 的 React 网络图可视化库,用于高性能渲染大规模节点与边关系图

基于 WebGL 的 React 图可视化组件,能流畅渲染大规模网络图和知识图谱,解决普通 SVG 方案在节点边数多时卡顿的问题。

核心能力

  • 用 WebGL 渲染网络图以提升性能
  • 支持按属性、PageRank、中心性设置节点大小
  • 内置力导向、树形、径向、层次等 2D/3D 布局
  • 提供路径查找、套索选择、节点展开折叠与聚类
  • 支持边插值样式、边捆绑与自定义节点

容易踩的坑

需要 React 环境并在浏览器中运行,依赖 WebGL 支持;本地开发需克隆仓库后执行 npm i 与 npm start 启动 Storybook

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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 and Styling
    • Clustering
    • Edge Bundling
    • Node Badges

    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 Atlas2 2D
    • Concentric 2D
    • Concentric 3D

    📦 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!