# postgres-ai/database-lab-engine

DBLab enables 🖖 database branching and ⚡️ thin cloning for any Postgres database and empowers DB testing in CI/CD. This optimizes database-related costs while improving time-to-market and software quality. Follow to stay updated.

Repository: https://github.com/postgres-ai/database-lab-engine
Canonical: https://ross.abutalabs.com/products/database-lab-engine
Homepage: https://postgres.ai/products/how-it-works
Language: Go
License: Apache-2.0
License Family: permissive
Topics: postgresql, database, postgres, cicd, ci, ci-cd, database-migrations, database-migration, database-schema-migration, database-schema, database-schema-evolutions, sql, pgsql, database-branching, cloning, branching
Last push: 2026-08-26T14:21:26+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 71, longevity 100
- inputs: {"age_days": 2276, "days_push": 7, "days_rel": 117, "gap_med": 39.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2697, forks 84 (observed 2026-08-28T04:07:11.222030+00:00)

## What it is
DBLab Engine is an open-source platform that provides instant, full-size thin clones and branching of PostgreSQL databases using ZFS copy-on-write, running on your own infrastructure. It enables fast dev/test/staging environments, CI/CD testing of database migrations, and SQL optimization against production-like data.

## Use cases
- create instant full-size clones of production postgres for testing
- test database migrations in CI/CD pipelines
- set up database branching for preview environments
- optimize slow SQL queries against production-like data
- provide dev and QA teams with isolated database copies cheaply
- mask sensitive data in non-production database clones
- verify AI-generated SQL ideas on real data

## When to choose
- you need many full-size Postgres clones without proportional storage costs
- you want to cover database migrations with CI tests on real data
- you use managed Postgres (RDS, Cloud SQL, Supabase) and need fast clones
- you want everything self-hosted within your own infrastructure

## When to avoid
- you don't run PostgreSQL or a Postgres-compatible database
- you cannot provision a Linux server with a ZFS volume and ~30% extra disk
- you only need small ephemeral test fixtures rather than full-size production data
- you want a fully managed SaaS without operating any infrastructure

## Facets
- artifact type: service
- maturity: active
- function: database, deployment, developer-tools, testing, ci-cd, self-hosted
- domain: databases, developer-tools, self-hosted
- platform: self-hosted, cloud, go
- tags: postgresql, database-branching, thin-cloning, zfs, copy-on-write, database-migrations, preview-environments, data-masking, rds, supabase, devops, automation, linux, docker

## Member repositories
- postgres-ai/database-lab-engine (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:11.222030+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:16:13.374755+00:00, confidence not recorded.
  - readme: https://github.com/postgres-ai/database-lab-engine (fetched 2026-08-28T04:07:11.222030+00:00, sha cb2f434abbbe)
  - homepage: https://postgres.ai/products/how-it-works (fetched 2026-08-29T09:59:26.530912+00:00, sha f16826423d72)
  - site_page: https://postgres.ai/docs/monitoring (fetched 2026-08-29T09:59:26.540022+00:00, sha 25dd67bbe64a)
  - site_page: https://postgres.ai/docs/monitoring/getting-started/quickstart-supabase (fetched 2026-08-29T09:59:26.542507+00:00, sha 0157eb093a14)
  - site_page: https://postgres.ai/docs (fetched 2026-08-29T09:59:26.546279+00:00, sha 880b88f86da4)
  - site_page: https://postgres.ai/docs/tutorials/database-lab-tutorial-amazon-rds (fetched 2026-08-29T09:59:26.547943+00:00, sha 7925a33e311e)
  - site_page: https://postgres.ai/docs/dblab-howtos (fetched 2026-08-29T09:59:26.549933+00:00, sha 04409a3ff8ff)
  - site_page: https://postgres.ai/docs/questions-and-answers (fetched 2026-08-29T09:59:26.551458+00:00, sha 47922c04332e)
  - site_page: https://postgres.ai/docs/database-lab (fetched 2026-08-29T09:59:26.553048+00:00, sha 61f1c6157f55)
  - site_page: https://postgres.ai/pricing (fetched 2026-08-29T09:59:26.544585+00:00, sha a2f0bdb1c778)
- Data as of 2026-08-30T08:39:29.467469+00:00.
