Postgres in your Nuxt app, no server to run.
Nuxt PGlite wires PGlite, Postgres compiled to WebAssembly, into Nuxt: an instance for your server routes, the same database over a Postgres URL while nuxt dev runs, and an in-browser database with live queries.
nuxt.config.ts
export default defineNuxtConfig({ modules: ['nuxt-pglite'], pglite: { socket: { port: 5433 }, // a Postgres URL while `nuxt dev` runs client: { enabled: true }, }, })
Three pieces, use any of them
And what goes with them