How ibharatsaini/automiq-workflow works
Automiq is a project-scoped workflow automation platform. Users authenticate and work in a project workspace, create visual workflows, activate webhook or schedule triggers, and inspect recorded executions. The backend separates HTTP routing, workflow lifecycle and execution orchestration, node implementations, and persistence. The README documents regular inline and optional queued execution, plus team invitations and role-aware access. Some frontend and backend subsystems are represented from README capabilities and the source index; their implementation details were not sampled, so uncertain links are omitted.
Main entry points: WorkflowExecutionService.ts Execution orchestration · WorkflowsRouter.ts Workflow routes · ActiveWorkflowManager.ts Trigger registration · App.tsx React application
Components 25
Workspace client
- React application
client/src/App.tsx - Sign-in pages
client/src/features/auth/LoginPage.tsx - Workflow editor
client/src/features/workflows/WorkflowDetailPage.tsx - Execution views
client/src/features/executions/ExecutionsPage.tsx - Authentication API
client/src/api/auth.api.ts - Workflow API
client/src/api/workflows.api.ts - Execution API
client/src/api/executions.api.ts
Identity and projects
- Auth routes
src/routes/AuthRouter.ts - Authentication service
src/services/AuthService.ts - JWT and role checks
src/middleware/AuthMiddleware.ts - Project routes
src/routes/ProjectsRouter.ts - Project and membership
src/services/ProjectService.ts - Invitation email
src/services/EmailService.ts
Workflow lifecycle
- Workflow routes
src/routes/WorkflowsRouter.ts - Webhook routes
src/routes/WebhookRouter.ts - Trigger registration
src/services/ActiveWorkflowManager.ts
Execution runtime
- Webhook trigger
src/node-types/WebhookNode.ts - Node type registry
src/node-types/NodeTypes.ts - Workflow execution engine
src/services/WorkfowExecute.ts - Execution orchestration
src/services/WorkflowExecutionService.ts - Queue scaling
src/scaling/ScalingService.ts
Persistence
- Workflow repository
src/repositories/WorkflowRepository.ts - Execution repository
src/repositories/ExecutionRepository.ts - PostgreSQL
Other components
- Workspace user
Connections 30
- Workspace user → React application: uses
- React application → Sign-in pages: shows
- React application → Workflow editor: shows
- React application → Execution views: shows
- Sign-in pages → Authentication API: submits credentials
- Authentication API → Auth routes: HTTP requests
- Workflow editor → Workflow API: edits workflows
- Workflow API → Workflow routes: HTTP requests
- Execution views → Execution API: loads executions
- Execution API → Workflow routes: HTTP requests
- Auth routes → Authentication service: calls
src/routes/AuthRouter.ts - Auth routes → Project and membership: calls
src/routes/AuthRouter.ts - JWT and role checks → Authentication service: verifies token
src/middleware/AuthMiddleware.ts - Project routes → Project and membership: calls
src/routes/ProjectsRouter.ts - Project and membership → Invitation email: sends invitations
src/services/ProjectService.ts - Workflow routes → Workflow repository: reads and writes
src/routes/WorkflowsRouter.ts - Workflow routes → Trigger registration: activates workflows
src/routes/WorkflowsRouter.ts - Workflow routes → Execution orchestration: starts runs
src/routes/WorkflowsRouter.ts - Webhook routes → Trigger registration: finds trigger
src/routes/WebhookRouter.ts - Webhook routes → Webhook trigger: builds trigger data
src/routes/WebhookRouter.ts - Webhook routes → Execution orchestration: starts runs
src/routes/WebhookRouter.ts - Trigger registration → Workflow repository: loads workflow
src/services/ActiveWorkflowManager.ts - Trigger registration → Node type registry: resolves trigger
src/services/ActiveWorkflowManager.ts - Trigger registration → Execution orchestration: runs scheduled workflow
src/services/ActiveWorkflowManager.ts - Node type registry → Webhook trigger: registers type
src/node-types/NodeTypes.ts - Execution orchestration → Execution repository: records execution
src/services/WorkflowExecutionService.ts - Execution orchestration → Workflow execution engine: runs inline
src/services/WorkflowExecutionService.ts - Execution orchestration → Queue scaling: enqueues optional run
src/services/WorkflowExecutionService.ts - Execution repository → PostgreSQL: reads and writes
- Workflow repository → PostgreSQL: reads and writes