How rambuildsdev/synchive works
SyncHive is a self-hosted visual workflow automation platform. Users build and activate workflows in the web editor; the gateway stores workflow definitions and queues manual or webhook-triggered executions; workers evaluate the DAG and run integrations; execution events return to the gateway for live monitoring. Scheduled triggers and the editor, execution history, and integrations pages are additional documented capabilities. The README and source index establish the service boundaries, but unsampled files limit detail on some UI, scheduler, and persistence relationships.
Main entry points: app.ts API gateway · src/connection.ts PostgreSQL data · src/connection.ts BullMQ and Redis · App.tsx Web app
Components 20
Web application
- Web app
apps/web/src/App.tsx - Visual editor
apps/web/src/pages/EditorPage.tsx - Execution monitoring
apps/web/src/pages/ExecutionsPage.tsx
API gateway
- API gateway
apps/api-gateway/src/app.ts - Authentication
apps/api-gateway/src/services/auth.service.ts - Workflow management
apps/api-gateway/src/routes/workflow.routes.ts - Webhook receiver
apps/api-gateway/src/routes/webhook.routes.ts - Execution API and SSE
apps/api-gateway/src/routes/execution.routes.ts - Schedule management
apps/api-gateway/src/routes/scheduler.routes.ts
Workflow execution
- Queue worker
apps/workflow-engine/src/workers/index.ts - Workflow orchestrator
apps/workflow-engine/src/executor/workflow-executor.ts - DAG execution plan
apps/workflow-engine/src/executor/dag.ts - Node execution
apps/workflow-engine/src/executor/node-executor.ts - External actions
apps/workflow-engine/src/executor/integrations/openai.ts
Scheduling
- Cron manager
apps/Scheduler/src/scheduler.ts
Shared infrastructure
- PostgreSQL data
packages/db/src/connection.ts - BullMQ and Redis
packages/queue/src/connection.ts - Execution event pub/sub
packages/queue/src/pubsub.ts - Workflow and execution schema
packages/db/src/schema/workflows.ts
Other components
- Workflow user
Connections 27
- Workflow user → Web app: uses
README.md - Web app → Visual editor: opens editor
apps/web/src/App.tsx - Web app → Execution monitoring: opens history
apps/web/src/App.tsx - Web app → API gateway: REST and SSE
README.md - API gateway → Authentication: routes authentication
- API gateway → Workflow management: routes workflows
apps/api-gateway/src/app.ts - API gateway → Webhook receiver: routes webhooks
apps/api-gateway/src/app.ts - API gateway → Execution API and SSE: routes executions
apps/api-gateway/src/app.ts - API gateway → Schedule management: routes schedules
apps/api-gateway/src/app.ts - Workflow management → PostgreSQL data: reads and writes
apps/api-gateway/src/routes/workflow.routes.ts - Workflow management → BullMQ and Redis: enqueues runs
apps/api-gateway/src/routes/workflow.routes.ts - Webhook receiver → PostgreSQL data: loads workflow
apps/api-gateway/src/routes/webhook.routes.ts - Webhook receiver → BullMQ and Redis: enqueues run
apps/api-gateway/src/routes/webhook.routes.ts - Execution API and SSE → PostgreSQL data: reads executions
apps/api-gateway/src/routes/execution.routes.ts - Execution API and SSE → BullMQ and Redis: enqueues retry
apps/api-gateway/src/routes/execution.routes.ts - Execution API and SSE → Execution event pub/sub: subscribes to events
apps/api-gateway/src/routes/execution.routes.ts - Schedule management → PostgreSQL data: manages schedules
apps/api-gateway/src/routes/scheduler.routes.ts - Cron manager → PostgreSQL data: loads schedules
apps/Scheduler/src/scheduler.ts - Cron manager → BullMQ and Redis: queues scheduled runs
apps/Scheduler/src/scheduler.ts - BullMQ and Redis → Queue worker: delivers jobs
README.md - Queue worker → Workflow orchestrator: runs workflow
apps/workflow-engine/src/workers/index.ts - Workflow orchestrator → DAG execution plan: builds execution plan
apps/workflow-engine/src/executor/workflow-executor.ts - Workflow orchestrator → Node execution: executes nodes
apps/workflow-engine/src/executor/workflow-executor.ts - Node execution → External actions: calls actions
apps/workflow-engine/src/executor/node-executor.ts - Workflow orchestrator → Execution event pub/sub: publishes events
apps/workflow-engine/src/executor/workflow-executor.ts - Execution event pub/sub → BullMQ and Redis: uses Redis
packages/queue/src/pubsub.ts - PostgreSQL data → Workflow and execution schema: loads schema
packages/db/src/connection.ts