# alibaba/butterfly

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

Repository: https://github.com/alibaba/butterfly
Canonical: https://ross.abutalabs.com/products/butterfly
Homepage: https://butterfly-dag.gitee.io/butterfly-dag/home
Language: JavaScript
License: MIT
License Family: permissive
Topics: dag, svg, flow, flow-dag, flow-layout, flowchart, bpmn, diagram, diagramming, connectivity, tree, treemap-diagram, mindmap, butterfly, edge, react, vue
Last push: 2024-05-20T07:24:26+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2863, "days_push": 835, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4650, forks 610 (observed 2026-08-28T04:08:55.621699+00:00)

## What it is
Butterfly is a data-driven, node-based diagramming library for JavaScript, React, and Vue2, focused on flow layout. It provides canvas, node, edge, group, and endpoint primitives for building interactive flowcharts, DAGs, and node orchestration UIs.

## Use cases
- build an interactive flowchart editor in the browser
- render DAG pipeline visualizations
- create a node-based workflow orchestration UI
- draw BPMN-style process diagrams
- build a mindmap or tree diagram with draggable nodes
- embed a canvas with zoom, pan, and draggable nodes in a React or Vue2 app

## When to choose
- you need a flow/DAG diagramming library with React or Vue2 integration
- you want DOM-based customizable nodes rather than pure SVG rendering
- you need built-in layout algorithms, minimap, tooltips, and hotkeys for diagram editors

## When to avoid
- you need Vue3 support (only Vue2 is supported)
- you need a general-purpose charting or data-plotting library
- you require a fully maintained React wrapper (it is no longer maintained; native butterfly is recommended)

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, data-visualization, graphics
- domain: web-development, frontend, data-visualization, developer-tools
- platform: browser
- tags: diagramming, flowchart, dag, bpmn, mindmap, svg, node-editor, flow-layout, javascript, react, vue

## Member repositories
- alibaba/butterfly (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:55.621699+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:30.215651+00:00, confidence not recorded.
  - readme: https://github.com/alibaba/butterfly (fetched 2026-08-28T04:08:55.621699+00:00, sha b8fb3f0a32e2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
