Initial Chadbox Cloud monorepo with:
apps/gateway: Fastify API gateway (POST /v1/executions)apps/worker: Async Redis-stream worker for persistence/log storage pointersapps/dashboard: Next.js App Router developer/admin scaffoldingpackages/shared: request schema + SQL bootstrap
- Copy envs:
cp .env.example .env
- Start infra:
docker compose up -d
- Initialize DB schema:
- run
packages/shared/sql/init.sqlagainst Neon/Postgres.
- run
- Install dependencies:
npm installcd apps/dashboard && npm install
- Run apps:
- Gateway:
npm run dev -w apps/gateway - Worker:
npm run dev -w apps/worker - Dashboard:
npm run dev -w apps/dashboard
- Gateway:
- Endpoint:
POST /v1/executions - Auth:
Authorizationheader with ****** (DB stores scrypt hash) - Idempotency:
Idempotency-Keycaches full response in Redis for 60s - Hot path is optimized: auth/limits/forwarding synchronous, persistence/logging async via Redis stream.
- Execution plane is external and out of scope.
- Worker stores large stdout/stderr in S3-compatible object storage and persists pointers in Postgres.
- Logs are intended for 14-day retention via bucket lifecycle policy.