AgentFlow is a fullstack monorepo for building, running, and observing agentic workflows in production.
- Compose and run agent workflows
- Execute flows via API/runtime services
- Monitor usage, execution logs, and operational metrics
- Connect business systems (OAuth/integrations)
flowchart LR
Operator["Operator"]
Studio["React workflow studio"]
Dashboard["React operations dashboard"]
API["NestJS API and orchestrator"]
Queue["BullMQ / Redis"]
Worker["Python async worker"]
Data["PostgreSQL"]
Systems["LLMs and business systems"]
Telemetry["OpenTelemetry"]
Observability["Prometheus / Grafana"]
Operator --> Studio
Operator --> Dashboard
Studio --> API
Dashboard --> API
API --> Queue
Queue --> Worker
API --> Data
Worker --> Data
Worker --> Systems
API --> Telemetry
Worker --> Telemetry
Telemetry --> Observability
The API owns workflow definitions, execution state and integrations. Long-running work is delegated to asynchronous workers, while telemetry provides an operational view across services.
api/: NestJS API (REST/WebSocket, integrations, orchestration)web/studio/: flow editor and operator UIweb/dashboard/: metrics and analytics dashboardworker/: Python async/background task workerinfra/: local/dev infrastructure definitions
- TypeScript, Node.js, pnpm workspaces
- NestJS, BullMQ, PostgreSQL/SQLite
- React + Vite (studio/dashboard)
- OpenTelemetry + Prometheus/Grafana
- Jest/Vitest/Playwright/Cypress testing
- Queue-backed execution separates API latency from long-running agent work
- Workflow payloads use a documented JSON schema
- Observability spans API, workers and infrastructure
- CI builds the services and runs unit and API end-to-end tests
- Infrastructure definitions support local development and deployment
Further reading:
docs/rfc/agent_dsl_rfc.md— workflow DSLdocs/flow-payload.schema.json— payload contractapi/src/docs/architecture/worker.md— worker architecturedocs/ui/design-system.md— interface system
- Secrets are injected through environment variables.
- Terraform state, local kube configs, and private keys must never be versioned.
- All historical state artifacts were removed from this publicized history.
pnpm install
pnpm --filter api run start:dev
pnpm --filter web/studio run dev
pnpm --filter web/dashboard run dev
python3 worker/agentflow_worker.pypnpm --filter api run test
pnpm --filter web/studio run test
pnpm --filter web/dashboard run testPublic technical showcase repository focused on architecture, reliability, and production-ready agent workflow patterns.