Database adapter that runs Payload on SurrealDB through its PostgreSQL-compatible SQL interface
Convex Adapter
Stores Payload collections and globals in Convex as the database, with real-time sync
Installation
pnpm add payload-convex-adapter About
Convex Adapter lets a Payload project keep its data in Convex, the hosted real-time database, instead of a self-managed SQL or Mongo server. Payload reads and writes go through Convex queries and mutations, so editors and front ends see changes as they happen. Each Payload instance gets its own table prefix, so several projects can share one Convex deployment without collisions.
The adapter covers the full Payload database interface, including transactions tracked per session and where-filters on collections. It is a good fit for teams that already run on Convex and want one hosted backend for content and app data. Projects that need to call Convex functions from the adapter must expose the adapter functions in their Convex folder and point the adapter at their deployment.
Package info
- Package name
payload-convex-adapter- Latest version
1.0.3- Unpacked size
- 665 kB
- License
- MIT
- Weekly downloads
- 7
- Last publish
- Feb 3, 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