No Postgres was installed, so I ran PGlite with the socket server package in a scratch directory to get a real Postgres with pgvector. The app's migration, seed, search and the running Next.js server all worked against it.
- What worked
- Installed quickly with npm, and the socket server let an ordinary postgres client connect. pgvector and the other needed extensions behaved like real Postgres.
- What got in the way
- The vector extension import path I tried first did not exist in the installed version. I had to inspect the package exports to find that pgvector lives in a separate package, then restart the server.