---
title: "Setup helpers"
description: "Every setup and define helper the package exports: its import path, the file of yours that calls it, and what it gives you, the options that extend them, then the helpers generated from the code."
canonical_url: "https://nuxt-backend.dev/docs/reference/backend"
---
# Setup helpers

> Every setup and define helper the package exports: its import path, the file of yours that calls it, and what it gives you, the options that extend them, then the helpers generated from the code.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · 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/package.json)

The Convex side of the package is a set of helpers your `backend/` files call once each. This page says which file calls each helper, so you know where to edit when you change its options. Two verbs name them: `setupX(components, options)` wires an integration and returns `{ ...helpers, api }`, and `defineX(...)` declares data, such as a catalog, flags or a job queue. `createFunctions` and `registerBackendRoutes` keep their names.

```ts [backend/billing.ts]
import { setupBilling } from 'nuxt-backend/billing'
import { components } from './_generated/api'
import { catalog } from './billing.generated'
import { email } from './email'

export const billing = setupBilling(components, { email, catalog })
```

## Every helper

Each `setup*`, `define*`, `create*` and `register*` the package's Convex subpaths export. The other values they export, such as `backendError`, `verifyHuman`, `reportError` and `checkIn`, are on [Package entrypoints](https://nuxt-backend.dev/docs/reference/entrypoints#every-subpath).

### Called by the scaffold

