How starving-array/vectorshift-pipeline-builder works
1. This repository is a two-tier workflow builder: a React frontend lets users assemble a directed graph visually, and a small FastAPI backend validates and summarizes the graph when it is submitted.
2. The frontend is the main interactive surface. frontend/src/App.js likely composes the canvas, toolbar, and submission controls, while frontend/src/index.js bootstraps the React app and index.css handles global styling.
3. Graph editing is built around React Flow and local client state. frontend/src/store.js suggests a Zustand-based store for nodes, edges, selection, and UI actions, keeping the workflow editor state in the browser until submission.
4. The node system is modular. frontend/src/nodes/ contains a BaseNode plus specialized nodes such as input, output, text, LLM, API, delay, filter, email, and math. This indicates a reusable node UI pattern rather than one-off components.
5. BaseNode is the abstraction boundary for all workflow nodes. It likely standardizes labels, handles, and connection points so that each concrete node only defines its own configuration and behavior.
6. The Text node is the most dynamic frontend node. The README says it parses variables like {{name}} and generates input handles automatically, so it is responsible for turning text templates into graph dependencies.
7. frontend/src/draggableNode.js, toolbar.js, and ui.js appear to support palette-to-canvas interaction and editor chrome. In architecture terms, these are the user-facing controls that create new nodes and make them draggable into the workflow canvas.
8. The frontend’s data flow is: user creates or connects nodes on the React Flow canvas, the store maintains the graph, and the submit flow serializes the graph for backend analysis. frontend/src/submit.js is the likely boundary where client graph state is turned into an API request.
9. The backend is intentionally narrow. backend/main.py and backend/requirements.txt indicate a single Python service built with FastAPI, likely exposing one submission endpoint rather than a full CRUD application.
10. Backend responsibilities are validation and summary, not long-term persistence. According to the README, it returns the number of nodes, number of edges, and whether the graph is a valid DAG, so it acts as a stateless graph-analysis service.
11. DAG validation is a key processing boundary. The README explicitly mentions Kahn’s Algorithm, so the backend likely converts the submitted graph into an adjacency representation, checks acyclicity, and reports validity back to the frontend.
12. There is no evidence of a database, authentication layer, message queue, or external service integration. For an architecture diagram, the main boundary is simply browser-based workflow editing on the left and Python-based graph validation on the right.
13. The most important runtime split is frontend vs backend: React/React Flow/Zustand in the browser, FastAPI/Python on the server. Everything else is internal structure around node composition, graph state, and submission/validation.
Main entry points: BaseNode.js Base node · App.js Workflow editor · toolbar.js Toolbar · submit.js Submit flow
Components 19
Frontend
React workflow editor in the browser
- Entry point · Mounts the frontend application
frontend/src/index.js - Workflow editor · Composes the canvas, controls, and submission flow
frontend/src/App.js - Graph store · Keeps nodes, edges, and editor actions in browser state
frontend/src/store.js - Toolbar · Palette and creation controls for adding nodes
frontend/src/toolbar.js - Canvas UI · Supporting editor surface and workflow UI
frontend/src/ui.js - Draggable node · Enables palette items to be dropped onto the canvas
frontend/src/draggableNode.js - Submit flow · Serializes the graph and sends it to the backend
frontend/src/submit.js - Global styles · Application-wide CSS for the editor
frontend/src/index.css
Node system
Reusable workflow node components
- Base node · Shared node shell with handles and common layout
frontend/src/nodes/BaseNode.js - Input node · Represents an input source
frontend/src/nodes/inputNode.js - Output node · Represents an output sink
frontend/src/nodes/outputNode.js - Text node · Parses variables and generates dynamic handles
frontend/src/nodes/textNode.js - LLM node · Represents a language-model step
frontend/src/nodes/llmNode.js - API node · Represents an external request step
frontend/src/nodes/apiNode.js - Delay node · Represents a timed pause in the graph
frontend/src/nodes/delayNode.js - Filter node · Represents conditional routing logic
frontend/src/nodes/filterNode.js - Email node · Represents an email action
frontend/src/nodes/emailNode.js - Math node · Represents numeric transformation logic
frontend/src/nodes/mathNode.js
Backend
FastAPI graph validation service
- Graph API · Validates submitted graphs and returns summary stats
backend/main.py
Connections 20
- Entry point → Workflow editor: mounts · Bootstraps the React application
- Workflow editor → Graph store: uses · Reads and updates editor graph state
- Workflow editor → Toolbar: composes · Renders creation controls
- Workflow editor → Canvas UI: composes · Renders the main workflow editor surface
- Workflow editor → Draggable node: enables · Supports drag-and-drop node creation
- Toolbar → Draggable node: spawns · Provides draggable palette items
- Workflow editor → Submit flow: submits · Hands off graph state for validation
- Workflow editor → Global styles: styles · Applies global styling to the editor
- Workflow editor → Base node: renders · Uses the shared node abstraction in the canvas
- Base node → Input node: specializes · Input node builds on the base node shell
- Base node → Output node: specializes · Output node builds on the base node shell
- Base node → Text node: specializes · Text node adds template-driven behavior
- Base node → LLM node: specializes · LLM node builds on the base node shell
- Base node → API node: specializes · API node builds on the base node shell
- Base node → Delay node: specializes · Delay node builds on the base node shell
- Base node → Filter node: specializes · Filter node builds on the base node shell
- Base node → Email node: specializes · Email node builds on the base node shell
- Base node → Math node: specializes · Math node builds on the base node shell
- Submit flow → Graph API: calls · Sends the submitted graph for analysis
- Graph API → Workflow editor: returns summary · Responds with validation and graph stats