@repo/backend runs your database, serverless functions, scheduled jobs, and webhook handlers on Convex.
Schema
Define tables in a single file:packages/backend/convex/schema.ts
Usage
Convex uses file-based routing. A function inconvex/chat/streaming.ts becomes api.chat.streaming:
apps/app/components/chat.tsx
Webhooks
Inbound webhooks from Clerk, Stripe, and Resend route throughconvex/http.ts:
packages/backend/convex/http.ts
Commands
| Command | Purpose |
|---|---|
bunx convex dev | Start local dev server |
bunx convex deploy | Deploy to production |