Use backend
in a application
- live queriesuseQuery(query, args?), useQueries(queries)
- mutationsuseMutation(mutation), .withOptimisticUpdate(update)
- cursor paginationusePaginatedQuery(query, args, options), insertAtTop(options)
- file storageuseUpload(generateUploadUrl, options?), useUploadQueue(generateUploadUrl, options?), useStorageUrl(getUrl, storageId)
- actionsuseAction(action)
- server & ssruseAsyncQuery(query, args?, options?), preloadQuery(query, args?), fetchQuery(query, args?)
- nuxt
- ≥ 4.6
- vue
- ≥ 3.5
- convex
- ≥ 1.46
- ports convex
- 1.51.0
works with · official add-ons
- auth
- better auth
- clerk
- auth0
- billing
- polar
- email
- resend
frontend
Nuxt
The full-stack framework for building web apps, from the first page to production.
nuxt.combackend
Convex
The reactive backend that keeps your web app in sync with its data in real time.
convex.devEverything the module ships
Composables, components and server helpers auto-import. The #convex/* aliases resolve your generated API, and the module re-renders them the moment codegen lands.
One table, live in every client
Flip a switch, drag the fader, send a pulse.
Every instrument is a row in one table, and every browser on this page has it on the same commit.
Every browser on this page subscribes to the same rows. A flip, a drag or a press moves the instrument the instant you touch it — the optimistic update — and the commit lands a round trip later, for everyone.
Nuxt, or plain Vue?
Throw the switch. The setup changes; the component does not.
export default defineNuxtConfig({ modules: ['nuxt-convex-module'],})One module. Every composable is auto-imported from here.
const messages = useQuery(api.messages.list)const send = useMutation(api.messages.send)One prompt, or three moves
Paste it into Claude Code, Cursor or Codex. The agent adds the module's skill, installs the module, starts a local Convex deployment and checks the dev server. Or take the three moves by hand.
- 01 · module
One module. Composables, components and server helpers auto-import.
- 02 · convex
The package your functions import from — a peer of the module.
- 03 · runscripts.dev · replaced automatically
npm run dev stays the command you type. Convex starts Nuxt beside it and hands it the deployment URL. Read live data with useQuery.