Streamlit Component Wrapper for React Flow
Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install streamlit-flow-componentREADME as published on PyPI with version 1.6.1.
Streamlit Flow
Build beautiful, interactive flow diagrams: Powered by React Flow, Simplified by Streamlit.

🎉 Version 1.6.1 is out now! 🎉
This version of StreamlitFlow fixes 2 major issues:
- Memory leak when interacting with the component (thanks @yyahav for bringing this up).
- Component not reflecting state changes made in Python.
Features
- Create, edit and visualize beautiful flow diagrams.
- Add nodes and edges, move them around, pan and zoom.
- Edit node and edge properties.
- Easy to use Layouts - Layered, Tree, Force, Stress, Radial, Random, and Manual.
- Markdown Support in Nodes.
- Interactions with Streamlit - clicks on nodes and edges can be captured in Streamlit.
- Synchronized state management - changes to the state of the flow can be made seamlessly from the UI through user interactions as well as programmatically in Python, and the changes reflect on the UI without any state modification wizardry.
A demo for all these features can be found here.
Installation
pip install streamlit-flow-component
Running the example
Install the dependencies
git clone https://github.com/dkapur17/streamlit-flow.git
cd streamlit-flow
npm install --prefix streamlit_flow/frontend
Run the frontent
On the first terminal, run from the root of the repository
cd streamlit_flow/frontend
npm start
Run this Example Streamlit App
On the second terminal, run from the root of the repository