Zurück zum Ranking

didi/LogicFlow

TypeScriptlogicflow.cn

A flow chart editing framework focus on business customization. 专注于业务自定义的流程图编辑框架,支持实现脑图、ER图、UML、工作流等各种图编辑场景。

flowchartgraphmvvmvisualizationbpmndiagramflowdiagrammingdidijavascriptjavascript-diagramming-librarysvg
Sterne-Wachstum
Sterne
11.5k
Forks
1.4k
Wochenwachstum
Issues
111
5k10k
Jan. 2023März 2024Mai 2025Juli 2026
Artefaktenpmnpm install logicflow
README

LogicFlow logo

Version Download LICENSE

简体中文 | English

LogicFlow 是一款流程图编辑框架,提供了一系列流程图交互、编辑所必需的功能和简单灵活的节点自定义、插件等拓展机制,方便我们快速在业务系统内满足类流程图的需求。

核心能力

  • 可视化模型:通过 LogicFlow 提供的直观可视化界面,用户可以轻松创建、编辑和管理复杂的逻辑流程图。
  • 高可定制性:用户可以根据自己的需要定制节点、连接器和样式,创建符合特定用例的定制逻辑流程图。
  • 灵活易拓展: 内置提供丰富的插件,用户也可根据自身需求定制复杂插件实现业务需求。
  • 自执行引擎: 执行引擎支持浏览器端执行流程图逻辑,为无代码执行提供新思路。
  • 数据可转换:支持 LogicFlow 数据与 BPMN、Turbo 等各种后端执行引擎数据结构转换能力。

安装

# npm
$ npm install @logicflow/core @logicflow/extension --save

# yarn
$ yarn add @logicflow/core @logicflow/extension

# pnpm
$ pnpm add @logicflow/core @logicflow/extension

AI 编程支持

LogicFlow 为 AI 编程工具提供了随 npm 包发布的本地文档。@logicflow/core@2.2.2 及以上版本会包含这些文档。安装或升级后,可以把下面这段提示词复制给你的 AI Agent,让它在实现 LogicFlow 功能前先查官方文档。

更多说明请查看 AI 编程支持

<!-- BEGIN:logicflow-agent-rules -->
# LogicFlow Agent Rules

LogicFlow documentation is available at:

- `node_modules/@logicflow/core/dist/docs/`

Package roles:

- `@logicflow/core`: core graph editor runtime, including canvas, nodes, edges, models, events, rendering, themes, and basic interactions.
- `@logicflow/extension`: official plugins for common product features.
- `@logicflow/layout`: official layout plugins for automatic graph layout.

The docs for `@logicflow/extension` and `@logicflow/layout` are included under:

- `node_modules/@logicflow/core/dist/docs/tutorial/extension/`

Before implementing any LogicFlow feature, check the local docs first to see whether LogicFlow already provides a built-in, extension, or layout capability. If it does, prefer the documented official capability instead of reimplementing it from scratch.

If an official package is needed but not installed, ask the user before installing it.
<!-- END:logicflow-agent-rules -->

快速上手

<!-- LogicFlow 容器 DOM-->
<div id="container"></div>;
// 准备数据
const data = {
  // 节点
  nodes: [
    {
      id: '21',
      type: 'rect',
      x: 100,
      y: 200,
      text: '矩形节点',
    },
    {
      id: '50',
      type: 'circle',
      x: 300,
      y: 400,
      text: '圆形节点',
    },
  ],
  // 边
  edges: [
    {
      type: 'polyline',
      sourceNodeId: '50',
      targetNodeId: '21',
    },
  ],
};
// 渲染画布
const lf = new LogicFlow({
  container: document.querySelector('#container'),
  width: 700,
  height: 600,
});

lf.render(data);

相关文档

官方文档


本地开发

# 安装项目依赖(prepare 会自动跑 build:all)
$ pnpm install

# 终端 1:监听 packages,热更新 es/lib
$ pnpm run dev

# 终端 2:启动 demo
$ cd examples/feature-examples && pnpm dev

参与共建

如果希望参与到 LogicFlow 的开发中,请遵从我们的贡献指南。如果你贡献度足够活跃,你可以申请成为社区协作者。

Contributors

Star History

Star History Chart

开源协议

该项目的代码和文档基于 Apache-2.0 License 开源协议。

Ähnliche Repositories
mermaid-js/mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown

TypeScriptnpmMIT Licensedocumentationflowchart
mermaid.ai/open-source/
89.3k9.1k
xyflow/xyflow

React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.

TypeScriptnpmMIT Licenseflowchartgraph
xyflow.com
37.7k2.5k
pandao/editor.md

The open source embeddable online markdown editor (component).

JavaScriptnpmMIT Licensemarkdowneditor
editor.md.ipandao.com
14.3k2.5k
plait-board/drawnix

开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.

TypeScriptnpmMIT Licensecollaborationdrawing
drawnix.com
14.3k1.2k
alyssaxuu/flowy

The minimal javascript library to create flowcharts ✨

JavaScriptnpmMIT Licenseflowchartdiagrams
12.1k1k
projectstorm/react-diagrams

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

TypeScriptnpmMIT Licensereactdemo
projectstorm.cloud/react-diagrams
9.4k1.2k
adrai/flowchart.js

Draws simple SVG flow chart diagrams from textual representation of the diagram

JavaScriptnpmMIT Licenseflowchartdiagram
flowchart.js.org
8.7k1.2k
NorthwoodsSoftware/GoJS

JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.

HTMLOtherhtmldiagram
gojs.net
8.5k2.8k
bytedance/flowgram.ai

FlowGram is an extensible workflow development framework with built-in canvas, form, variable, and materials that helps developers build AI workflow platforms faster and simpler.

TypeScriptnpmMIT Licenseflowflowchart
flowgram.ai
8.2k741
jsplumb/jsplumb

Visual connectivity for webapps

diagramsvg
jsplumbtoolkit.com
7.8k1.4k
Bogdan-Lyashenko/js-code-to-svg-flowchart

js2flowchart - a visualization library to convert any JavaScript code into beautiful SVG flowchart. Learn other’s code. Design your code. Refactor code. Document code. Explain code.

JavaScriptnpmMIT Licenseflowchartsvg-flowchart
7.1k480
bcakmakoglu/vue-flow

A highly customizable Flowchart component for Vue 3. Features seamless zoom & pan 🔎, additional components like a Minimap 🗺 and utilities to interact with state and graph.

TypeScriptnpmMIT Licensevuevue3
vueflow.dev
6.7k405