StarterApp Docs
Codebase

Codebase Overview

Monorepo architecture with dual Next.js apps, shared packages, and Convex backend.

The StarterApp codebase uses a monorepo architecture managed by Turborepo and pnpm workspaces. Applications, packages, and backend functions reside in a single repository with consistent tooling and type safety across boundaries.

AI-First Structure

The monorepo organization enables AI agents to access all code context simultaneously. File boundaries, import patterns, and template references remain visible within single repository context.

Repository Structure

The repository organizes code into distinct categories:

schema.ts
tables.ts
auth.ts
http.ts
autumn.ts
support.ts

Core Applications

Shared Packages

Workspace packages provide reusable functionality:

Convex Backend

Backend functions and schema definitions:

Import Patterns

Three import styles organize dependencies:

Development Workflow

Standard commands for monorepo development:

Development Commands
# Start all applications
pnpm dev

# Start specific app
pnpm --filter marketing dev
pnpm --filter dashboard dev

# Build all packages and apps
pnpm build

# Run validation pipeline
pnpm validate

Turborepo orchestrates builds with caching. Changes to shared packages trigger dependent application rebuilds automatically.

Next Steps