Skip to content
weeeolPublic

About

Convert Python source code into beautiful, orthogonal flowcharts instantly. Built with FastAPI & React.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

62 Commits

Folders and files

Repository files navigation

FlowMake - Python to Flowchart Visualizer

FlowMake is a modern full-stack application that automatically converts Python source code into professional, orthogonal flowcharts. It features a stunning minimalist interface, real-time visualization, and deep editor integration.

🚀 Features

🌟 Core Experience

  • Live Playground: Type Python code on the left and see the flowchart generate instantly on the right.
  • Interactive Click-to-Code: Click on any node in the generated SVG flowchart to instantly scroll the code editor to the exact line of Python that generated it!
  • Save & Share: Save your code snippets securely to a local SQLite database and share them with colleagues via a unique URL (?id=xyz).
  • Vector Graphics: Flowcharts are rendered in pure SVG, ensuring they remain razor-sharp no matter how closely you zoom in.
  • Smart Dashboard: Drag & drop .py files to auto-generate flowcharts for every function and class.
  • Minimalist Design: A sleek, premium, monochromatic UI with a built-in dark theme toggle for late-night coding sessions 🌙.

🎨 Visuals & Parsing

  • AST Analysis: Uses Python's Abstract Syntax Tree to accurately map code flow.
  • Enhanced Parsing: Fully supports modern Python features, including async def functions, match/case structural pattern matching, try/catch blocks, and loops.
  • Minimalist Styling: Nodes are styled cleanly with grayscale palettes to perfectly match both light and dark themes.

🛠️ Tech Stack

  • Frontend: React (Vite), Monaco Editor, Lucide Icons, Axios
  • Visualization: Graphviz SVG output with interactive React wrappers
  • Backend: Python, FastAPI, SQLAlchemy, SQLite
  • Analysis: Python ast (Abstract Syntax Tree)

📦 How to Run

Since this project relies on system-level graphics rendering, you must install Graphviz on your computer first.

1. Install Prerequisites

  • Windows: Download Graphviz Installer (Select "Add Graphviz to system PATH" during install).
  • Mac: brew install graphviz
  • Linux: sudo apt-get install graphviz

2. Backend Setup

Navigate to the backend folder:

cd backend

# Create virtual environment (Optional but recommended)
python -m venv venv
# Windows: venv\Scripts\activate
# Mac/Linux: source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Run the Server (auto-creates the SQLite database on startup)
uvicorn app.main:app --reload

3. Frontend Setup

Navigate to the frontend folder:

cd frontend

# Install dependencies
npm install

# Run the development server
npm run dev

🌐 Deployment

For instructions on deploying FlowMake to production environments (Vercel, Render, Docker), please see the Deployment Guide.

About

Convert Python source code into beautiful, orthogonal flowcharts instantly. Built with FastAPI & React.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages