---
title: "Tech Stack and Repository Structure"
description: "The tech stack of Nuxt Starter Kit: one Nuxt 4 app built from layers in a small pnpm workspace without a build orchestrator, plus the key scripts."
canonical_url: "https://nuxtstarterkit.com/docs/architecture"
---

> Index of every page on this site: [llms.txt](https://nuxtstarterkit.com/llms.txt)

The starter kit is one Nuxt app built from **Nuxt 4 layers**, in a small pnpm workspace.

## Core Technologies

- **Nuxt 4+** - The Vue.js framework for building web applications
- **Nuxt UI** - UI component library with beautiful pre-built components
- **Better-auth** - Modern authentication library with support for email/password, social login and passkeys
- **Drizzle ORM** - TypeScript-first ORM with excellent developer experience
- **PostgreSQL** - Reliable, powerful relational database
- **Polar** - Payments with Merchant of Record
- **Tailwind CSS** - Utility-first CSS framework
- **Zod** - Schemas for forms and the runtime config
- **Vitest** and **Playwright** - Unit, API and e2e tests
- **pnpm** - Fast, disk space efficient package manager

## Repository Structure

```text
apps/web/              Nuxt app: composition, app pages, routeRules
apps/web/layers/*      Nuxt layers, registered automatically
apps/web/test/         Shared test setup (fixtures, mock services) and tests of the app pages
packages/site-config/  Site name, domain, logos, social links
deployment/            Docker and Coolify notes
```

There is no build orchestrator. Nuxt registers every folder in `apps/web/layers/` as a layer, so there is no `extends` in `nuxt.config.ts` and the layers have no `package.json` of their own. All app dependencies are in `apps/web/package.json`. Their versions live in the **catalog** of `pnpm-workspace.yaml`, and packages reference them as `"catalog:"`.

## Scripts

Key commands (run from the repository root):

```bash
pnpm dev            # Dev server on http://localhost:9009
pnpm build          # Production build of apps/web
pnpm preview        # Preview the production build
pnpm lint           # ESLint
pnpm lint:fix       # Auto-fix linting issues
pnpm typecheck      # nuxt typecheck, covers all layers
pnpm test           # Unit, API and e2e tests
pnpm test:unit      # Vitest, no server or database needed
pnpm db:generate    # Generate DB migrations
pnpm db:migrate     # Apply DB migrations
pnpm db:studio      # Open Drizzle Studio
```

## Runtime Config

Environment variables are declared as Zod schemas in the `runtimeConfig` of the layer that owns them. The server refuses to start when a required value is missing (error `NUXT_E8014`). See [Setup](https://nuxtstarterkit.com/docs/getting-started/setup#setup-environment-variables).

## Rendering

Marketing and content pages are prerendered. `/dashboard/**` is client-only (`ssr: false`). Each layer sets the `routeRules` for its own routes.

## Layers

<table>
<thead>
  <tr>
    <th>
      Layer
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Owns
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        core
      </code>
    </td>
    
    <td>
      yes
    </td>
    
    <td>
      Shared modules (Nuxt UI, Content, i18n, SEO, image, fonts, security, Umami), loggers, toasts, extension points
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emails
      </code>
    </td>
    
    <td>
      yes
    </td>
    
    <td>
      Email providers, <code>
        useEmail()
      </code>
      
      , shared email components
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      yes
    </td>
    
    <td>
      better-auth, Polar plugin, auth middleware, <code>
        useDb()
      </code>
      
      , auth tables, all migrations
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        payment
      </code>
    </td>
    
    <td>
      yes
    </td>
    
    <td>
      Polar products and pricing
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        dashboard
      </code>
    </td>
    
    <td>
      yes
    </td>
    
    <td>
      Dashboard layout, settings, billing, user admin
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        blog
      </code>
      
      , <code>
        docs
      </code>
      
      , <code>
        waitlist
      </code>
      
      , <code>
        testimonials
      </code>
      
      , <code>
        banner
      </code>
      
      , <code>
        storage
      </code>
    </td>
    
    <td>
      no
    </td>
    
    <td>
      One feature each
    </td>
  </tr>
</tbody>
</table>

Read [Layers](https://nuxtstarterkit.com/docs/architecture/layers) to learn how optional features plug in and how to remove them.

## Sitemap

See the full [sitemap](https://nuxtstarterkit.com/sitemap.md) for all pages.
