D1 SQLite Adapter

Stores Payload data in Cloudflare D1 SQLite databases from Workers

Official 45,915 48.3k/wk MIT v3.94.0

Installation

pnpm add @payloadcms/db-d1-sqlite

About

This adapter lets Payload read and write its collections and globals to a Cloudflare D1 database, which is SQLite running at the edge. It is meant for Payload projects deployed to Cloudflare Workers, where D1 is the natural place for relational data. Your content keeps the same schema, queries and migrations workflow that other Payload SQLite setups use, so switching a project to D1 does not change how you define collections or fields. The adapter is maintained by the Payload team as the official D1 option.

Package info

Package name
@payloadcms/db-d1-sqlite
Latest version
3.94.0
Unpacked size
60 kB
License
MIT
Weekly downloads
48.3k
Last publish
Nov 17, 2026

More from payloadcms

View profile

Stores Payload upload files in Cloudflare R2 buckets instead of local disk

Adds a parent field and breadcrumbs to collections so documents can nest inside each other

Sends Payload server errors and selected HTTP errors to Sentry with user context

Adds an SEO tab with meta title, description, image and search preview to collections

Stores collection uploads in Vercel Blob Storage instead of local disk

Lets one Payload admin panel manage content for many separate tenants

Similar adapters

More in Database

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

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 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