Main Folders
/appfor routes, pages, and API endpoints/componentsfor UI/libfor shared business logic/supabasefor schema and migrations/blogfor MDX blog posts/docsfor internal and public docs
Important Route Areas
/app/(apps)for the main product apps/app/authfor sign-in and auth callbacks/app/homefor the signed-in dashboard/app/landingfor the public marketing page/app/apifor shared API routes like auth, avatar, and OG generation
Important Shared Domains
lib/aifor shared model configuration and AI helperslib/authfor server-side auth helperslib/dbfor database queries and mutationslib/paymentsfor provider-agnostic billinglib/emailfor contact synclib/analyticsfor event trackinglib/storagefor object storagelib/ragfor document chunking, embeddings, retrieval, and citations
Docs Layout
docs/architecturefor internal implementation notesdocs/publicfor the Mintlify docs site
Marketing And Product Split
This repo contains both the public-facing marketing surface and the signed-in product.- the marketing page lives under
/app/landingandcomponents/landing - the product apps live under
/app/(apps) - shared infrastructure lives in
/lib
Current Product Surface
- Chat
- Structured Output
- Image Studio
- Video Studio
- Voice Studio
- Audio
- Vision
- Dashboard and account center
- Credits and billing
Good Folders To Learn First
If you are new to this codebase, start with:/app/(apps)/chatto understand the flagship AI app/lib/aito understand model/provider setup/lib/ragto understand document chat/components/landingto understand the marketing site/lib/paymentsto understand billing

