The db-branch project has released a self-hosted beta tool that creates copy-on-write branches of MySQL and PostgreSQL databases from ZFS clones, introducing it in a Show HN post on Hacker News on November 15. Its first public build, 0.2.0, shipped on November 13, and version 0.2.5, tagged on November 15, is the current release.

    A base is a ZFS dataset holding a loaded database, and each branch is a clone of one of its snapshots, so nothing is copied at creation. Every branch runs its own database server on a separate port. Optional ProxySQL routing sends clients to a branch by user name or query comment, and several nodes can form a Raft cluster that shares bases, branches, settings and users.

    On the maintainers’ own three-node test cluster, a PostgreSQL branch was ready in about 0.5 s and a MySQL branch in about 3 s, according to the project’s README, which gives no hardware or workload details.

    db-branch Beta Creates MySQL And PostgreSQL Branches In Seconds Using ZFS Clones

    Branches can be reset to their creation state, deleted automatically with --ttl, checkpointed and restored, or upgraded one at a time, with a checkpoint saved first and a rollback if the upgrade fails. Engine runtimes install per version and run side by side; the examples use MySQL 8.4.13 and PostgreSQL 18.6. Control goes through a CLI, a REST API defined in OpenAPI, a web console and an MCP server for LLM agents such as Claude Code, which reached 2.1.325 this month. Release 0.2.4 added pause and resume, which stop a branch’s server but keep its data, plus a SQL runner on branch pages. In 0.2.5, MySQL 8.0, 8.4 and 9.6 install on arm64 hosts, including Graviton.

    The agent is a single Go binary with an embedded React and TypeScript console, per a DeepWiki index of the repository. It installs from the project’s APT repository on Ubuntu 24.04 LTS or 26.04 LTS with a ZFS pool, and there is no hosted version. Mac and Windows users can try it in a Multipass VM. The core is Apache-2.0. The proxysql, greenmask and anon modules are free, while auth/SSO, audit, history, diff and FSx storage are closed-source paid modules unlocked with a monthly or yearly license key. APIs and CLI details may change before 1.0.

    Branches built for agents

    The MCP server sits in the Apache-2.0 core next to the CLI and REST API rather than in a paid module. An agent therefore gets the same create, reset, pause and delete controls as a developer, and with TTL expiry, any branch it abandons gets cleaned up.

    Sarah is a front-end developer who builds websites and web applications. At Webcode Tools, she develops the site’s CSS and HTML generators and writes the tutorials that accompany them. Her work centers on clean, accessible markup and modern CSS that behaves consistently across browsers.