Top-Level Folders
app/ -- Routes, pages, and API endpoints
app/ -- Routes, pages, and API endpoints
This is your Next.js App Router directory. Everything that has a URL lives here.
app/(apps)/— The main product apps (chat, image studio, voice, etc.)app/auth/— Auth UI pages (sign-in, reset password, auth errors)app/page.tsx— The signed-in home/dashboard route (/)app/landing/— The public marketing pageapp/api/— Shared API routes (Better Auth, avatars, payments, OG images)app/blog/— Blog pages
components/ -- All your UI
components/ -- All your UI
Reusable components organized by what they belong to.
components/ui/— Base UI primitives (buttons, inputs, dialogs)components/landing/— Marketing page componentscomponents/(apps)/— App-specific UI componentscomponents/(ui-components)/— Shared product UI (auth, payments, blog, alerts, account center)
lib/ -- Shared business logic
lib/ -- Shared business logic
drizzle/ -- Database migrations
drizzle/ -- Database migrations
Generated and custom SQL migration files. This is the migration history for your database — don’t edit generated files by hand.
blog/ -- Blog content
blog/ -- Blog content
MDX blog posts that power the content collections blog pipeline.
docs/ -- Documentation
docs/ -- Documentation
docs/public/— The Mintlify docs site (what you’re reading now!)docs/architecture/— Internal implementation notes for maintainers
The Marketing + Product Split
Your repo contains both the public-facing marketing site and the signed-in product in one place. Here’s how they stay separate:Marketing
app/landing/ and components/landing/Product Apps
app/(apps)/ and components/(apps)/Shared Infra
lib/ for everything both sides needProduct Apps Included
Your app ships with these product surfaces:- Chat — AI chat with optional PDF/document context
- Marketing Plan — AI-powered marketing plan generator
- Launch Simulator — Simulate a product launch
- Image Studio — AI image generation
- Video Studio — AI video generation
- Voice Studio — AI voice synthesis
- Audio — Audio transcription and processing
- Vision — Image analysis and understanding
- Dashboard — Account center, credits, and billing

