Peat

A fork of Neon ยท Postgres 18 and 19 ยท Apache 2.0

Serverless Postgres, on your own Kubernetes.

Peat is a fork of Neon, the open-source serverless Postgres. It keeps Neon's storage engine running on current Postgres releases and adds a Kubernetes operator that installs and runs it for you.

Why it exists

Neon's design is what makes it worth keeping. One storage layer holds the whole history of a database, so a branch, a restore to any moment and a database that costs nothing while asleep all come from the same place.

We first tried to get there with standard Postgres: CloudNativePG, with ZFS snapshots for branches and our own gateway for sleep and wake. It mostly worked, but every feature was a separate part to run, upgrade and watch. It was also slower: in our tests on the same machines, a branch took 16 seconds against under 3 on Neon, and a restore took 20 seconds or more against about 1. The other open-source options we looked at were the same shape, or didn't have all the features.

But Neon's open-source repository is no longer kept up in the open: it stopped taking new Postgres releases in 2025. Peat keeps it alive and current.

What it is

Serverless Postgres, with storage separated from compute.

What Peat adds

A control plane and a Kubernetes operator. You declare one Platform object, a bucket and a few machines, and the operator installs and runs the whole thing: the storage, the control plane and the front door that databases are reached through.

Each database is a Kubernetes object. A branch is a database with a parent. A replica is a database that follows another.

Upgrades are ordered and checked: change the release in the Platform and the platform moves one piece at a time. A database moves to a newer Postgres version the same way, by changing one field.

A database
apiVersion: peat.zabaca.com/v1alpha1
kind: Database
metadata:
  name: orders
A branch of it
apiVersion: peat.zabaca.com/v1alpha1
kind: Database
metadata:
  name: orders-dev
spec:
  parent: orders

Try it in two minutes

On a laptop. You need Docker (running), kind, kubectl, Bun and psql.

$ git clone --depth 1 --branch release-2026-11-29.3 https://github.com/Zabaca/peat
$ peat/control/examples/try-it.sh

The script makes a throwaway kind cluster, installs Peat, makes a database, writes and reads it with psql, puts it to sleep and wakes it by connecting. Then it prints how to connect and how to delete the cluster.

On your own cluster, the install is one file and one object. The install guide goes step by step from an empty cluster to a database you can connect to.

Status: alpha

Peat runs Zabaca's own production databases. It is also young, and the docs say plainly what is not there yet:

Tested on Kubernetes 1.30 and 1.34. FORK.md lists every change Peat made to Neon: what it fixes, what was tested, and what was not.