| Next.js runtime | Serves every REST endpoint under /api and static assets. | Runs in production mode; build output is bundled inside the published npm package. |
| Prisma ORM | Owns migrations and generates the database client. | Uses the Neon adapter by default, but can fall back to a standard Postgres client for Supabase and other providers. Migrations run through prisma migrate. |
| PostgreSQL | Stores every organization, assistant, thread, file, and task. | Neon (Vercel Postgres) and Supabase are tested. Any serverless Postgres that Prisma supports will work when you select the right adapter. |
| Upstash QStash | Delivers scheduled task callbacks. | Optional, but required if you rely on cron-like tasks. |
| Upstash Workflow (optional) | Powers long-running task orchestration. | Shares the same QSTASH_TOKEN. |