Introduction

What nuxt-backend is, the backend of a client app on Nuxt in twelve capabilities, the services behind it, who it is for, what waits for a later release, and what your app has on day one.

nuxt-backend is the backend of a client app: a product people sign in to, pay for and create things in. One Nuxt module and one Convex component give your app sign-in, workspaces, plans and credits, email, notifications, metered AI and generation jobs, and the pages that use them. You write your product. The package brings the sign-in flows, the webhook handling, the credit accounting and the pages.

The package groups the services it builds on into twelve capabilities, each named for what it gives your app: auth, billing, email and so on. Your code calls useCredits and reads BILLING_* rather than Polar's API, and each capability starts working once its key is set.

Know the trade-offs before you start. Your data lives in Convex, and payments run through Polar as merchant of record, at 5% + 50¢ per sale. Sign-in is passkeys and sign-in codes only, the app runs on Nuxt 4, and there is no per-seat billing. Each capability is built on one provider's own features, so leaving a provider means rewriting that capability. When it fits has the full list.

What it is made of

A Nuxt module for the app, and one all-in-one backend component for Convex, with these services behind them. Each service has a page that sets it up, from the account to production:

ServiceWhat it does in your appCapabilities
ConvexThe database, functions, realtime sync, scheduling and file storage. The package's backend component runs here, beside your own tables.data, jobs, flags
Better AuthSessions, sign-in codes, passkeys and workspaces. It runs inside your deployment, so it needs no account.auth
PolarProducts, checkout, subscriptions, credit meters and invoices, as the merchant of record.billing, analytics
ResendSending, delivery events, contacts, topics, automations and inbound mail.email, notifications
Convex AI GatewayEvery provider's models with no key to manage, each call at its real cost. Without it, a Vercel AI Gateway key does the same.ai
VercelHosting first. Other hosts keep working.hosting
Vercel BotID or Cloudflare TurnstileAn invisible bot check on Vercel, a challenge elsewhere, before a code is sent or an account is made.protection
SentryError reports, logs, traces, cron check-ins and uptime.monitoring

The Service map says which you need, the free tier of each, and the order to connect them in. In development each provider runs in its own test mode: Polar's sandbox for checkout, Resend's test addresses for mail, and sign-in codes in your terminal until email is connected (Develop on real sandboxes). The Feature map lists every feature with its status.

Who it is for

A Nuxt developer, or a small team, building a client app. A tool that turns photos into comic strips, a writing app sold by credits, a game with a premium plan. You want sign-in, billing and email working before your first feature, on a realtime backend. You want pages you restyle rather than build, and a coding agent that knows the package as well as you do.

When it fits

Use it whenPick something else when
You are building a client app on Nuxt 4, and want sign-in, plans and credits working on day oneYou need passwords or social sign-in: sign-in here is passkeys and sign-in codes only
Your data can live in Convex, the realtime database underneathYour data has to live in Postgres, MySQL or another database
You sell plans, prepaid credits or metered AI, billed by the provider's own metersYou bill per seat: it is not planned
You want the pages too (sign-in, pricing, settings), styled to start and yours to restyleYour app is React or Next, or Nuxt 5 before the package supports it

Principles explains each "no", and Choosing nuxt-backend compares the package with the alternatives.

What it is not

  • Not a platform for service providers, yet. API keys, outgoing webhooks, an MCP endpoint for your users' agents, custom workspace roles and ownership transfer wait for a later release. The Roadmap says why each one waits.
  • Not a hosted service. It runs in your Convex deployment and your Nuxt app, on your provider accounts: the data and the customers are yours.
  • Not a Nuxt layer or a template you fork. It is one module in modules, a dependency you upgrade: npx nuxt-backend upgrade repairs the scaffold and runs the package's data migrations.
  • Not a kit of optional parts. Every capability ships in the package and starts working once its key or catalog exists. Until then it stays off, or runs on its development stand-in, such as sign-in codes printed in your terminal.
  • Not a switch between providers. The names are neutral, but each capability is built on one service's own features (Replacing a provider).
  • Not tied to a UI kit. The pages come styled and depend on no UI library. Customizing them climbs one ladder: mount, tokens, labels, slots, swap a part, headless composables, eject (Customization ladder).

Day one

After the install and the first npx nuxt-backend dev, with no account anywhere, your app already has:

  • Sign-in. /login takes a passkey or a sign-in code. The code prints in your terminal until email is connected, and every new account gets a personal workspace: the unit that pays, holds members and owns data.
  • Accounts. /settings, /profile and /security: the workspace and its members, the plan and credits, the profile, passkeys and signed-in devices.
  • For administrators. /admin, for the people who run the app.
  • A view of it all. The DevTools Backend tab and npx nuxt-backend status show each capability's state, and npx nuxt-backend doctor names what is missing.

A Polar sandbox token adds the rest of the first hour. npx nuxt-backend billing sync creates the plans and credit packs of backend/billing.catalog.ts in Polar's sandbox, /pricing sells them, and a scaffolded metered action spends the credits. What you got lists every file, page, route and composable of that first run.

Three ways to start

Paste this into Claude Code, Cursor, Codex or any agent that runs commands in your project. It installs the package's skill and follows its install guide, on a local deployment that needs no account:

Install nuxt-backend, the all-in-one SaaS backend for Nuxt on Convex, in this project:
run `npx -y [email protected] add https://nuxt-backend.dev --skill nuxt-backend -y`,
then follow .agents/skills/nuxt-backend/references/install.md.

Or open it in your agent with the prompt typed in. Nothing runs until you press send.

Learn by building panels

The tutorial builds Panels, a comic-strip maker, in six parts: sign-in, credits, photo uploads, generation jobs, notifications and share links, then a deploy. Panels is also the public demo and a template, so the code you write there is the code the demo runs.

In this tab

Read the Start tab top to bottom on a first visit, then keep the concepts at hand:

The docs, tab by tab

The tabs run from general to detailed: what it is, how to connect each service, how to develop and test, how to build each feature, how to ship.

Tutorial

Build Panels, a comic-strip maker, from the starter to production in six parts.

Services

One page per provider: the account, its test mode, the keys, the webhooks, production, costs and the data it holds.

Develop

The dev loop on real sandboxes, the dev inbox, DevTools and doctor, testing at every level, and building with a coding agent.

Build

Every feature, grouped as auth and accounts, billing, email and notifications, AI, data and files, growth, and the UI.

Ship

The deploy, the production checklist, security, compliance, operating in production, and releases.

Reference

Every option, env name, composable, component, route, error and CLI flag, generated from the code.

Version and stability

These docs describe the 0.6.x line. Patch releases never change the public surface. A minor release may change it, through a deprecation first, and each change is on the Upgrade page. Stability lists what counts as the surface, and which parts are still experimental.

Two chips mark a page ahead of the code. Planned means the feature arrives in the next release and is not built yet. Changing means it is built, and the page already shows the API as the next release reshapes it. The Feature map explains both and names the unit of work behind each.

Try it first

The demo is Panels, the tutorial's app, running against this site's own deployment in sandbox mode: sign in with a generated sandbox address, with nothing to install. Try the demo says what it lets you do and what it refuses, and Try everything runs the same on your machine.