Database adapter that runs Payload on SurrealDB through its PostgreSQL-compatible SQL interface
PGlite Database Adapter
Embedded PGlite Postgres database for Payload, with no separate database server
Installation
pnpm add payload-db-pglite About
PGlite Database Adapter lets a Payload project store its data in PGlite, a WebAssembly build of Postgres that runs inside the Node.js process. No database server needs to be run or provisioned. Data can live in a folder on disk or in memory for tests.
It suits local development, automated tests, and small serverless or edge deployments. Schema changes can be pushed automatically during development or handled with migrations in production.
Transactions are off by default because PGlite uses a single connection, and only one process can open a data folder at a time.
Package info
- Package name
payload-db-pglite- Latest version
0.1.2- Unpacked size
- 20 kB
- License
- MIT
- Weekly downloads
- 30
- Last publish
- Feb 19, 2026
Similar adapters
More in DatabaseStores Payload data in a Postgres database, with migrations and read replica support
Vercel Postgres database adapter that stores Payload collections and globals in Postgres
Stores Payload data in Cloudflare D1 SQLite databases from Workers
Stores Payload collections and globals in a MongoDB database
Official SQLite database adapter that stores Payload collections and globals in SQLite