RepositoryJavaScriptCNChina
AL

alibaba/butterfly

🦋Butterfly,A JavaScript/React/Vue2 Diagramming library which concentrate on flow layout field. (基于JavaScript/React/Vue2的流程图组件)

4.6kstars
609forks
161issues
9views

一个基于JS的数据驱动的节点式编排组件库

Build Status CircleCI npm package NPM downloads Dependencies DevDependencies

English | 简体中文

✨ 特性

  • 丰富DEMO,开箱即用
  • 全方位管理画布,开发者只需要更专注定制化的需求
  • 利用DOM/REACT/VUE来定制元素;灵活性,可塑性,拓展性优秀

🚀DEMO

本地DEMO

git clone git@github.com:alibaba/butterfly.git
npm install
cd example
npm install
npm start

线上DEMO

小蝴蝶官网

📦 安装

npm install butterfly-dag

🔨 快速上手

引入方式

// 完全版,内部包含jquery和lodash
import {Canvas, Group, Node, Edge} from 'butterfly-dag';
import 'butterfly-dag/dist/index.css';

// 如果您引用的项目使用了jquery和lodash,为了缩小项目的体积,我们建议:
import {Canvas, Group, Node, Edge} from 'butterfly-dag/pack/index.js';
import 'butterfly-dag/pack/index.css';

生成画布

import {Canvas} from 'butterfly-dag';
let canvas = new Canvas({
  root: dom,              //canvas的根节点(必传)
  zoomable: true,         //可缩放(可传)
  moveable: true,         //可平移(可传)
  draggable: true,        //节点可拖动(可传)
});
canvas.draw({
  groups: [],  //分组信息
  nodes: [],  //节点信息
  edges: []  // 连线信息
})

🔗 API文档

🎨优秀案例

⌨️垂直业务React拓展组件

  • 表字段血缘/业务血缘: 适用于表级血缘,表字段级血缘,业务链路血缘等业务

  • 可视化建模图: 适用于UML,数据库建模,数据仓库建设等业务

  • 调度编排图(doing)

  • 监控图: 适用于任务流,数据流等业务的状态展示

  • Butterfly-Editor(doing)

🤝如何贡献

我们欢迎所有的贡献者,在成为贡献者之前,请先阅读贡献指南。

如果您已经了解,快来Issus或Pull requests成为贡献者吧,让我们和小蝴蝶一起成长,一起变得更好、更棒!

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
didi/LogicFlow

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

11.8k
Oct 24, 2026
RepositoryTypeScript
antvis/X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.

6.8k
Nov 30, 2026
RepositoryPython
Agents365-ai/drawio-skill

Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sources into editable, tested draw.io architecture diagrams: incremental sync, multi-view projection, drift diff, CI architecture tests, whiteboard derasterize, interactive HTML/PPTX/Mermaid exports.

11.1k
Dec 1, 2026
RepositoryPython
csgoh/processpiper

An open source python library to generate business process diagram using code or plain text.

206
Nov 2, 2024
RepositoryJavaScript
adrai/flowchart.js

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

8.7k
Oct 23, 2026
RepositoryJavaScript
adrai/flowchart.js

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

8.7k
Oct 23, 2026
RepositoryJavaScript
NorthwoodsSoftware/GoJS

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

8.5k
Oct 2, 2026
RepositoryJavaScript
dyatko/arkit

JavaScript architecture diagrams and dependency graphs

972
Nov 30, 2026
RepositoryTypeScript
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.

8.6k
Nov 16, 2026