Skip to main content
AnotherWrapper Premium is a single Next.js app, not a monorepo. This page helps you build a mental model of the codebase so you can find the right file quickly and avoid editing the wrong layer.

The Four Main Surfaces

Your app is organized around four key areas:

Marketing Page

app/landing/ — The public-facing landing page that sells your product.

Product Apps

app/(apps)/ — The AI-powered apps your users interact with after signing in.

Dashboard

app/page.tsx — The canonical home/dashboard route with account info, credits, and navigation.

API Routes

app/api/ — Shared backend routes for auth, avatars, OG images, and payment webhooks.

Shared Layers

Everything that’s reused across your app lives in these shared directories:
All your React components. Base primitives live in components/ui/, marketing components in components/landing/, and app-specific UI in components/(apps)/.
Model configuration, provider setup, and shared AI helpers. This is where you configure which models are available and how they behave.
Server-side auth helpers. The canonical entry point is lib/auth/server.ts.
Domain-first database modules. The Drizzle client, schema definitions, shared types, and feature-scoped queries all live here.
Server actions that sit above the database layer for form handling and orchestration.
Provider-agnostic billing logic for Polar, Stripe, and LemonSqueezy.
Product analytics, contact sync, object storage, and document chunking/embeddings/retrieval.
Small cross-domain helpers, thin vendor SDK wrappers, static registries, and Sentry/monitoring.

Where to Edit Common Things

  • app/landing/page.tsx — The main landing page
  • components/landing/* — Landing page components
  • config.ts — Site-wide metadata and config

The Golden Rule

When you want to change something, ask yourself three questions:
  1. Is this marketing-only? Edit app/landing/ or components/landing/
  2. Is this one app only? Edit app/(apps)/your-app/
  3. Is this shared across apps? Edit lib/
That question almost always tells you exactly where to go.