@wervt/nuxt
v0.3.2
Published
Nuxt module for apps hosted on wervt: database, live data, MCP and runtime setup.
Maintainers
Readme
@wervt/nuxt
Nuxt module for apps hosted on wervt: each app runs in its own isolate with its own Postgres schema, Drizzle, and live data through Electric shapes.
npm create wervt@latest my-appor add it to an existing Nuxt app:
export default defineNuxtConfig({
modules: ['@wervt/nuxt'],
})useDb()(server): Drizzle on the app's own schema, with migrations fromdrizzle/.proxyShape()(server) anduseShape()(app): live rows from Postgres via Electric.useWervtUser(): the signed-in wervt user, on the server and in the app.useWervtAccess(event): invites on invite-only apps (wervt access <app> --invite), as the signed-in user.useValidatedBody()/useValidatedQuery()/useValidatedParams(): valibot validation.useWervtTrack(): custom events for wervt's cookieless analytics (page views are counted automatically).wervt: { feedback: { key } }anduseWervtFeedback(): the kontor feedback widget, reports go into a kontor project's triage.defineTool()(server): tools inserver/tools/that browser agents call through WebMCP, and MCP clients (Claude Code, Cursor, …) at/mcp, signed in through wervt's OAuth login.nuxt devstarts against the local wervt stack (Postgres, Electric) and a dev user, and runs thedb:seedtask (seedTable()inserts into empty tables) once on a new database.
Deploy with @wervt/cli: wervt deploy.
Docs: https://wervt.app
