Introduction
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:
| Service | What it does in your app | Capabilities |
|---|---|---|
| Convex | The database, functions, realtime sync, scheduling and file storage. The package's backend component runs here, beside your own tables. | data, jobs, flags |
| Better Auth | Sessions, sign-in codes, passkeys and workspaces. It runs inside your deployment, so it needs no account. | auth |
| Polar | Products, checkout, subscriptions, credit meters and invoices, as the merchant of record. | billing, analytics |
| Resend | Sending, delivery events, contacts, topics, automations and inbound mail. | email, notifications |
| Convex AI Gateway | Every 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 |
| Vercel | Hosting first. Other hosts keep working. | hosting |
| Vercel BotID or Cloudflare Turnstile | An invisible bot check on Vercel, a challenge elsewhere, before a code is sent or an account is made. | protection |
| Sentry | Error 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 when | Pick something else when |
|---|---|
| You are building a client app on Nuxt 4, and want sign-in, plans and credits working on day one | You 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 underneath | Your data has to live in Postgres, MySQL or another database |
| You sell plans, prepaid credits or metered AI, billed by the provider's own meters | You bill per seat: it is not planned |
| You want the pages too (sign-in, pricing, settings), styled to start and yours to restyle | Your 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 upgraderepairs 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.
/logintakes 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,/profileand/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 statusshow each capability's state, andnpx nuxt-backend doctornames 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.
In a Nuxt app you already have, start with Nuxt's own module command:
npx nuxt module add nuxt-backend
pnpm nuxt module add nuxt-backend
yarn nuxt module add nuxt-backend
bunx nuxt module add nuxt-backend
The Quickstart takes it from there: a signed-in app in about three minutes, with no account anywhere.
A new app, with the module installed and its backend files written:
npm create nuxt@latest my-app -- -t gh:qruto/nuxt-backend/templates/starter
cd my-app
npm run dev
pnpm create nuxt@latest my-app -t gh:qruto/nuxt-backend/templates/starter cd my-app pnpm dev
yarn create nuxt my-app -t gh:qruto/nuxt-backend/templates/starter cd my-app yarn dev
bun create nuxt@latest my-app -t gh:qruto/nuxt-backend/templates/starter cd my-app bun run dev
The first run asks where to create the deployment. Start without an account makes a local one.
Templates and examples lists the starter, Panels and the examples.
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:
- Begin. Quickstart: a signed-in app, then credits bought and spent. What you got: the inventory of that first run.
- Install. Installation: one command, an agent prompt, or by hand. Templates and examples: the starter, Panels and the examples.
- Try. Try the demo: Panels, the tutorial's app, live on this site in sandbox mode. Try everything: the same on your machine, with personas and a checklist.
- Build. Build a creative app: the tutorial, from the starter to production.
- Plan. Feature map: every feature with its status. Roadmap: what waits for a later release.
- Understand. How it works, Capabilities, Principles, Environments, nuxt-backend and nuxt-convex-module and Choosing nuxt-backend.
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.
Services
Develop
Build
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.