Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-diagrams

> 前端框架
Open source

a super simple, no-nonsense diagramming library written in react that just works

9.4K stars0 likes3 views
WebsiteGitHub

About

a super simple, no-nonsense diagramming library written in react that just works

Introduction

DEMO: http://projectstorm.cloud/react-diagrams

DOCS (wip) https://projectstorm.gitbook.io/react-diagrams

Docs are currently being worked on, along with a migration path.

What

A flow & process orientated diagramming library inspired by Blender, Labview and Unreal engine.

  • Modern Codebase written entirely in Typescript and React, the library makes use of powerful generics, advanced software engineering principles and is broken up into multiple modules.
  • Hackable and extensible the entire library including its core can be extended, rewired and re-assembled into fundamentally different software to suit your own software needs.
  • HTML nodes as a first class citizen the library was originally written to represent advanced dynamic nodes, that are difficult to represent as SVG's due to complex input requirements ux requirements.
  • Designed for process the library is aimed for software engineers that want to rewire their programs at runtime, and that want to make their software more dynamic.
  • Fast diagram editing the defaults provided give the highest priority to editing diagrams as fast as possible.

Gallery

Example implementation using custom models: (Dylan's personal code)

Get started with the default models right out of the box:

Installing

For all the bells and whistles:

yarn add @projectstorm/react-diagrams

This includes all the packages listed below (and works (mostly and conceptually) like it used to in version 5.0)

A more modular approach

This library now has a more modular design and you can import just the core (contains no default factories or routing)

yarn add @projectstorm/react-diagrams-core

this is built ontop of the evolving react-canvas-core library

yarn add @projectstorm/react-canvas-core

which makes use of

yarn add @projectstorm/geometry

and of course, you can add some extras:

yarn add @projectstorm/react-diagrams-defaults
yarn add @projectstorm/react-diagrams-routing

How to use

Before running any of the examples, please run pnpm build in the root. This project is a monorepo, and the packages (including the demos) require the packages to first be built.

Take a look at the diagram demos

or

Take a look at the demo project which contains an example for ES6 as well as Typescript

or

Checkout the docs

Run the demos

After running pnpm install and pnpm build, you must then run: cd diagrams-demo-gallery && pnpm run start

Building from source

Simply run pnpm then pnpm build or pnpm build:prod in the root directory and it will spit out the transpiled code and typescript definitions into the dist directory as a single file.

Built with react-diagrams

Do you have an interesting project built with react-diagrams? PR it into this section for others to see.

Issues· 320 open

View all issuesOpen on GitHub
  • #1053

    eemeli/yaml is included and is subject to CVE-2023-2251, can you upgrade bable-plugin-macros to remove that venerable dependency

    Updated Dec 17, 2025
  • #617

    TypeError: Cannot read property 'offsetWidth' of null

    Updated Oct 20, 2025
  • #1051

    React duplicate key error in DefaultLinkSegmentWidget

    Updated Jul 20, 2025
  • #1050

    Multi-link selection remains active after switching browser tabs without holding Shift

    Updated Jun 26, 2025
  • #991

    Clicking on port creates stray edge

    Updated Jun 11, 2025
  • #896

    Debouncing in the engine sometimes locks pan in the CanvasWidget

    Updated May 14, 2025
  • #727

    Broken Rendering with Redux + Model Serialization/De-Serialization

    questionansweredUpdated Apr 2, 2025
  • #708

    "Cannot read property 'x' of undefined" error when use smart-routing

    bugneeds investigationshowcases a cool project :PUpdated Mar 21, 2025
  • #726

    Label not at correct position while using right-angle links

    bugUpdated Mar 18, 2025
  • #783

    The `@emotion/core` package has been renamed to `@emotion/react`

    Updated Feb 13, 2025

> Tags

TypeScriptbetacanvasdemodiagram

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架