alibaba/butterfly
alibaba/butterfly has 4,638 GitHub stars and 610 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 14:29 UTC. Last push 2024-05-20.
🦋Butterfly,A JavaScript/React/Vue2 Diagramming library which concentrate on flow layout field. (基于JavaScript/React/Vue2的流程图组件)
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en-US.md
OriginalJavaScript Diagramming library which concentrate on flow layout canvas
English | 简体中文
✨ Features
- Simple & Powerful & Rich DEMO
- Manage the canvas in all aspects, developers only need to focus more on customized needs
- Use DOM/REACT/VUE to customize elements: flexibility and excellent expandability
🚀DEMO
LOCAL DEMO
git clone [email protected]:alibaba/butterfly.git
npm install
cd example
npm install
npm start
ONLINE DEMO
📦 Install
npm install butterfly-dag
🔨 Quick Start
Import Method
// Full version, including jQuery and lodash internally
import {Canvas, Group, Node, Edge} from 'butterfly-dag';
import 'butterfly-dag/dist/index.css';
// If your project uses jQuery and lodash, in order to reduce the size of the project, we suggest:
import {Canvas, Group, Node, Edge} from 'butterfly-dag/pack/index.js';
import 'butterfly-dag/pack/index.css';
Create Canvas
import {Canvas} from 'butterfly-dag';
let canvas = new Canvas({
root: dom, //canvas root dom (require)
zoomable: true, //enable zoom canvas (option)
moveable: true, //enable move canvas (option)
draggable: true, //enable drag nodes (options)
});
canvas.draw({
groups: [], // group data
nodes: [], // nodes data
edges: [] // edges data
})
🔗 API Document
- !!! 3.x API documentation, please go tohere;
- Canvas
- Group
- Node
- Edge
- Endpoint
- Minimap
- Tooltips & Menu
- Layout
- Plugins
- React & Vue Support
- React butterfly [No maintenance, it is recommended to use native version]
- Vue2 butterfly
🎨Excellent Cases
⌨️Business-specific React Extension Components
Blood Map: Suitable for table blood dag, table field blood dag, business chain blood dag and other blood dag
Visual Modeling: Suitable for UML, database modeling, data warehouse construction
Scheduling Diagram(doing)
Monitoring: Suitable for the status display of task flow, data flow and other business
Butterfly-Editor(doing)
🤝 How to contribute
We welcome all contributors, please read the Contribution Guide before becoming a Contributor.
If you already know, come to Issues or Pull requests to become contributors, and let's grow and be better and better together.
Explore related projects
ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites
141,487 starsexcalidraw/excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
135,331 starsgodotengine/godot
Godot Engine – Multi-platform 2D and 3D game engine
119,771 starsmrdoob/three.js
JavaScript 3D Library.
117,842 stars