src/app | Next.js pages, layouts, route handlers, and the browser app shell. |
src/app/api/v1 | Thin BFF wrappers for the public web API surface. |
src/server/app-api/v1 | Route orchestration behind the BFF wrappers. |
src/server | Server-only auth, billing, storage, AI, tools, config, and provider adapters. |
src/shared | Browser-safe contracts, schemas, helpers, and route boundary definitions. |
src/features | Web feature containers and feature-local UI/helpers. |
src/components | Shared UI primitives, layout, and providers. |
convex | Durable state, domain mutations, scheduled work, and Stripe webhook handling. |
packages | Shared contracts, API clients, UI packages, and cross-surface runtime packages. |