`npx nuxt-backend init` writes these files, each calling its helper once ([Project files](https://nuxt-backend.dev/docs/reference/configuration/project-files)):

<table>
<thead>
  <tr>
    <th>
      Helper
    </th>
    
    <th>
      Import
    </th>
    
    <th>
      File
    </th>
    
    <th>
      What it gives you
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        setupAuth
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/auth
      </code>
    </td>
    
    <td>
      <code>
        backend/auth.ts
      </code>
    </td>
    
    <td>
      Sign-in by sign-in code and passkey, <code>
        canSignIn
      </code>
      
      , the account hooks, and the launch phases you pass as <code>
        access
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        createFunctions
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/functions
      </code>
    </td>
    
    <td>
      <code>
        backend/functions.ts
      </code>
    </td>
    
    <td>
      Every access tier, called once: <code>
        authed
      </code>
      
      , <code>
        workspace
      </code>
      
      , <code>
        admin
      </code>
      
      , <code>
        withRole
      </code>
      
      , <code>
        withFeature
      </code>
      
       and <code>
        setUserRole
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        registerBackendRoutes
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/http
      </code>
    </td>
    
    <td>
      <code>
        backend/http.ts
      </code>
    </td>
    
    <td>
      Every inbound route: auth, both webhooks, the AI stream and the health route
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backendEnv
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/app
      </code>
    </td>
    
    <td>
      <code>
        backend/convex.config.ts
      </code>
    </td>
    
    <td>
      The typed env contract the deployment validates
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineBackendAuthConfig
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/auth.config
      </code>
    </td>
    
    <td>
      <code>
        backend/auth.config.ts
      </code>
    </td>
    
    <td>
      The Convex auth config that trusts the backend's tokens
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineBillingCatalog
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
    
    <td>
      <code>
        backend/billing.catalog.ts
      </code>
    </td>
    
    <td>
      What the app sells: meters, plans, packs, features and promotions
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupBilling
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
    
    <td>
      <code>
        backend/billing.ts
      </code>
    </td>
    
    <td>
      Subscriptions, credits, gifts and promotions, cached inside the component
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupEmail
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/email
      </code>
    </td>
    
    <td>
      <code>
        backend/email.ts
      </code>
    </td>
    
    <td>
      Sending and templates, the theme, topics and one-click unsubscribe, the contact form and inbound mail
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupRateLimiter
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/rate-limit
      </code>
    </td>
    
    <td>
      <code>
        backend/rateLimiter.ts
      </code>
    </td>
    
    <td>
      The rate limiter, seeded with <code>
        DEFAULT_LIMITS
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAudit
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/audit
      </code>
    </td>
    
    <td>
      <code>
        backend/audit.ts
      </code>
    </td>
    
    <td>
      The activity trail, and your own events on it
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAccount
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/account
      </code>
    </td>
    
    <td>
      <code>
        backend/account.ts
      </code>
    </td>
    
    <td>
      Export, deletion with a grace period, and consents
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAdmin
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/admin
      </code>
    </td>
    
    <td>
      <code>
        backend/admin.ts
      </code>
    </td>
    
    <td>
      The admin console: accounts, workspaces, impersonation and the report queue
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupFlags
      </code>
      
      , <code>
        defineFlags
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/flags
      </code>
    </td>
    
    <td>
      <code>
        backend/flags.ts
      </code>
    </td>
    
    <td>
      Feature flags read in your functions, and the kill switches
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAi
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/ai
      </code>
    </td>
    
    <td>
      <code>
        backend/ai.ts
      </code>
    </td>
    
    <td>
      Metered model calls and streams, through the Convex AI Gateway, and the moderation helpers
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWorkflows
      </code>
      
      , <code>
        defineEmailSequence
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/workflows
      </code>
    </td>
    
    <td>
      <code>
        backend/workflows.ts
      </code>
    </td>
    
    <td>
      Durable workflows, and email sequences on them
    </td>
  </tr>
</tbody>
</table>

### Called by a file you add

A feature you use gets a file of yours. The composables read its `api` by default, and each takes an `api` option to point at another file:

<table>
<thead>
  <tr>
    <th>
      Helper
    </th>
    
    <th>
      Import
    </th>
    
    <th>
      File
    </th>
    
    <th>
      What it gives you
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        setupReferrals
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
    
    <td>
      <code>
        backend/referrals.ts
      </code>
    </td>
    
    <td>
      The referral program: codes, the claim, rewards after a hold, and caps
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAccess
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/access
      </code>
    </td>
    
    <td>
      <code>
        backend/access.ts
      </code>
    </td>
    
    <td>
      Launch phases, invite codes and access links, checked in the sign-in hooks of <code>
        setupAuth
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWaitlist
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/access
      </code>
    </td>
    
    <td>
      <code>
        backend/waitlist.ts
      </code>
    </td>
    
    <td>
      A double opt-in waitlist with public positions, launched in waves
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupNotifications
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/notifications
      </code>
    </td>
    
    <td>
      <code>
        backend/notifications.ts
      </code>
    </td>
    
    <td>
      The in-app inbox, email and web push for each kind under each person's choices, and the <code>
        notify
      </code>
      
       option that turns events of your own into notifications
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupStorage
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/storage
      </code>
    </td>
    
    <td>
      <code>
        backend/storage.ts
      </code>
    </td>
    
    <td>
      Checked uploads, storage refs with orphan cleanup, and share links
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineJobQueue
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/ai
      </code>
    </td>
    
    <td>
      <code>
        backend/jobs.ts
      </code>
    </td>
    
    <td>
      A generation queue: tiers from plan features with a head start, running jobs per owner, dedicated slots and a daily budget; model limits that adapt; credits held until a job runs
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineRetention
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/functions
      </code>
    </td>
    
    <td>
      <code>
        backend/retention.ts
      </code>
    </td>
    
    <td>
      Rows of a table deleted after a lifetime, in bounded batches
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineSearch
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/search
      </code>
    </td>
    
    <td>
      A file of yours
    </td>
    
    <td>
      A typed full-text search query over a search index
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineActivation
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/audit
      </code>
    </td>
    
    <td>
      <code>
        backend/audit.ts
      </code>
    </td>
    
    <td>
      The activation checklist: three to seven first tasks, each done when its event is recorded, passed to <code>
        setupAudit({ checklist })
      </code>
    </td>
  </tr>
</tbody>
</table>

### Options that extend them

These features are options of the helpers above, not helpers of their own:

<table>
<thead>
  <tr>
    <th>
      Helper
    </th>
    
    <th>
      Option or return
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        setupBilling
      </code>
    </td>
    
    <td>
      <code>
        lifecycle: { saveOffers, abandonedCheckout, renewalReminders, withdrawal }
      </code>
    </td>
    
    <td>
      Makes one save offer by cancellation reason before a cancellation, records an expired checkout for the lifecycle email, sends the annual renewal reminder Polar doesn't send for short cycles, and serves the EU withdrawal button where Polar doesn't. Checkout records the auto-renew consent, kept three years
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupStorage
      </code>
    </td>
    
    <td>
      <code>
        stripMetadata
      </code>
      
      , <code>
        quota: { files, bytes }
      </code>
    </td>
    
    <td>
      Strips EXIF and GPS from images, sniffs the content type, and caps each owner's files and bytes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupStorage
      </code>
    </td>
    
    <td>
      <code>
        storage.signedUrl(ctx, id, { ttl })
      </code>
    </td>
    
    <td>
      An expiring URL for a private file
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAi
      </code>
    </td>
    
    <td>
      <code>
        provenance
      </code>
    </td>
    
    <td>
      Signs a content-credentials manifest into generated images, and records the model, time and inputs on each job result
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAdmin
      </code>
    </td>
    
    <td>
      <code>
        reports
      </code>
    </td>
    
    <td>
      The report queue, with a statement of reasons to the person affected, an appeal, and a flag for suspected crimes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupEmail
      </code>
    </td>
    
    <td>
      <code>
        lifecycle
      </code>
      
      , <code>
        caps: { perWeek, quietHours, sunsetAfterDays }
      </code>
    </td>
    
    <td>
      The ready-made lifecycle flows on Resend Automations, and the frequency caps and sunset rule for non-transactional mail
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineJobQueue
      </code>
    </td>
    
    <td>
      <code>
        guest: { perVisitor }
      </code>
    </td>
    
    <td>
      One generation before sign-up, claimed at sign-up
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineFlags
      </code>
    </td>
    
    <td>
      <code>
        { key: { variants, weights, goal, guardrails, discounts } }
      </code>
    </td>
    
    <td>
      An experiment: each person gets one variant, read with <code>
        useExperiment(key)
      </code>
      
       in a page and <code>
        flags.variant(ctx, key)
      </code>
      
       on the server, compared in the admin console's Experiments view
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAudit
      </code>
    </td>
    
    <td>
      <code>
        activation
      </code>
    </td>
    
    <td>
      The event that counts as a person's activation in the growth funnel, recorded once as <code>
        account.activated
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAdmin
      </code>
    </td>
    
    <td>
      <code>
        api.getFunnel
      </code>
    </td>
    
    <td>
      The growth funnel for the admin console's Growth view
    </td>
  </tr>
</tbody>
</table>

No helper wraps a Convex component your app can use on its own: for migrations, a workpool, counters, an action cache or crons, the app imports `@convex-dev/migrations`, `@convex-dev/workpool`, `@convex-dev/sharded-counter`, `@convex-dev/action-cache` or `@convex-dev/crons` itself ([Ecosystem](https://nuxt-backend.dev/docs/reference/ecosystem)). The package's own maintenance runs inside its component, so your app registers no cron for it.

Each helper's generated API page has its options and its return type. The rest of this group covers what the helpers mount: the [component's functions](https://nuxt-backend.dev/docs/reference/backend/component), the [HTTP routes](https://nuxt-backend.dev/docs/reference/backend/http-routes), the [events](https://nuxt-backend.dev/docs/reference/backend/events) they react to, the [errors](https://nuxt-backend.dev/docs/reference/backend/errors) they refuse with, the [hooks](https://nuxt-backend.dev/docs/reference/backend/hooks) they call, and their [limits](https://nuxt-backend.dev/docs/reference/backend/limits).

## Generated from the code

Every `setup*`, `define*`, `create*` and `register*` the package's Convex subpaths export, read from the exports map.

<table>
<thead>
  <tr>
    <th>
      Helper
    </th>
    
    <th>
      Import
    </th>
    
    <th>
      Scaffold file
    </th>
    
    <th>
      Tab
    </th>
    
    <th>
      What it gives you
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/auth">
        <code>
          setupAuth
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/auth
      </code>
    </td>
    
    <td>
      <code>
        backend/auth.ts
      </code>
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      The app's auth, from one call: the auth instance factory, the functions the scaffold re-exports.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/http">
        <code>
          registerBackendRoutes
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/http
      </code>
    </td>
    
    <td>
      <code>
        backend/http.ts
      </code>
    </td>
    
    <td>
      Start
    </td>
    
    <td>
      Mount every route the backend serves on the app's HTTP router: the auth routes, the billing and email webhooks, the metered AI stream, and the health.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/functions">
        <code>
          createFunctions
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/functions
      </code>
    </td>
    
    <td>
      <code>
        backend/functions.ts
      </code>
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      Every access tier of your backend, from one call in <code>
        backend/functions.ts
      </code>
      
      : each a drop-in <code>
        { query, mutation, action }
      </code>
      
       that checks the caller before the handler runs.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/functions">
        <code>
          defineRetention
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/functions
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Data
    </td>
    
    <td>
      Delete a table's rows once they pass an age, a batch per transaction, until none is left.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/billing">
        <code>
          createCommerceProvider
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Billing
    </td>
    
    <td>
      The adapter for <code>
        name
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/billing">
        <code>
          createCommerceWebhookHandler
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Billing
    </td>
    
    <td>
      The handler an app passes as <code>
        billing.webhookHandler
      </code>
      
       to <code>
        registerBackendRoutes
      </code>
      
       for an adapter provider.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/billing">
        <code>
          defineBillingCatalog
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
    
    <td>
      <code>
        backend/billing.catalog.ts
      </code>
    </td>
    
    <td>
      Billing
    </td>
    
    <td>
      Declare the billing catalog (typed identity: its keys stay literal, so <code>
        keyof typeof catalog.discounts
      </code>
      
       names its promotions).
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/billing">
        <code>
          setupBilling
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
    
    <td>
      <code>
        backend/billing.ts
      </code>
    </td>
    
    <td>
      Billing
    </td>
    
    <td>
      Configure billing for subscriptions, discounts, prepaid credits, and gift purchases — linked to your auth users and cached reactively inside the <code>
        backend
      </code>
      
       component (so consumers add nothing to their own schema).
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/billing">
        <code>
          setupReferrals
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Billing
    </td>
    
    <td>
      Set the referral program up in its own backend file (<code>
        backend/referrals.ts
      </code>
      
      ).
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/email">
        <code>
          setupEmail
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/email
      </code>
    </td>
    
    <td>
      <code>
        backend/email.ts
      </code>
    </td>
    
    <td>
      Email
    </td>
    
    <td>
      App-facing email helper over the <code>
        backend
      </code>
      
       component's email module: both <strong>
        transactional
      </strong>
      
       email (send / status / cancel + webhook) and <strong>
        marketing
      </strong>
      
       email (segments / contacts / broadcasts via the provider SDK).
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/presence">
        <code>
          setupPresence
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/presence
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Data
    </td>
    
    <td>
      Who is here, for a page, a document or a workspace: Convex's presence component (<code>
        @convex-dev/presence
      </code>
      
      , mounted as <code>
        presence
      </code>
      
       in <code>
        convex.config.ts
      </code>
      
      ) behind the backend's sign-in.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/rate-limit">
        <code>
          setupRateLimiter
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/rate-limit
      </code>
    </td>
    
    <td>
      <code>
        backend/rateLimiter.ts
      </code>
    </td>
    
    <td>
      Ship
    </td>
    
    <td>
      Configure the <a href="https://www.convex.dev/components/rate-limiter" rel="nofollow">
        Rate Limiter
      </a>
      
       component, pre-seeded with <code>
        DEFAULT_LIMITS
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/search">
        <code>
          defineSearch
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/search
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Data
    </td>
    
    <td>
      Define a ready-to-call Convex search query from a search-index config.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/audit">
        <code>
          defineActivation
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/audit
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      The activation checklist: three to seven first tasks that lead to value, each done when one of your own events (or one the package records) is recorded for the person.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/audit">
        <code>
          setupAudit
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/audit
      </code>
    </td>
    
    <td>
      <code>
        backend/audit.ts
      </code>
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      The shared event path: record an event of the package's catalog or of your own, read the activity trail back, and hear of every event.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/access">
        <code>
          setupAccess
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/access
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      Launch your app in phases: early access with a waitlist, then invite only, then public.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/access">
        <code>
          setupWaitlist
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/access
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      Run a waitlist for early access: joins proven by the sign-in code (the double opt-in), a place for everyone waiting, a boost for each friend who joins through their link, waves an administrator admits from the console's Waitlist tab, and a mirror of the people who asked for launch news to the email provider.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/account">
        <code>
          setupAccount
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/account
      </code>
    </td>
    
    <td>
      <code>
        backend/account.ts
      </code>
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      Export and complete erasure of an account.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/admin">
        <code>
          setupAdmin
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/admin
      </code>
    </td>
    
    <td>
      <code>
        backend/admin.ts
      </code>
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      The admin console's reads: every account and every workspace, for an administrator, read fresh from the auth tables.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/admin">
        <code>
          setupWebhooks
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/admin
      </code>
    </td>
    
    <td>
      <code>
        backend/webhooks.ts
      </code>
    </td>
    
    <td>
      Ship
    </td>
    
    <td>
      The webhook delivery log and its replay, for administrators: the two functions <code>
        backend/webhooks.ts
      </code>
      
       re-exports, behind the admin console's Webhooks tab and DevTools' webhook feed.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/flags">
        <code>
          defineFlags
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/flags
      </code>
    </td>
    
    <td>
      <code>
        backend/flags.ts
      </code>
    </td>
    
    <td>
      Ship
    </td>
    
    <td>
      Declare the app's flags: each key with its default and what it turns on.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/flags">
        <code>
          setupFlags
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/flags
      </code>
    </td>
    
    <td>
      <code>
        backend/flags.ts
      </code>
    </td>
    
    <td>
      Ship
    </td>
    
    <td>
      Feature flags, evaluated inside your own queries and mutations, and the package's kill switches.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/workflows">
        <code>
          defineEmailSequence
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/workflows
      </code>
    </td>
    
    <td>
      <code>
        backend/workflows.ts
      </code>
    </td>
    
    <td>
      Email
    </td>
    
    <td>
      A durable, multi-step email sequence (onboarding drips, cancellation follow-ups): each step sleeps its <code>
        after
      </code>
      
       delay durably (survives restarts and deploys via the workflow component), then sends through the backend component's email module — delivery-tracked like every other transactional email.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/workflows">
        <code>
          setupWorkflows
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/workflows
      </code>
    </td>
    
    <td>
      <code>
        backend/workflows.ts
      </code>
    </td>
    
    <td>
      Data
    </td>
    
    <td>
      Configure the <a href="https://www.convex.dev/components/workflow" rel="nofollow">
        Workflow
      </a>
      
       component for durable, long-running, multi-step functions.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/ai">
        <code>
          defineJobQueue
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/ai
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      AI
    </td>
    
    <td>
      Declare the app's generation queue, once, in <code>
        backend/jobs.ts
      </code>
      
      : kinds of jobs (<code>
        jobs.define
      </code>
      
      ) run their steps (<code>
        jobs.step
      </code>
      
      ) in a fair line with tiers from plan features, each model under a limit that adapts to <code>
        429
      </code>
      
      s, credits held while a job waits, charged when it starts and refunded when it fails, and each job's cost reported to the billing provider.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/ai">
        <code>
          setupAi
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/ai
      </code>
    </td>
    
    <td>
      <code>
        backend/ai.ts
      </code>
    </td>
    
    <td>
      AI
    </td>
    
    <td>
      Configure the AI rails over billing + rate limiting + streaming.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/storage">
        <code>
          setupStorage
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/storage
      </code>
    </td>
    
    <td>
      none: call it yourself
    </td>
    
    <td>
      Data
    </td>
    
    <td>
      Checked uploads, expiring private URLs and share links on Convex file storage, kept in the <code>
        backend
      </code>
      
       component's storage beside one owner record per file: the orphan sweep, an account's export and its erasure see every file the app keeps.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/notifications">
        <code>
          setupNotifications
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/notifications
      </code>
    </td>
    
    <td>
      <code>
        backend/notifications.ts
      </code>
    </td>
    
    <td>
      Email
    </td>
    
    <td>
      The in-app inbox: what the backend recorded about a person, live, with the unread count and marking read, and the <code>
        notify
      </code>
      
       option that turns your own events into notifications.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/auth-config">
        <code>
          defineBackendAuthConfig
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt-backend/auth.config
      </code>
    </td>
    
    <td>
      <code>
        backend/auth.config.ts
      </code>
    </td>
    
    <td>
      Auth
    </td>
    
    <td>
      The Convex auth config that trusts the backend's tokens: the session JWTs the <code>
        backend
      </code>
      
       component signs, verified against its JWKS on the deployment's site URL, under the auth route nuxt.config names (<code>
        backend.authRoute
      </code>
      
      ).
    </td>
  </tr>
</tbody>
</table>


## Sitemap

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