BASE

React Flow / Svelte Flow

React Flow / Svelte Flow

UI library · Free

Interactive node-graph components for React and Svelte: provide a foundation for workflow editors, diagrams, and visual builders.

Also known as: xyflow/xyflow; xyflow; React Flow; Svelte Flow

Resource illustration: React Flow / Svelte Flow

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Create a node-based workflow editor
  • Connect adding/joining nodes to application state and saving the graph

Example workflow

A possible workflow; this is not a report of hands-on testing.

Create a node-based workflow editor.

Before you start

  • The component's design, states, and data.
  • A compatible framework and the project's styles.

Steps

  1. Describe nodes, edges, and the data relationship model.
  2. Connect adding/joining nodes to application state and saving the graph.
  3. Configure styles and check empty, loading, and error states.

Check your result

  • The keyboard, focus indicators, and a screen reader let users complete the action.
  • The component works on a narrow screen and with long data values.

Choosing React Flow / Svelte Flow

Create a node-based workflow editor

Choose this when

  • Create a node-based workflow editor
  • Connect adding/joining nodes to application state and saving the graph

Requirements

  • Choose the package for your framework and connect its stylesheet; node identifiers must match edge references.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • React Flow and Svelte Flow are separate packages; React component code cannot be inserted into a Svelte project without adaptation.

Frequently asked questions

What can you use for free in React Flow / Svelte Flow?

Code and local use under MIT.

What additional costs might arise with React Flow / Svelte Flow?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for React Flow / Svelte Flow?

MIT for the code; dependencies have separate licenses.

How do you get started with React Flow / Svelte Flow?

Describe nodes, edges, and the data relationship model. Connect adding/joining nodes to application state and saving the graph. Configure styles and check empty, loading, and error states.

Which xyflow package does a React project need, and which does Svelte need?

The README specifies @xyflow/react for current React Flow and @xyflow/svelte for Svelte Flow; the shared internal package is @xyflow/system. In the React example, node and edge changes are passed into application state through callbacks. Saving the graph is a possible use case for your logic, not an automatic database provided by the library.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • React Flow / Svelte Flow
  • UI
  • Development

Sources

Other resources