Skip to main content

Main Folders

  • /app for routes, pages, and API endpoints
  • /components for UI
  • /lib for shared business logic
  • /supabase for schema and migrations
  • /blog for MDX blog posts
  • /docs for internal and public docs

Important Route Areas

  • /app/(apps) for the main product apps
  • /app/auth for sign-in and auth callbacks
  • /app/home for the signed-in dashboard
  • /app/landing for the public marketing page
  • /app/api for shared API routes like auth, avatar, and OG generation

Important Shared Domains

  • lib/ai for shared model configuration and AI helpers
  • lib/auth for server-side auth helpers
  • lib/db for database queries and mutations
  • lib/payments for provider-agnostic billing
  • lib/email for contact sync
  • lib/analytics for event tracking
  • lib/storage for object storage
  • lib/rag for document chunking, embeddings, retrieval, and citations

Docs Layout

  • docs/architecture for internal implementation notes
  • docs/public for 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/landing and components/landing
  • the product apps live under /app/(apps)
  • shared infrastructure lives in /lib
That split is useful because it keeps “sell the product” and “use the product” in the same repo without mixing their code together.

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)/chat to understand the flagship AI app
  • /lib/ai to understand model/provider setup
  • /lib/rag to understand document chat
  • /components/landing to understand the marketing site
  • /lib/payments to understand billing