---
title: "Capabilities"
description: "The twelve capabilities nuxt-backend composes its services into, each named for what it gives your app: what each gives, what powers it, how its state is detected, where you see it, and where each is documented."
canonical_url: "https://nuxt-backend.dev/docs/start/concepts/capabilities"
---
# Capabilities

> The twelve capabilities nuxt-backend composes its services into, each named for what it gives your app: what each gives, what powers it, how its state is detected, where you see it, and where each is documented.

Version: nuxt-backend 0.6.x · Tab: Start · Kind: concept · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [Source](https://github.com/qruto/nuxt-backend/blob/main/src/capabilities/registry.ts)

The package composes its services into twelve **capabilities**, each named for what it gives your app rather than the service underneath. You never turn a capability on: it starts working when its env or catalog exists, and `npx nuxt-backend status` shows where each one stands.

A capability owns everything that belongs to that part of the app:

- its setup API and its env names, which say what they do (`BILLING_*`, never a provider's name);
- the service it runs on, and that service's test mode in development;
- the `doctor` findings that check it, and the DevTools tab that shows it;
- its Services page, its Build pages and its playground pages.

One registry holds them, so every place that talks about a part of the app uses the same name for it. [Capabilities](https://nuxt-backend.dev/docs/reference/capabilities) in the reference lists each one with everything it owns, and the [Feature map](https://nuxt-backend.dev/docs/start/feature-map) lists the features of each.

## The twelve capabilities

Each row says what a capability gives your app, what powers it and how it runs in development:

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      What it gives your app
    </th>
    
    <th>
      Powered by
    </th>
    
    <th>
      In development
    </th>
    
    <th>
      Docs
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Sign-in by passkey and sign-in code, launch phases, invites and the waitlist, workspaces with invitations, consents, the admin console with impersonation, the activity trail, and an account's export and deletion
    </td>
    
    <td>
      Better Auth, running inside your deployment
    </td>
    
    <td>
      Codes print in the terminal, or reach Resend's test addresses
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/auth">
        Auth
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      The database with realtime queries, server rendering, full-text search, checked uploads, share links and retention
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/convex">
        Convex
      </a>
    </td>
    
    <td>
      A local or cloud dev deployment
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/data">
        Data
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        jobs
      </code>
    </td>
    
    <td>
      Scheduled jobs, durable workflows, queued work and the backend's own maintenance
    </td>
    
    <td>
      Convex and its official components
    </td>
    
    <td>
      The same deployment's scheduler
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/data/jobs">
        Background work
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Plans with monthly and yearly prices, prepaid credits, the pricing page, feature gates, the cancel flow, gifts, referrals and promotions, from a catalog in code
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/polar">
        Polar
      </a>
      
      , as the merchant of record
    </td>
    
    <td>
      Polar's sandbox
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/billing">
        Billing
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Transactional and lifecycle email from one template registry, themed, localized and tracked, with preferences and inbound mail
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/resend">
        Resend
      </a>
    </td>
    
    <td>
      Resend's test addresses, read back in the dev inbox
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/email">
        Email
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        notifications
      </code>
    </td>
    
    <td>
      An in-app inbox fed by backend events, and web push, each kind opted into
    </td>
    
    <td>
      The package's own component, and the browsers' push services
    </td>
    
    <td>
      The same code, on your dev deployment
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/email/notifications">
        Notifications
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Metered model calls and streams, generation jobs with credits held until they run, chat, and labels on generated content
    </td>
    
    <td>
      The AI SDK, through the <a href="https://nuxt-backend.dev/docs/services/ai-gateway">
        AI gateway
      </a>
    </td>
    
    <td>
      The same gateway, on a paid Convex plan, or a Vercel AI Gateway key
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/ai">
        AI
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Bot checks before a code is sent or an account created, on your own guarded calls, and moderation of uploads and prompts
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/bot-protection">
        Bot protection
      </a>
      
      : Vercel BotID on Vercel, a Cloudflare Turnstile challenge elsewhere
    </td>
    
    <td>
      The dev server's bot check answers human
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/auth/sign-in/bots">
        Stop bots
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      Error reports from the browser, the Nuxt server and the backend, logs, cron check-ins and a health endpoint
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/sentry">
        Sentry
      </a>
    </td>
    
    <td>
      A local error log, listed in DevTools
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/ship/operate/monitoring">
        Monitoring
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flags
      </code>
    </td>
    
    <td>
      Feature flags read inside your functions, experiments, targeting, kill switches and a maintenance notice
    </td>
    
    <td>
      The package's own code, on Convex
    </td>
    
    <td>
      The same code everywhere
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/ship/operate/flags">
        Flags
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        analytics
      </code>
    </td>
    
    <td>
      Revenue metrics, growth funnels and experiment results with attribution, in the admin console
    </td>
    
    <td>
      Polar's metrics, and first-party counts in your deployment
    </td>
    
    <td>
      Polar's sandbox metrics
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/build/growth/measure">
        Measure growth
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        hosting
      </code>
    </td>
    
    <td>
      The deploy, the app's env and its domains: one-command production and a deploy template
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/vercel">
        Vercel
      </a>
      
       first; any host that runs Nuxt keeps working
    </td>
    
    <td>
      The Nuxt dev server
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/ship/deploy">
        Deploy
      </a>
    </td>
  </tr>
</tbody>
</table>

The [Service map](https://nuxt-backend.dev/docs/services) turns this table around: each service, the capabilities it powers, whether you need it, and the order to connect them in.

## A capability's state is detected

There is no option that turns a capability on or off, and no key for one in `nuxt.config`: every capability is always there. What changes is what it runs on. The package reads that from the env, `BACKEND_ENVIRONMENT` and `doctor`'s checks, and a capability is in one of four states:

<table>
<thead>
  <tr>
    <th>
      State
    </th>
    
    <th>
      Light
    </th>
    
    <th>
      Means
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        live
      </code>
    </td>
    
    <td>
      green
    </td>
    
    <td>
      The real service is configured, and the capability acts for real.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        test
      </code>
    </td>
    
    <td>
      amber
    </td>
    
    <td>
      The capability runs in its service's test mode: a dev deployment, the email provider's test mode or the billing sandbox.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        missing
      </code>
    </td>
    
    <td>
      grey
    </td>
    
    <td>
      What it needs is not configured, so it degrades the way its env names describe.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        failing
      </code>
    </td>
    
    <td>
      red
    </td>
    
    <td>
      A check of the capability failed, whatever else holds.
    </td>
  </tr>
</tbody>
</table>

Development runs on the providers' own test modes wherever a provider has one. Two capabilities have none and stand in locally: the dev server's bot check answers human, as BotID does in development, so a development sign-in never tests bot protection, and without a DSN errors go to the dev server's local error log. What decides the state, capability by capability:

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Live
    </th>
    
    <th>
      Test
    </th>
    
    <th>
      Missing
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Email is live, so codes reach real inboxes
    </td>
    
    <td>
      Codes reach Resend's test addresses, or print in the dev console
    </td>
    
    <td>
      <code>
        AUTH_SECRET
      </code>
      
       or <code>
        SITE_URL
      </code>
      
       is not set
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data
      </code>
      
      , <code>
        jobs
      </code>
    </td>
    
    <td>
      A production or self-hosted deployment
    </td>
    
    <td>
      A dev, local or preview deployment
    </td>
    
    <td>
      No deployment
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        BILLING_ACCESS_TOKEN
      </code>
      
       on a <code>
        production
      </code>
      
       environment
    </td>
    
    <td>
      A token on any other environment, which bills in Polar's sandbox
    </td>
    
    <td>
      No <code>
        BILLING_ACCESS_TOKEN
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        EMAIL_API_KEY
      </code>
      
       on a <code>
        production
      </code>
      
       environment
    </td>
    
    <td>
      A key on any other environment, in test mode
    </td>
    
    <td>
      No <code>
        EMAIL_API_KEY
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        notifications
      </code>
    </td>
    
    <td>
      <code>
        production
      </code>
      
      , with <code>
        PUSH_PUBLIC_KEY
      </code>
      
       and <code>
        PUSH_PRIVATE_KEY
      </code>
      
       set
    </td>
    
    <td>
      Any other environment
    </td>
    
    <td>
      No push keys: the in-app inbox works, web push does not
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      <code>
        production
      </code>
      
      , with a route to the models (the Convex AI Gateway or <code>
        AI_GATEWAY_API_KEY
      </code>
      
      ) and live billing
    </td>
    
    <td>
      The same route, outside production
    </td>
    
    <td>
      No route to a model, or billing is missing
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      The deployment takes proofs (<code>
        PROTECTION_PROOF_SECRET
      </code>
      
      , BotID on Vercel) or challenge answers (<code>
        PROTECTION_CHALLENGE_SECRET_KEY
      </code>
      
      )
    </td>
    
    <td>
      Outside production, where the dev server's bot check answers human, or a challenge on its test keys
    </td>
    
    <td>
      Neither secret on production
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      <code>
        MONITORING_DSN
      </code>
      
      , or the <code>
        NEXT_PUBLIC_SENTRY_DSN
      </code>
      
       Sentry's Vercel integration sets
    </td>
    
    <td>
      No DSN outside production: the local error log stands in
    </td>
    
    <td>
      No DSN on production
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flags
      </code>
    </td>
    
    <td>
      Always: the package's own code, with nothing to configure
    </td>
    
    <td>
      Never
    </td>
    
    <td>
      Never
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        analytics
      </code>
    </td>
    
    <td>
      Billing is live
    </td>
    
    <td>
      Billing runs in Polar's sandbox
    </td>
    
    <td>
      Billing is missing
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        hosting
      </code>
    </td>
    
    <td>
      A production deployment whose app has its env
    </td>
    
    <td>
      A preview or <code>
        sandbox
      </code>
      
       deployment
    </td>
    
    <td>
      No production deployment yet
    </td>
  </tr>
</tbody>
</table>

A capability fails as soon as one of its findings fails, whatever the env says. A webhook route that is not mounted fails `billing` or `email`. A function the composables call that the deployment lacks fails `data`.

The backend reads its env on the deployment, so the deployment decides. A key that is in `.env.local` but was never pushed leaves its capability missing, and the reason says to run `npx nuxt-backend env push`. Under `--prod`, only production's names count. Values are read only to tell a mode apart, and the one mode value is `BACKEND_ENVIRONMENT`. No value is ever printed or sent anywhere.

## Where you see a capability's state

- **npx nuxt-backend status** prints a console of the capabilities: a light for each, what it runs on, the env it lacks and its most pressing finding. `--prod` checks production's, and `--json` gives the same as one document ([CLI](https://nuxt-backend.dev/docs/reference/cli#status)).
- **npx nuxt-backend doctor --only <capability>** runs one capability's checks, and every finding names its capability ([Diagnose your setup](https://nuxt-backend.dev/docs/develop/doctor)).
- **The DevTools Overview** lights one channel per capability, with links to its own tab and its docs ([DevTools](https://nuxt-backend.dev/docs/develop/devtools)).
- **The health endpoint**, `/api/backend/health`, answers each capability's state for an uptime check, and the detail for an administrator ([Monitor errors and uptime](https://nuxt-backend.dev/docs/ship/operate/monitoring#the-health-endpoint)).
- **.env.example** groups its names by purpose, with the platform's own names last ([Environment variables](https://nuxt-backend.dev/docs/reference/configuration/environment-variables)).
- **The docs** follow the same split. Each service has a [Services](https://nuxt-backend.dev/docs/services) page, each feature a [Build](https://nuxt-backend.dev/docs/build) page, and the Feature map has a section per capability.

## Why it works this way

- **One word per part of the app.** The CLI, DevTools, the health endpoint, `.env.example` and the docs all say `billing`, so a finding in one place leads to the page in another.
- **Named for what it gives, not who runs it.** Your code and your env say `BILLING_*`. Polar appears in prose, on its Services page and in the "Powered by" column.
- **Detected, never switched.** A switch can disagree with what is configured. The env and a check cannot ([Principles](https://nuxt-backend.dev/docs/start/concepts/principles#capabilities-are-detected-never-switched)).

## What it is not

- **Not a Nuxt layer.** You never `extends` a capability. They all ship inside the one module you add to `modules`.
- **Not a plugin you install.** Every capability is in the package from the first run. One without its key reads `missing` and does less.
- **Not a provider switch.** Each capability runs on one service's own features. [Replacing a provider](https://nuxt-backend.dev/docs/start/concepts/choosing#replacing-a-provider) says what a change would take.

## What this means for you

You never configure a capability: you configure the service under it. Put a provider's key in `.env.local`, run `npx nuxt-backend env push`, and the capability turns from missing to test, or to live on production. `npx nuxt-backend status` shows the change. In development, test is the healthy state. Before a release, run `npx nuxt-backend status --prod`: production should show every capability you use as live, and `doctor --prod` gives the fix for any that is not.

- [Service map](https://nuxt-backend.dev/docs/services): connect each service, in order, with its keys.
- [Principles](https://nuxt-backend.dev/docs/start/concepts/principles): why there is no switch.
- [Environments](https://nuxt-backend.dev/docs/start/concepts/environments): what `BACKEND_ENVIRONMENT` decides for each capability.
- [Develop on real sandboxes](https://nuxt-backend.dev/docs/develop/sandboxes): each service's test mode, and how to read it.
- [Build your app](https://nuxt-backend.dev/docs/build): the features of each capability, grouped by what you build.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
