How manik-jasrai/flomate works
Flomate lets users define trigger-and-action flows in a React UI, manage them through the API, and execute incoming events asynchronously. The documented runtime separates webhook ingestion, Redis queueing, worker action execution, and database-backed flow management; the processor is described as coordinating reliable outbox delivery. The graph includes the major documented capabilities, but queue wiring, retry/logging internals, and some service registration are not visible in the sampled source, so those relationships rely on README evidence.
Main entry points: src/index.ts REST API · db/index.ts Database client · App.tsx Web application · handleTask.ts Task manager
Components 22
Flow interface
- Web application
apps/web/src/App.tsx - Flow editor
apps/web/src/pages/NewFlow.tsx - Dashboard and flow views
apps/web/src/pages/Dashboard.tsx - Sign-in and signup
apps/web/src/pages/LogInPage.tsx - Authenticated API client
apps/web/src/hooks/useAxiosPrivate.ts
Flow management
- REST API
apps/api/src/index.ts - Authentication routes
apps/api/src/routes/auth.ts - Flow routes
apps/api/src/routes/flow.ts - Trigger routes
apps/api/src/routes/trigger.ts - Action routes
apps/api/src/routes/action.ts
Event execution
- Webhook handler
apps/hooks/src/index.ts - Redis task queue
- Worker service
apps/worker/src/index.ts - Task manager
apps/worker/src/TaskManager/handleTask.ts - Metadata parser
apps/worker/src/TaskManager/parser.ts - Email action
apps/worker/src/Actions/email.ts - Notion action
apps/worker/src/Actions/notion.ts - Outbox processor
apps/processor/src/index.ts
Shared data
- Database client
packages/db/index.ts - PostgreSQL
Other components
- Flow author
- Webhook source
Connections 25
- Flow author → Web application: uses
README.md - Web application → Flow editor: routes to
apps/web/src/App.tsx - Web application → Dashboard and flow views: routes to
apps/web/src/App.tsx - Web application → Sign-in and signup: routes to
apps/web/src/App.tsx - Flow editor → Authenticated API client: requests through
apps/web/src/pages/NewFlow.tsx - Dashboard and flow views → Authenticated API client: requests through
apps/web/src/pages/Dashboard.tsx - Sign-in and signup → REST API: manages flows
README.md - Authenticated API client → REST API: calls
README.md - REST API → Authentication routes: routes requests
- REST API → Flow routes: routes requests
- REST API → Trigger routes: routes requests
- REST API → Action routes: routes requests
- Flow routes → Database client: reads and writes
apps/api/src/routes/flow.ts - Trigger routes → Database client: reads and writes
apps/api/src/routes/trigger.ts - Authentication routes → Database client: reads and writes
apps/api/src/routes/auth.ts - Database client → PostgreSQL: accesses
README.md - Webhook source → Webhook handler: sends events
README.md - Webhook handler → Redis task queue: enqueues tasks
README.md - Redis task queue → Worker service: dispatches jobs
README.md - Worker service → Task manager: executes tasks
- Task manager → Metadata parser: parses metadata
apps/worker/src/TaskManager/handleTask.ts - Task manager → Email action: invokes
apps/worker/src/TaskManager/handleTask.ts - Task manager → Notion action: invokes
apps/worker/src/TaskManager/handleTask.ts - Outbox processor → Database client: reads outbox
README.md - Outbox processor → Redis task queue: publishes tasks
README.md