# pxneetlab16/workflow-maker architecture

> Architecture diagram of the GitHub repository pxneetlab16/workflow-maker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pxneetlab16/workflow-maker
- Repository: https://github.com/pxneetlab16/workflow-maker

## Overview

This is a browser-based visual workflow editor for composing AI-task flows. Users create or select a project, add and configure task cards, connect them on a canvas, and manage or download the flow; the project store also provides edit history and persistence. The sampled code shows workflow composition, not execution of the depicted AI tasks. The README is empty, and several relationships rely on SOURCE INDEX references rather than inspected implementations.

Main entry points: [`src/components/flow/header.tsx`](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/header.tsx) (Project Toolbar), [`src/components/flow/flow-canvas.tsx`](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/flow-canvas.tsx) (Flow Canvas), [`src/components/flow/sidebar.tsx`](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/sidebar.tsx) (Project List), [`src/lib/flow-store.ts`](https://github.com/pxneetlab16/workflow-maker/blob/main/src/lib/flow-store.ts) (Project State)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow_ui["Workflow UI"]
  node_flow_sidebar["Project List<br/>[sidebar.tsx]"]
  node_flow_header["Project Toolbar<br/>[header.tsx]"]
  node_canvas["Flow Canvas<br/>[flow-canvas.tsx]"]
  node_create_modal["Card Editor"]
  node_card_node["Task Card<br/>[ai-card-node.tsx]"]
  node_edge_view["Flow Connector<br/>[current-edge.tsx]"]
end

subgraph group_workflow_state["Workflow State"]
  node_task_types["Task Catalog<br/>[task-types.ts]"]
  node_flow_store[("Project State<br/>[flow-store.ts]")]
  node_ui_store["UI State<br/>[ui-store.ts]"]
end

subgraph group_shared_ui["Shared UI"]
  node_toast_hook["Toast State<br/>[use-toast.ts]"]
  node_toaster["Toast Display<br/>[toaster.tsx]"]
  node_toast_component["Toast Component<br/>[toast.tsx]"]
  node_alert_dialog["Confirm Dialog<br/>[alert-dialog.tsx]"]
  node_button["Button Control<br/>[button.tsx]"]
  node_input["Text Input<br/>[input.tsx]"]
  node_scroll_area["Scroll Area<br/>[scroll-area.tsx]"]
  node_tooltip["Tooltip Control<br/>[tooltip.tsx]"]
  node_sheet["Mobile Sheet<br/>[sheet.tsx]"]
end

subgraph group_app_shell["App Shell"]
  node_home["Project Workspace<br/>[page.tsx]"]
  node_layout["App Layout<br/>[layout.tsx]"]
end

node_user(("User"))

node_user -->|"opens workspace"| node_home
node_home -->|"renders"| node_flow_sidebar
node_home -->|"renders"| node_flow_header
node_home -->|"renders"| node_canvas
node_home -->|"initializes project"| node_flow_store
node_flow_sidebar -->|"manages projects"| node_flow_store
node_flow_sidebar -->|"reads UI state"| node_ui_store
node_flow_sidebar -->|"uses"| node_scroll_area
node_flow_sidebar -->|"confirms deletion"| node_alert_dialog
node_flow_header -->|"manages flow"| node_flow_store
node_flow_header -->|"reads UI state"| node_ui_store
node_flow_header -->|"reports actions"| node_toast_hook
node_flow_header -->|"confirms deletion"| node_alert_dialog
node_canvas -->|"updates graph"| node_flow_store
node_canvas -->|"registers download"| node_ui_store
node_canvas -->|"reports download"| node_toast_hook
node_canvas -->|"renders"| node_create_modal
node_canvas -->|"renders"| node_card_node
node_canvas -->|"renders"| node_edge_view
node_create_modal -->|"adds card"| node_flow_store
node_create_modal -->|"selects task type"| node_task_types
node_create_modal -->|"uses"| node_input
node_create_modal -->|"uses"| node_scroll_area
node_card_node -->|"reads flow state"| node_flow_store
node_card_node -->|"uses task types"| node_task_types
node_edge_view -->|"reads flow state"| node_flow_store
node_layout -->|"renders"| node_toaster
node_toaster -->|"subscribes"| node_toast_hook
node_toaster -->|"renders"| node_toast_component
node_alert_dialog -->|"uses"| node_button
node_flow_header -->|"uses"| node_button
node_flow_header -->|"uses"| node_tooltip
node_flow_sidebar -->|"uses mobile sheet"| node_sheet

click node_home "https://github.com/pxneetlab16/workflow-maker/blob/main/src/app/page.tsx"
click node_flow_sidebar "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/sidebar.tsx"
click node_flow_header "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/header.tsx"
click node_canvas "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/flow-canvas.tsx"
click node_create_modal "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/card-create-modal.tsx"
click node_card_node "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/ai-card-node.tsx"
click node_edge_view "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/current-edge.tsx"
click node_task_types "https://github.com/pxneetlab16/workflow-maker/blob/main/src/lib/task-types.ts"
click node_flow_store "https://github.com/pxneetlab16/workflow-maker/blob/main/src/lib/flow-store.ts"
click node_ui_store "https://github.com/pxneetlab16/workflow-maker/blob/main/src/lib/ui-store.ts"
click node_toast_hook "https://github.com/pxneetlab16/workflow-maker/blob/main/src/hooks/use-toast.ts"
click node_toaster "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/toaster.tsx"
click node_toast_component "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/toast.tsx"
click node_alert_dialog "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/alert-dialog.tsx"
click node_button "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/button.tsx"
click node_input "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/input.tsx"
click node_scroll_area "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/scroll-area.tsx"
click node_tooltip "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/tooltip.tsx"
click node_sheet "https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/sheet.tsx"
click node_layout "https://github.com/pxneetlab16/workflow-maker/blob/main/src/app/layout.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_flow_sidebar,node_flow_header,node_canvas,node_create_modal,node_card_node,node_edge_view,node_user toneBlue
class node_task_types,node_flow_store,node_ui_store toneAmber
class node_toast_hook,node_toaster,node_toast_component,node_alert_dialog,node_button,node_input,node_scroll_area,node_tooltip,node_sheet toneMint
class node_home,node_layout toneRose
```

## Components

### Workflow UI

- [Project List](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/sidebar.tsx): `src/components/flow/sidebar.tsx`
- [Project Toolbar](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/header.tsx): `src/components/flow/header.tsx`
- [Flow Canvas](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/flow-canvas.tsx): `src/components/flow/flow-canvas.tsx`
- [Card Editor](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/card-create-modal.tsx): `src/components/flow/card-create-modal.tsx`
- [Task Card](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/ai-card-node.tsx): `src/components/flow/ai-card-node.tsx`
- [Flow Connector](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/flow/current-edge.tsx): `src/components/flow/current-edge.tsx`

### Workflow State

- [Task Catalog](https://github.com/pxneetlab16/workflow-maker/blob/main/src/lib/task-types.ts): `src/lib/task-types.ts`
- [Project State](https://github.com/pxneetlab16/workflow-maker/blob/main/src/lib/flow-store.ts): `src/lib/flow-store.ts`
- [UI State](https://github.com/pxneetlab16/workflow-maker/blob/main/src/lib/ui-store.ts): `src/lib/ui-store.ts`

### Shared UI

- [Toast State](https://github.com/pxneetlab16/workflow-maker/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast Display](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/toaster.tsx): `src/components/ui/toaster.tsx`
- [Toast Component](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`
- [Confirm Dialog](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/alert-dialog.tsx): `src/components/ui/alert-dialog.tsx`
- [Button Control](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Text Input](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/input.tsx): `src/components/ui/input.tsx`
- [Scroll Area](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/scroll-area.tsx): `src/components/ui/scroll-area.tsx`
- [Tooltip Control](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/tooltip.tsx): `src/components/ui/tooltip.tsx`
- [Mobile Sheet](https://github.com/pxneetlab16/workflow-maker/blob/main/src/components/ui/sheet.tsx): `src/components/ui/sheet.tsx`

### App Shell

- [Project Workspace](https://github.com/pxneetlab16/workflow-maker/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [App Layout](https://github.com/pxneetlab16/workflow-maker/blob/main/src/app/layout.tsx): `src/app/layout.tsx`

### Other components

- **User**

## Connections

- User → Project Workspace: opens workspace
- Project Workspace → Project List: renders (evidence: `src/app/page.tsx`)
- Project Workspace → Project Toolbar: renders (evidence: `src/app/page.tsx`)
- Project Workspace → Flow Canvas: renders (evidence: `src/app/page.tsx`)
- Project Workspace → Project State: initializes project (evidence: `src/app/page.tsx`)
- Project List → Project State: manages projects (evidence: `src/components/flow/sidebar.tsx`)
- Project List → UI State: reads UI state (evidence: `src/components/flow/sidebar.tsx`)
- Project List → Scroll Area: uses (evidence: `src/components/flow/sidebar.tsx`)
- Project List → Confirm Dialog: confirms deletion (evidence: `src/components/flow/sidebar.tsx`)
- Project Toolbar → Project State: manages flow (evidence: `src/components/flow/header.tsx`)
- Project Toolbar → UI State: reads UI state (evidence: `src/components/flow/header.tsx`)
- Project Toolbar → Toast State: reports actions (evidence: `src/components/flow/header.tsx`)
- Project Toolbar → Confirm Dialog: confirms deletion (evidence: `src/components/flow/header.tsx`)
- Flow Canvas → Project State: updates graph (evidence: `src/components/flow/flow-canvas.tsx`)
- Flow Canvas → UI State: registers download (evidence: `src/components/flow/flow-canvas.tsx`)
- Flow Canvas → Toast State: reports download (evidence: `src/components/flow/flow-canvas.tsx`)
- Flow Canvas → Card Editor: renders (evidence: `src/components/flow/flow-canvas.tsx`)
- Flow Canvas → Task Card: renders (evidence: `src/components/flow/flow-canvas.tsx`)
- Flow Canvas → Flow Connector: renders (evidence: `src/components/flow/flow-canvas.tsx`)
- Card Editor → Project State: adds card (evidence: `src/components/flow/card-create-modal.tsx`)
- Card Editor → Task Catalog: selects task type (evidence: `src/components/flow/card-create-modal.tsx`)
- Card Editor → Text Input: uses (evidence: `src/components/flow/card-create-modal.tsx`)
- Card Editor → Scroll Area: uses (evidence: `src/components/flow/card-create-modal.tsx`)
- Task Card → Project State: reads flow state (evidence: `src/components/flow/ai-card-node.tsx`)
- Task Card → Task Catalog: uses task types (evidence: `src/components/flow/ai-card-node.tsx`)
- Flow Connector → Project State: reads flow state (evidence: `src/components/flow/current-edge.tsx`)
- App Layout → Toast Display: renders (evidence: `src/app/layout.tsx`)
- Toast Display → Toast State: subscribes (evidence: `src/components/ui/toaster.tsx`)
- Toast Display → Toast Component: renders (evidence: `src/components/ui/toaster.tsx`)
- Confirm Dialog → Button Control: uses (evidence: `src/components/ui/alert-dialog.tsx`)
- Project Toolbar → Button Control: uses (evidence: `src/components/flow/header.tsx`)
- Project Toolbar → Tooltip Control: uses (evidence: `src/components/flow/header.tsx`)
- Project List → Mobile Sheet: uses mobile sheet (evidence: `src/components/flow/sidebar.tsx`)
