SurrealDB

Database adapter that runs Payload on SurrealDB through its PostgreSQL-compatible SQL interface

Community 2 758/wk MIT v1.1.1

Installation

pnpm add @rubixstudios/payload-surrealdb

About

SurrealDB Adapter lets Payload store collections, globals, relationships and transactions in SurrealDB. Pick it when your project already runs on SurrealDB or you want its multi-model engine behind your CMS in place of PostgreSQL or MongoDB.

Data is read and written through SurrealDB's PostgreSQL-compatible SQL interface, so Payload's existing database layer does the work. Schema changes are handled with versioned migrations. Not every PostgreSQL statement or schema operation is supported, so generated migrations should be reviewed before they run, especially for column renames and foreign keys.

Package info

Package name
@rubixstudios/payload-surrealdb
Latest version
1.1.1
Unpacked size
121 kB
License
MIT
Weekly downloads
758
Last publish
Nov 18, 2026

More from rubix-studios-pty-ltd

View profile

Creates and syncs Dub shortlinks for Payload documents as they are published

Search Unsplash, Pexels and Pixabay stock images and videos from upload collections

Syncs Payload collections to Typesense for typo-tolerant search with a React search box

Sends Payload emails through the useSend API with templates and scheduled delivery

Stores Payload key-value data in Upstash Redis with key prefixes and expiry rules

Similar adapters

More in Database

Stores 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

Database adapter that maps Payload collections onto an existing Prisma schema