How harshjha872/ai-workflow-builder works
This is a visual workflow authoring and execution application. Users create and configure connected trigger, LLM, HTTP, condition, transform, and output nodes; save workflows; then submit inputs and watch execution events. The frontend editor and API lead to backend workflow persistence and execution, where queued node work updates shared context and streams progress. The graph reflects the sampled routes, worker, and UI; some engine and storage relationships are supported only by the source index, and no README product details were provided.
Main entry points: worker.ts Execution worker · EditorPage.tsx Workflow editor · executions.ts Execution routes · queue.ts Execution queue
Components 30
Workflow authoring
- Workflow home
frontend/src/pages/HomePage.tsx - Workflow editor
frontend/src/pages/EditorPage.tsx - Graph canvas
frontend/src/components/canvas/Canvas.tsx - Node configuration
frontend/src/components/config/ConfigPanel.tsx - Workflow state
frontend/src/store/workflowSlice.ts - Execution state
frontend/src/store/executionSlice.ts - Workflow API client
frontend/src/api/workflows.ts - Execution API client
frontend/src/api/executions.ts
API and persistence
- Workflow routes
backend/src/routes/workflows.ts - Execution routes
backend/src/routes/executions.ts - Workflow persistence
backend/src/db/queries/workflows.ts - Execution persistence
backend/src/db/queries/executions.ts - SQLite database
backend/src/db/client.ts
Workflow runtime
- Workflow executor
backend/src/engine/executor.ts - DAG validation
backend/src/engine/dag.ts - Execution worker
backend/src/queue/worker.ts - Execution queue
backend/src/queue/queue.ts - Execution context
backend/src/engine/context.ts - Variable interpolation
backend/src/engine/interpolate.ts - Trigger node
backend/src/engine/nodes/trigger.ts - LLM node
backend/src/engine/nodes/llmCall.ts - HTTP node
backend/src/engine/nodes/httpRequest.ts - Condition node
backend/src/engine/nodes/condition.ts - Transform node
backend/src/engine/nodes/transform.ts - Output node
backend/src/engine/nodes/output.ts - Event streaming
backend/src/sse/sseManager.ts
External integrations
- Redis
backend/src/config/redis.ts - LLM providers
- HTTP endpoint
Other components
- Workflow user
Connections 37
- Workflow user → Workflow home: opens
- Workflow user → Workflow editor: edits
- Workflow home → Workflow API client: loads workflows
frontend/src/pages/HomePage.tsx - Workflow editor → Graph canvas: renders
frontend/src/pages/EditorPage.tsx - Workflow editor → Node configuration: renders
frontend/src/pages/EditorPage.tsx - Graph canvas → Workflow state: updates graph
frontend/src/components/canvas/Canvas.tsx - Workflow editor → Workflow state: loads workflow
frontend/src/pages/EditorPage.tsx - Workflow editor → Workflow API client: loads workflow
frontend/src/pages/EditorPage.tsx - Workflow editor → Execution API client: starts execution
frontend/src/pages/EditorPage.tsx - Workflow editor → Execution state: dispatches status
frontend/src/pages/EditorPage.tsx - Workflow editor → Event streaming: opens event stream
- Workflow API client → Workflow routes: HTTP requests
- Execution API client → Execution routes: HTTP requests
- Workflow routes → Workflow persistence: reads and writes
backend/src/routes/workflows.ts - Workflow persistence → SQLite database: queries
backend/src/db/queries/workflows.ts - Execution routes → Workflow persistence: loads workflow
backend/src/routes/executions.ts - Execution routes → Execution persistence: records execution
backend/src/routes/executions.ts - Execution persistence → SQLite database: queries
backend/src/db/queries/executions.ts - Execution routes → DAG validation: checks cycles
backend/src/routes/executions.ts - Execution routes → Workflow executor: starts workflow
backend/src/routes/executions.ts - Workflow executor → Execution queue: enqueues node work
- Execution queue → Execution worker: dispatches jobs
backend/src/queue/worker.ts - Execution worker → Execution queue: enqueues next node
backend/src/queue/worker.ts - Execution worker → Execution context: updates data
backend/src/queue/worker.ts - Execution worker → Variable interpolation: resolves config
backend/src/queue/worker.ts - Execution worker → Trigger node: dispatches
backend/src/queue/worker.ts - Execution worker → LLM node: dispatches
backend/src/queue/worker.ts - Execution worker → HTTP node: dispatches
backend/src/queue/worker.ts - Execution worker → Condition node: dispatches
backend/src/queue/worker.ts - Execution worker → Transform node: dispatches
backend/src/queue/worker.ts - Execution worker → Output node: dispatches
backend/src/queue/worker.ts - Execution worker → Event streaming: emits events
backend/src/queue/worker.ts - Execution routes → Event streaming: registers stream
backend/src/routes/executions.ts - LLM node → LLM providers: calls provider
backend/src/engine/nodes/llmCall.ts - HTTP node → HTTP endpoint: makes request
- Execution worker → Redis: uses connection
backend/src/queue/worker.ts - Execution queue → Redis: uses connection
backend/src/queue/queue.ts