Workspace
Clay is a pnpm Turborepo. The workspace contract lives inpnpm-workspace.yaml and turbo.json at the repository root.
Layout
apps/specs is the Mintlify app. The repository-level docs/ folder is not a workspace package;
it owns ADRs and vendor snapshots only.Turbo tasks
turbo.json defines eight tasks and pins a per-package override for every backend, client, and
deploy task that needs caching inputs. The defaults at the root level wire the workspace together;
the per-package overrides (see the trimmed excerpts below) declare the exact inputs that should
invalidate each cache entry.
Per-package scripts
@clay/backend
dev, generate, build, deploy, lint, typecheck, format, clean, types:wrangler@clay/landing
dev, build, cf:deploy, deploy, lint, typecheck, format, format:check, clean@clay/specs
dev, build, cf:deploy, deploy, validate, lint, broken-links, a11y, format,
format:check, clean@clay/mobile
start, dev, ios, typecheck, format@clay/client
generate, check, build, typecheck, format, format:check, cleanRelated
Architecture
The backend, landing, mobile, and specs surface boundaries.
Deploy
The Cloudflare deploy commands for each publishable surface.

