DB Composite

Database adapter that routes reads and writes between a local and a remote database

Community 0 2/wk MIT v0.1.0

Installation

pnpm add @dotdo/db-composite

About

DB Composite is a database adapter that sends reads and writes to a local database or a remote one, and keeps the two in step. Fast reads can come from local storage such as SQLite or Cloudflare D1, while writes reach a durable remote database such as Postgres or ClickHouse.

Changes are synced to the remote side in the background, with retries that back off after failures. Routing is set for the whole site and can be overridden per collection or global, so drafts can stay local while payments are written to both sides at once.

Package info

Package name
@dotdo/db-composite
Latest version
0.1.0
Unpacked size
420 kB
License
MIT
Weekly downloads
2
Last publish
Dec 18, 2025

More from dot-do

View profile

Stores Payload data in ClickHouse, with edge-ready HTTP access and an embedded local mode

Payload admin preset for managing AI functions, workflows, models and evals

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