# RiftDB

> Instant, copy-on-write database branches for Postgres. Self-hosted. Every PR gets its own database.

Source: https://talira.ai/catalog/riftdb-dw0e3yr3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Infrastructure
- Categories: [databases / branching](https://talira.ai/categories/databases/branching), [developer tools / testing](https://talira.ai/categories/developer-tools/testing)
- Platforms: linux, macos, docker, cli
- Licence: Apache-2.0
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- API: yes

rift (RiftDB) is a Postgres proxy that aims to branch a database at the row level: reads fall through to the parent branch, writes go to an overlay, and a branch stores only the rows it changes, so applications connect to a branch as a normal Postgres database on port 6432. It's configured with a YAML file, environment variables or flags and ships as a CLI, a [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image and an npm package. Its README marks it as early development and not ready for production, and lists its features (branching, copy-on-write, schema tracking, diffs, CI integration, dashboard) as not done yet.

## Links

- GitHub: https://github.com/riftdata/rift

## Problems it solves

- branch a huge Postgres database in milliseconds, storing only the rows that change
- every pull request should get its own database without copying production
- Neon-style branching without a SaaS, in front of the Postgres we already run
- isolated test databases without a shared staging database
- a proxy that gives each branch its own database name on one port

## Features

- Postgres wire-protocol proxy
- HTTP API
- Docker Compose development setup

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.16 out of 1.
Signals: maintenance 0.27, adoption 0.06, momentum 0.01, community 0.12, backing 0.00, extensibility 0.40.

- latest release v0.1.51 9 months ago
- 1 GitHub stars
- 1 contributors

Warnings:

- last commit 7 months ago
- one or two maintainers (bus factor)

## Alternatives

- [Neon](https://talira.ai/catalog/neon-62ajbpbj.md): Serverless Postgres with branching, autoscaling and scale to zero
- [pgoverlay](https://talira.ai/catalog/pgoverlay-8z094v1s.md): Instant, writable copy-on-write branches of your real Postgres, self-hosted on plain Docker or Kubernetes. No ZFS required.
- [DBLab Engine](https://talira.ai/catalog/dblab-engine-egf8da3j.md): Blazing-fast PostgreSQL cloning and branching for dev/test environments and CI
- [Xata](https://talira.ai/catalog/xata-gzxahrpc.md): Open source, cloud native, Postgres platform with copy-on-write branching and scale-to-zero
- [db-branch](https://talira.ai/catalog/db-branch-590ypapk.md): Instant database branches for MySQL and PostgreSQL, on your own servers
- [pgbranch](https://talira.ai/catalog/pgbranch-jr3991d7.md): Git branching for your PostgreSQL database
