---
title: "Package entrypoints"
description: "The package exports map and the full import tree: every subpath, where it runs, its stability tier and what it exports."
canonical_url: "https://nuxt-backend.dev/docs/reference/entrypoints"
---
# Package entrypoints

> The package exports map and the full import tree: every subpath, where it runs, its stability tier and what it exports.

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)

This page lists every import path the package publishes, where its code runs, and what you take from it. Use it to find the subpath a name comes from. You consume the package two ways:

- **Explicit imports** from `nuxt-backend/<subpath>`, declared in the package `exports` map. Every subpath but the module, `test`, `test-utils` and `eslint` runs in your Convex backend (`backend/`), not in the Vue app.
- **Auto-imports** the module registers, with no `import` statement: composables and components in app code ([Composables](https://nuxt-backend.dev/docs/reference/nuxt/composables), [Components](https://nuxt-backend.dev/docs/reference/components)), and `backendAuth` in `server/` ([Server utilities](https://nuxt-backend.dev/docs/reference/nuxt/server-utilities)).

## Every subpath

The import tree and the exports map below are generated from `package.json` and the module's registry. The package re-exports none of the Convex components it builds on: an app that uses `@convex-dev/sharded-counter`, `@convex-dev/action-cache`, `@convex-dev/workpool`, `@convex-dev/migrations`, `@convex-dev/aggregate` or `@convex-dev/crons` imports it directly ([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.

One more import path is a Nuxt alias rather than a subpath: `#backend/a11y`, in app code, exports the helpers the headless bindings are built on, `useActionState`, `useFocusReturn` and `useLiveRegion` ([Headless bindings](https://nuxt-backend.dev/docs/reference/nuxt/composables#headless-bindings)).

### Import tree

Every subpath with the values it exports, then what the module registers in an app.

```text
explicit imports
├─ nuxt-backend ........................ default
├─ nuxt-backend/auth ................... APIError · resolveSignInMethod · setupAuth
                                         storesLastSignInCookie
├─ nuxt-backend/http ................... registerBackendRoutes
├─ nuxt-backend/functions .............. BACKEND_ERRORS · RECENT_SIGN_IN_SECONDS
                                         SENSITIVE_ACTIONS · backendError · createFunctions
                                         defineRetention · getBackendError · normalizeEmail
                                         randomToken · scheduleRetention · sha256Hex
                                         verifyHuman
├─ nuxt-backend/app .................... backendEnv · backendEnvironment
├─ nuxt-backend/billing ................ ALL_BILLING_EVENTS · DIGITAL_CONTENT_CONSENT_TEXT
                                         DIGITAL_CONTENT_CONSENT_VERSION · PROVIDER_CAPABILITIES
                                         ProviderHttpError · ProviderUnsupportedError
                                         billingProviderName · commerceProviderFromEnv
                                         consentFromMetadata · consentMetadata
                                         createCommerceProvider · createCommerceWebhookHandler
                                         defineBillingCatalog · recordDigitalContentConsent
                                         setupBilling · setupReferrals · webhookSecretsFromEnv
├─ nuxt-backend/email .................. ALL_EMAIL_EVENTS · describeOrigin · escapeHtml
                                         forceColorScheme · html · linkBlocks · plainName
                                         setupEmail · trustedHtml
├─ nuxt-backend/presence ............... setupPresence
├─ nuxt-backend/rate-limit ............. DAY · DEFAULT_LIMITS · HOUR · MINUTE · SECOND
                                         setupRateLimiter
├─ nuxt-backend/search ................. defineSearch · search
├─ nuxt-backend/audit .................. BACKEND_EVENTS · defineActivation · setupAudit
                                         vBackendEvent
├─ nuxt-backend/access ................. ACCESS_PHASES · setupAccess · setupWaitlist
├─ nuxt-backend/account ................ ACCOUNT_DATA_SOURCES · setupAccount
├─ nuxt-backend/admin .................. IMPERSONATION_SESSION_SECONDS · setupAdmin
                                         setupWebhooks
├─ nuxt-backend/flags .................. BACKEND_FLAGS · FLAG_TARGETS_MAX
                                         MAINTENANCE_MESSAGE_MAX · ROLLOUT_BUCKETS · defineFlags
                                         flagBucket · setupFlags
├─ nuxt-backend/workflows .............. defineEmailSequence · setupWorkflows
├─ nuxt-backend/ai ..................... DEFAULT_THRESHOLDS · MODERATION_CATEGORIES
                                         arachnidShield · azureContentSafety · defineJobQueue
                                         openaiModeration · priceTokens · retryable · setupAi
                                         vJobEnd · vOwedCharge
├─ nuxt-backend/storage ................ DEFAULT_ACCEPTED_TYPES · DEFAULT_MAX_FILE_SIZE
                                         SIGNED_URL_TTL_MAX_MS · SIGNED_URL_TTL_MS
                                         setupStorage · sniffContentType · stripImageMetadata
├─ nuxt-backend/notifications .......... setupNotifications
├─ nuxt-backend/monitoring ............. MONITORING_TAGS · checkIn · checkingIn · isReportable
                                         reportError · reportingErrors
├─ nuxt-backend/convex.config .......... default
├─ nuxt-backend/_generated/component ... (types)
├─ nuxt-backend/auth.config ............ default · defineBackendAuthConfig
├─ nuxt-backend/test ................... TEST_FAINT · TEST_KNOWN_ABUSE · TEST_PNG
                                         TEST_STORAGE_URL · TEST_UNSAFE · TEST_UNSAFE_CODE
                                         asUser · default · defineBackendTestApp · drain
                                         fileExists · register · seedBilling · seedCredits
                                         seedWorkspace · stubBillingProvider · stubStorageFetch
                                         upload
├─ nuxt-backend/test-utils ............. backendMockProvides · backendTestAliases
                                         createBackendMock · renderEmail · resetBackendMock
└─ nuxt-backend/eslint ................. BACKEND_ESLINT_RULES · backendEslint

auto-imports (no import statement)
├─ composables ......................... useAuth · useConnectionState · useBackendClient
                                         useLoginFlow · useEmailChange · useWorkspace
                                         useSearch · useBilling · useFeatures · useCredits
                                         usePricing · usePlanChange · useBillingSection
                                         useCampaign · useOrders · useUsage · useGifts
                                         useGiftList · useGiftForm · useWithdrawal
                                         useReferrals · useReferralInvite · useReferralAdmin
                                         usePasskeys · useTwoFactor · useRoomPresence
                                         useSessions · useSignInAlerts · useReauthentication
                                         useAuditLog · useAccount · useConsents · useAdmin
                                         useFlag · useFlagAdmin · useAccessPhase · useInvite
                                         useMemberTicket · useAccessAdmin · useWaitlist
                                         useWaitlistAdmin · useShareLink · useUploadField
                                         preparePhoto · isPhotoFile · PhotoPrepError
                                         useNotifications · useNotificationInbox
                                         useEmailPreferences · useEmailLink
                                         usePushSubscription · useInstallPrompt
                                         useAnnouncements · useAnnouncementsAdmin
                                         useContactForm · useReportForm · useReportAppeal
                                         useOnboarding · useActivation · useExperiment
                                         useAppShell · useInboxAdmin · getBackendError
                                         formatBillingAmount · useBackendConfig · useLabels
                                         useBackendPagePath · useReturnPath · useEmailStatus
                                         useSandboxInbox · useWorkflowStatus · useAiStream
                                         useJob · useAiLabel · useChat · useHumanCheck
├─ base composables .................... useQuery · useQuery_experimental · useQueries
                                         useMutation · useAction · useUpload · uploadFile
                                         useUploadQueue · useStorageUrl · usePreloadedQuery
                                         useAsyncQuery · usePaginatedQuery
                                         usePaginatedQuery_experimental · useAsyncPaginatedQuery
                                         loadAuthClient · usePreloadedAuthQuery
                                         resolveAuthRedirect
├─ components .......................... <AuthForm> · <WaitlistForm> · <ReauthenticateDialog>
                                         <ProfileSettings> · <SecuritySettings>
                                         <ConsentPrompt> · <OnboardingFlow>
                                         <ActivationChecklist> · <HowDidYouHear> · <AccountData>
                                         <WorkspaceSettings> · <AcceptInvitation> · <AuditLog>
                                         <PricingTable> · <BillingCheckoutLink>
                                         <BillingPortalLink> · <BillingHistory> · <UsageHistory>
                                         <UpgradePrompt> · <CancelFlow> · <WithdrawalButton>
                                         <GiftForm> · <GiftList> · <ReferralCard> · <AdminUsers>
                                         <AdminWorkspaces> · <Gate> · <BackendNotices>
                                         <AccessDenied> · <ConnectionStatus> · <UploadField>
                                         <NotificationInbox> · <ContactForm> · <AppShell>
                                         <AiLabel> · <LegalProcessors> · <LegalStorage>
                                         <LegalDetail> · <LegalVersion> · <LegalContactPoints>
                                         <LegalModeration> · <StorageImage>
├─ base components ..................... <Authenticated> · <Unauthenticated> · <AuthLoading>
                                         <AuthRefreshing> · <AuthBoundary>
├─ route middleware .................... backend-access
├─ injection ........................... useNuxtApp().$convex
└─ Nitro ............................... backendAuth · fetchQuery · fetchMutation · fetchAction
                                         preloadQuery · preloadedQueryResult

aliases (Vite and Nitro)
└─ functions directory ................. #backend/api · #backend/server · #backend/dataModel
                                         #backend/_generated · #backend/a11y · #backend/parts
                                         #backend/runtime · #backend
```

### Exports map

One row per subpath of `package.json`'s `exports`, linked to its generated API page. The two component entries Convex imports are also published with a `.js` suffix, as exact duplicates. [Stability](https://nuxt-backend.dev/docs/ship/releases/stability) says what each tier promises: an experimental subpath may change shape in a minor release.

<table>
<thead>
  <tr>
    <th>
      Import
    </th>
    
    <th>
      Runs in
    </th>
    
    <th>
      Tier
    </th>
    
    <th>
      Exports
    </th>
    
    <th>
      For
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/module">
        <code>
          nuxt-backend
        </code>
      </a>
    </td>
    
    <td>
      <code>
        nuxt.config
      </code>
      
       (build time)
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      The Nuxt module: <code>
        modules: ['nuxt-backend']
      </code>
      
      , configured under the <code>
        backend
      </code>
      
       key
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/auth">
        <code>
          nuxt-backend/auth
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        APIError
      </code>
      
      , <code>
        resolveSignInMethod
      </code>
      
      , <code>
        setupAuth
      </code>
      
      , <code>
        storesLastSignInCookie
      </code>
    </td>
    
    <td>
      <code>
        setupAuth
      </code>
      
      , the app's auth from one call, and <code>
        APIError
      </code>
      
       for hooks that refuse
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/http">
        <code>
          nuxt-backend/http
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        registerBackendRoutes
      </code>
    </td>
    
    <td>
      <code>
        registerBackendRoutes
      </code>
      
      : the auth routes, both webhooks, the one-click unsubscribe, <code>
        /ai/stream
      </code>
      
      , the health route and, when it is passed <code>
        storage
      </code>
      
      , the signed file URLs, in one call
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/functions">
        <code>
          nuxt-backend/functions
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        BACKEND_ERRORS
      </code>
      
      , <code>
        RECENT_SIGN_IN_SECONDS
      </code>
      
      , <code>
        SENSITIVE_ACTIONS
      </code>
      
      , <code>
        backendError
      </code>
      
      , <code>
        createFunctions
      </code>
      
      , <code>
        defineRetention
      </code>
      
      , <code>
        getBackendError
      </code>
      
      , <code>
        normalizeEmail
      </code>
      
      , <code>
        randomToken
      </code>
      
      , <code>
        scheduleRetention
      </code>
      
      , <code>
        sha256Hex
      </code>
      
      , <code>
        verifyHuman
      </code>
    </td>
    
    <td>
      <code>
        createFunctions
      </code>
      
       (every access tier from one call: <code>
        authed
      </code>
      
      , <code>
        workspace
      </code>
      
      , <code>
        admin
      </code>
      
      , <code>
        withRole
      </code>
      
      , <code>
        withFeature
      </code>
      
       and <code>
        setUserRole
      </code>
      
      ), the error catalog, <code>
        verifyHuman
      </code>
      
      , the sensitive-action table, <code>
        defineRetention
      </code>
      
       and <code>
        scheduleRetention
      </code>
      
       (rows that age out, deleted in batches on a schedule) and the token helpers <code>
        randomToken
      </code>
      
      , <code>
        sha256Hex
      </code>
      
       and <code>
        normalizeEmail
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/app">
        <code>
          nuxt-backend/app
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        backendEnv
      </code>
      
      , <code>
        backendEnvironment
      </code>
    </td>
    
    <td>
      <code>
        backendEnv
      </code>
      
      : the typed deployment env contract <code>
        convex.config.ts
      </code>
      
       passes to <code>
        defineApp
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/billing">
        <code>
          nuxt-backend/billing
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        ALL_BILLING_EVENTS
      </code>
      
      , <code>
        DIGITAL_CONTENT_CONSENT_TEXT
      </code>
      
      , <code>
        DIGITAL_CONTENT_CONSENT_VERSION
      </code>
      
      , <code>
        PROVIDER_CAPABILITIES
      </code>
      
      , <code>
        ProviderHttpError
      </code>
      
      , <code>
        ProviderUnsupportedError
      </code>
      
      , <code>
        billingProviderName
      </code>
      
      , <code>
        commerceProviderFromEnv
      </code>
      
      , <code>
        consentFromMetadata
      </code>
      
      , <code>
        consentMetadata
      </code>
      
      , <code>
        createCommerceProvider
      </code>
      
      , <code>
        createCommerceWebhookHandler
      </code>
      
      , <code>
        defineBillingCatalog
      </code>
      
      , <code>
        recordDigitalContentConsent
      </code>
      
      , <code>
        setupBilling
      </code>
      
      , <code>
        setupReferrals
      </code>
      
      , <code>
        webhookSecretsFromEnv
      </code>
    </td>
    
    <td>
      <code>
        setupBilling
      </code>
      
       and <code>
        defineBillingCatalog
      </code>
      
      : subscriptions, credits, gifts and the catalog
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/email">
        <code>
          nuxt-backend/email
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        ALL_EMAIL_EVENTS
      </code>
      
      , <code>
        describeOrigin
      </code>
      
      , <code>
        escapeHtml
      </code>
      
      , <code>
        forceColorScheme
      </code>
      
      , <code>
        html
      </code>
      
      , <code>
        linkBlocks
      </code>
      
      , <code>
        plainName
      </code>
      
      , <code>
        setupEmail
      </code>
      
      , <code>
        trustedHtml
      </code>
    </td>
    
    <td>
      <code>
        setupEmail
      </code>
      
      : transactional and marketing email, and every template the package sends
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/presence">
        <code>
          nuxt-backend/presence
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      experimental
    </td>
    
    <td>
      <code>
        setupPresence
      </code>
    </td>
    
    <td>
      <code>
        setupPresence
      </code>
      
      : who is in a room, behind the sign-in, for <code>
        useRoomPresence
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/rate-limit">
        <code>
          nuxt-backend/rate-limit
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        DAY
      </code>
      
      , <code>
        DEFAULT_LIMITS
      </code>
      
      , <code>
        HOUR
      </code>
      
      , <code>
        MINUTE
      </code>
      
      , <code>
        SECOND
      </code>
      
      , <code>
        setupRateLimiter
      </code>
    </td>
    
    <td>
      <code>
        setupRateLimiter
      </code>
      
       and <code>
        DEFAULT_LIMITS
      </code>
      
      , with the time units
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/search">
        <code>
          nuxt-backend/search
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        defineSearch
      </code>
      
      , <code>
        search
      </code>
    </td>
    
    <td>
      <code>
        defineSearch
      </code>
      
       and <code>
        search
      </code>
      
      : typed full-text search over a search index
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/audit">
        <code>
          nuxt-backend/audit
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        BACKEND_EVENTS
      </code>
      
      , <code>
        defineActivation
      </code>
      
      , <code>
        setupAudit
      </code>
      
      , <code>
        vBackendEvent
      </code>
    </td>
    
    <td>
      <code>
        setupAudit
      </code>
      
       for <code>
        audit.ts
      </code>
      
      : the activity trail, <code>
        recordBackendEvent
      </code>
      
       for events of your own, and the event catalog
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/access">
        <code>
          nuxt-backend/access
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        ACCESS_PHASES
      </code>
      
      , <code>
        setupAccess
      </code>
      
      , <code>
        setupWaitlist
      </code>
    </td>
    
    <td>
      <code>
        setupAccess
      </code>
      
       for <code>
        access.ts
      </code>
      
      : launch phases (early access, invite only, public), invite codes, access links and invitations by address, checked in the sign-in hooks, and <code>
        setupWaitlist
      </code>
      
       for <code>
        waitlist.ts
      </code>
      
      : the verified waitlist for early access
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/account">
        <code>
          nuxt-backend/account
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        ACCOUNT_DATA_SOURCES
      </code>
      
      , <code>
        setupAccount
      </code>
    </td>
    
    <td>
      <code>
        setupAccount
      </code>
      
       for <code>
        account.ts
      </code>
      
      : an account's data export, its complete erasure with your own tables as sources, and the registry of what the package keeps of a person
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/admin">
        <code>
          nuxt-backend/admin
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        IMPERSONATION_SESSION_SECONDS
      </code>
      
      , <code>
        setupAdmin
      </code>
      
      , <code>
        setupWebhooks
      </code>
    </td>
    
    <td>
      <code>
        setupAdmin
      </code>
      
       for <code>
        admin.ts
      </code>
      
      : the admin console's reads of every account and workspace, for administrators
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/flags">
        <code>
          nuxt-backend/flags
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        BACKEND_FLAGS
      </code>
      
      , <code>
        FLAG_TARGETS_MAX
      </code>
      
      , <code>
        MAINTENANCE_MESSAGE_MAX
      </code>
      
      , <code>
        ROLLOUT_BUCKETS
      </code>
      
      , <code>
        defineFlags
      </code>
      
      , <code>
        flagBucket
      </code>
      
      , <code>
        setupFlags
      </code>
    </td>
    
    <td>
      <code>
        defineFlags
      </code>
      
       and <code>
        setupFlags
      </code>
      
       for <code>
        flags.ts
      </code>
      
      : feature flags read inside queries and mutations, and the kill switches
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/workflows">
        <code>
          nuxt-backend/workflows
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        defineEmailSequence
      </code>
      
      , <code>
        setupWorkflows
      </code>
    </td>
    
    <td>
      <code>
        setupWorkflows
      </code>
      
       and <code>
        defineEmailSequence
      </code>
      
      : durable multi-step functions
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/ai">
        <code>
          nuxt-backend/ai
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      experimental
    </td>
    
    <td>
      <code>
        DEFAULT_THRESHOLDS
      </code>
      
      , <code>
        MODERATION_CATEGORIES
      </code>
      
      , <code>
        arachnidShield
      </code>
      
      , <code>
        azureContentSafety
      </code>
      
      , <code>
        defineJobQueue
      </code>
      
      , <code>
        openaiModeration
      </code>
      
      , <code>
        priceTokens
      </code>
      
      , <code>
        retryable
      </code>
      
      , <code>
        setupAi
      </code>
      
      , <code>
        vJobEnd
      </code>
      
      , <code>
        vOwedCharge
      </code>
    </td>
    
    <td>
      <code>
        setupAi
      </code>
      
      : metered actions and persisted streams, reserved and settled in credits
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/storage">
        <code>
          nuxt-backend/storage
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        DEFAULT_ACCEPTED_TYPES
      </code>
      
      , <code>
        DEFAULT_MAX_FILE_SIZE
      </code>
      
      , <code>
        SIGNED_URL_TTL_MAX_MS
      </code>
      
      , <code>
        SIGNED_URL_TTL_MS
      </code>
      
      , <code>
        setupStorage
      </code>
      
      , <code>
        sniffContentType
      </code>
      
      , <code>
        stripImageMetadata
      </code>
    </td>
    
    <td>
      <code>
        setupStorage
      </code>
      
       for <code>
        storage.ts
      </code>
      
      : checked uploads stored with their owner records, expiring private URLs, share links and the orphan sweep
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/notifications">
        <code>
          nuxt-backend/notifications
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        setupNotifications
      </code>
    </td>
    
    <td>
      <code>
        setupNotifications
      </code>
      
       for <code>
        notifications.ts
      </code>
      
      : the in-app inbox, its reads and writes, and <code>
        notify
      </code>
      
      , which turns events of your own into notifications
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/monitoring">
        <code>
          nuxt-backend/monitoring
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      experimental
    </td>
    
    <td>
      <code>
        MONITORING_TAGS
      </code>
      
      , <code>
        checkIn
      </code>
      
      , <code>
        checkingIn
      </code>
      
      , <code>
        isReportable
      </code>
      
      , <code>
        reportError
      </code>
      
      , <code>
        reportingErrors
      </code>
    </td>
    
    <td>
      <code>
        reportError
      </code>
      
      , <code>
        reportingErrors
      </code>
      
       and <code>
        checkIn
      </code>
      
      : error reports and cron check-ins from your own actions
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/convex-config">
        <code>
          nuxt-backend/convex.config
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      The all-in-one <code>
        backend
      </code>
      
       component, which <code>
        convex.config.ts
      </code>
      
       mounts
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/convex-config">
        <code>
          nuxt-backend/_generated/component
        </code>
      </a>
    </td>
    
    <td>
      types only
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      none
    </td>
    
    <td>
      The <code>
        ComponentApi
      </code>
      
       type of the <code>
        backend
      </code>
      
       component (types only)
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/auth-config">
        <code>
          nuxt-backend/auth.config
        </code>
      </a>
    </td>
    
    <td>
      Convex functions (<code>
        backend/
      </code>
      
      )
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        default
      </code>
      
      , <code>
        defineBackendAuthConfig
      </code>
    </td>
    
    <td>
      <code>
        defineBackendAuthConfig
      </code>
      
      : the default export of <code>
        auth.config.ts
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        nuxt-backend/test
      </code>
    </td>
    
    <td>
      Vitest (<code>
        convex-test
      </code>
      
      )
    </td>
    
    <td>
      experimental
    </td>
    
    <td>
      <code>
        TEST_FAINT
      </code>
      
      , <code>
        TEST_KNOWN_ABUSE
      </code>
      
      , <code>
        TEST_PNG
      </code>
      
      , <code>
        TEST_STORAGE_URL
      </code>
      
      , <code>
        TEST_UNSAFE
      </code>
      
      , <code>
        TEST_UNSAFE_CODE
      </code>
      
      , <code>
        asUser
      </code>
      
      , <code>
        default
      </code>
      
      , <code>
        defineBackendTestApp
      </code>
      
      , <code>
        drain
      </code>
      
      , <code>
        fileExists
      </code>
      
      , <code>
        register
      </code>
      
      , <code>
        seedBilling
      </code>
      
      , <code>
        seedCredits
      </code>
      
      , <code>
        seedWorkspace
      </code>
      
      , <code>
        stubBillingProvider
      </code>
      
      , <code>
        stubStorageFetch
      </code>
      
      , <code>
        upload
      </code>
    </td>
    
    <td>
      <code>
        defineBackendTestApp
      </code>
      
      , <code>
        asUser
      </code>
      
      , <code>
        seedWorkspace
      </code>
      
      , <code>
        upload
      </code>
      
      , <code>
        drain
      </code>
      
      , <code>
        seedBilling
      </code>
      
      , <code>
        seedCredits
      </code>
      
      , <code>
        stubStorageFetch
      </code>
      
       and <code>
        register
      </code>
      
       for <code>
        convex-test
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/test-utils">
        <code>
          nuxt-backend/test-utils
        </code>
      </a>
    </td>
    
    <td>
      Vitest (<code>
        nuxt
      </code>
      
       environment)
    </td>
    
    <td>
      experimental
    </td>
    
    <td>
      <code>
        backendMockProvides
      </code>
      
      , <code>
        backendTestAliases
      </code>
      
      , <code>
        createBackendMock
      </code>
      
      , <code>
        renderEmail
      </code>
      
      , <code>
        resetBackendMock
      </code>
    </td>
    
    <td>
      <code>
        createBackendMock
      </code>
      
       and <code>
        backendTestAliases
      </code>
      
      : a fake backend under the composables in component and page tests
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/api/eslint">
        <code>
          nuxt-backend/eslint
        </code>
      </a>
    </td>
    
    <td>
      <code>
        eslint.config
      </code>
      
       (lint time)
    </td>
    
    <td>
      stable
    </td>
    
    <td>
      <code>
        BACKEND_ESLINT_RULES
      </code>
      
      , <code>
        backendEslint
      </code>
    </td>
    
    <td>
      <code>
        backendEslint
      </code>
      
      : the platform's lint rules for the functions directory
    </td>
  </tr>
</tbody>
</table>

`resolveSignInMethod` from `nuxt-backend/auth` is deprecated: Better Auth 1.7 names a code sign-in `email-otp` itself, so a `lastLoginMethod` of your own needs no `customResolveMethod`. It keeps working until a later minor release removes it ([Stability](https://nuxt-backend.dev/docs/ship/releases/stability#deprecation)).

## Selected entrypoint signatures

### `nuxt-backend/auth.config`

```ts
import defineBackendAuthConfig, {
  type DefineBackendAuthConfigOptions,
} from 'nuxt-backend/auth.config'

function defineBackendAuthConfig(options?: DefineBackendAuthConfigOptions): AuthConfig
interface DefineBackendAuthConfigOptions {
  paths?: Partial<BackendPaths>  // the paths.generated.ts the module writes;
                                 // reads authRoute (default '/api/auth')
  jwks?: string
}
```

### `setupAuth` options

`setupAuth` in `backend/auth.ts` takes these options:

```ts
interface SetupAuthOptions<DM> {
  authConfig?: AuthConfig          // replaces the default Convex auth config
  authOptions?: BetterAuthOptions  // merged with the package's defaults
  paths?: Partial<BackendPaths>    // paths.generated.ts: the auth route and the
                                   // pages its emails link to
  admin?: AdminPluginOptions       // roles, bans and impersonation
  workspaces?: WorkspaceOptions    // invitationExpiresIn, canInvite and the
                                   // onCreate / onMemberAdded / onMemberRemoved hooks
  email: AuthEmail                 // the setupEmail result every auth email uses
  rateLimiter?: AuthRateLimiter    // code sends and privileged routes
  access?: AuthAccess              // setupAccess(...): the launch phases
  canSignIn?: CanSignIn<DM>        // a veto of your own, after the phases
  onUserCreated?: OnUserCreated<DM>
  onUserDeleted?: OnUserDeleted<DM>
  audit?: AuthAudit                // setupAudit(...): auth events reach its onEvent
  account?: AuthAccount            // setupAccount(...): a deletion erases everything
                                   // of the account through it
}
```

You pass the result of `setupAccess` as `access`: the launch phases, invite codes and access links decide who may sign up, and your own `canSignIn` can still refuse after them. [Hooks and guarantees](https://nuxt-backend.dev/docs/reference/backend/hooks) says when the package calls each hook.


## Sitemap

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