talira

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

open sourceApache-2.0self-hostablefree

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

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 APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what RiftDB does.

  1. Neon Serverless Postgres with branching, autoscaling and scale to zero
  2. pgoverlay Instant, writable copy-on-write branches of your real Postgres, self-hosted on plain Docker or Kubernetes. No ZFS required.
  3. DBLab Engine Blazing-fast PostgreSQL cloning and branching for dev/test environments and CI
  4. Xata Open source, cloud native, Postgres platform with copy-on-write branching and scale-to-zero
  5. db-branch Instant database branches for MySQL and PostgreSQL, on your own servers
  6. pgbranch Git branching for your PostgreSQL database

Compare RiftDB with the top 3