Nextbase Docs
Nextbase Docs
HomeBlogWelcome to Nextbase v5!Choose your starterGetting startedLocal Supabase per agent
TanStack + ConvexInstallationEnvironment variablesAuthenticationAgent connectionsProject structureDeployment
AuthenticationWorkspaces and the admin area
Building with agentsEmails with Resend
TroubleshootingNextbase v5
The 8 starter kitsTanStack + Convex

TanStack + Convex

Overview of the TanStack Start + Convex starter: what it ships, what you need, and where to go next.

This kit uses TanStack Start, Convex reactive queries and Convex Auth. You get the account, workspace and project foundation, a separate admin application, and separate agent connections for users and application administrators.

Open the live demo · Admin demo · Repository

The stack

LayerWhat the kit uses
FrontendTwo TanStack Start apps (apps/web for customers, apps/admin for platform administration) with TanStack Router, Vite, React 19, Tailwind CSS 4 and Radix UI primitives
Backend and databaseConvex (schema, queries, mutations, HTTP actions, scheduled work, file storage) in apps/database/convex, shared by both apps
AuthenticationConvex Auth with password, magic link (Resend) and Google, GitHub and Twitter OAuth providers
EmailsReact Email templates in apps/email, delivered through Resend
Hosting used by the demoTwo Vercel projects (web and admin, Nitro vercel preset) and one Convex cloud deployment for the backend

Public routes may server-render. Protected application and admin routes render on the client after Convex Auth resolves. Convex is the application backend; TanStack server functions are reserved for HTML, headers and web-runtime concerns.

What you get out of the box

  • Accounts with onboarding, profile settings, security settings, email change and account deletion
  • Workspaces with owner, admin, member and readonly roles, invitations, settings and workspace deletion
  • Projects with slugs, statuses, comments and project chats
  • A separate admin app (apps/admin, port 3002) at /app-admin with users, workspaces, payment gateway views, feedback, marketing content, an audit log, settings and admin agent connections
  • Audited impersonation: an administrator opens a customer's account in the web app through a one-use handoff token
  • A User MCP and an Admin MCP with OAuth consent, so agents can act through the app's own permissions
  • Stripe billing: customers, products, prices, subscriptions, invoices, usage, credits and a signed webhook
  • Public content: blog, changelog, roadmap, docs and feedback boards
  • API keys for the authenticated HTTP API (/api/v1/me, /api/v1/workspaces) and an OpenAI streaming endpoint
  • File uploads through Convex storage, notifications, rate limits, aggregates and durable background jobs
  • Optional PostHog browser analytics
  • Instructions and MCP configuration for AI coding tools generated from one AGENTS.md with pnpm agents:sync

Prerequisites

  • Node.js 24. The repository's .nvmrc says 24 and package.json engines requires >=24.
  • pnpm 10.33.0, declared in the packageManager field. Run corepack enable and let it pick the version.
  • No Docker. Convex ships its own local backend, stored in .convex/.
  • A Convex account is only needed when you deploy. Local development uses the CLI's anonymous agent mode.
  • Optional accounts: Resend (auth and app emails), Google, GitHub or Twitter (social login), Stripe (billing), OpenAI (AI endpoint), PostHog (analytics), Vercel (hosting).

Next steps

  1. Installation: clone, start the local Convex backend and run the web and admin apps.
  2. Environment variables: every variable in the two example env files.
  3. Authentication: Convex Auth, verification emails, the admin claim flow and impersonation.
  4. Agent connections: User MCP and Admin MCP, tools and consent.
  5. Project structure: the monorepo and where to make changes.
  6. Deployment: Convex production deployment and two Vercel projects.

For the shared guides, start with getting started and troubleshooting.

Deployment

Publish the Convex backend, configure its variables, and deploy the web and admin Next.js apps for the Next.js + Convex starter.

Installation

Run the TanStack + Convex starter locally with the Convex local backend, Convex Auth, the web app and the admin app.

On this page

The stackWhat you get out of the boxPrerequisitesNext steps