PromptZone - AI Prompts, Guides and Tools for Builders

Cover image for Peat: A Fully Open-Source Fork of Neon's Serverless Postgres
Santiago Walsh
Santiago Walsh

Posted on

Peat: A Fully Open-Source Fork of Neon's Serverless Postgres

Developer Zabaca released Peat this week, a fork of Neon's serverless Postgres database that updates the stack to Postgres 18 and 19 and strips out proprietary components — first showcased on Hacker News with 13 points of community discussion.

Available: Fly.io, Railway | License: Apache 2.0 / Postgres License

What Peat Is and How It Works

Peat is a direct fork of the open-source components of Neon, the serverless, compute-storage separated Postgres platform. Its primary technical divergence is upgrading the underlying database engine from Postgres 14/15 to the latest Postgres 18 and 19 releases. This gives developers immediate access to newer SQL features, performance improvements, and official PostgreSQL extensions that have been released in the last three years.

The project surgically removes Neon's closed-source control plane — the orchestration layer that manages compute nodes and storage. In its place, Peat relies on a simplified, open-source configuration designed for deployment on generic infrastructure platforms. This makes it a self-managed, open-core alternative to the fully managed Neon service. The core serverless architecture remains: storage is handled by a scalable Pageserver, while compute is managed in ephemeral Safekeepers, allowing for instant scaling to zero and branchable data.

Peat: A Fully Open-Source Fork of Neon's Serverless Postgres

Key Specifications and Compatibility

The source material confirms Peat is built from Neon's open-source commit d67e14c. It supports the two most recent major PostgreSQL versions, which is a significant leap from the older versions often used in managed services due to stability testing cycles.

  • Postgres 18: Released October 2024, includes performance gains for VACUUM, new monitoring functions, and logical replication improvements.
  • Postgres 19 (Development): Incorporates ongoing development work, offering a preview of future stable features.

Early deployment guides confirm compatibility with platforms offering persistent storage and network access. The project is not a drop-in replacement for the Neon API but provides the core database engine.

Get the daily AI digest
One email each morning — what shipped in AI, and the prompts we tested. No filler.

How to Deploy Peat

Deploying Peat requires managing your own infrastructure, as it is not a hosted service. The primary method is via a Docker container to a platform like Fly.io or Railway.

"Step-by-Step Deployment on Fly.io"
  1. Clone and configure: git clone https://github.com/Zabaca/peat && cd peat. Edit the fly.toml file to set your app name and preferred region.
  2. Set a Superuser Password: Use fly secrets set PG_PASSWORD=your_secure_password.
  3. Deploy: Run fly deploy. This launches the Pageserver, Safekeeper, and compute node.
  4. Connect: Upon completion, Fly.io will output a connection string. Use psql or your preferred database client with the provided credentials.
  5. Create Branches: Use the Peat CLI (built from the peat binary in the repo) to manage branches: peat branch create mybranch. View the full Peat README for detailed instructions.

Pros and Cons

Advantages:

  • Newer Postgres Versions: Immediate access to Postgres 18 and 19 features and extensions, a clear edge over services stuck on v14/15.
  • Fully Open-Source: No proprietary control plane; the entire stack can be audited, modified, and self-hosted without vendor lock-in.
  • Serverless Foundation: Inherits Neon's core benefits: autoscaling to zero, instant branching, and separation of storage and compute.

Drawbacks:

  • Self-Managed Complexity: You are responsible for deployment, monitoring, backups, and scaling the infrastructure. This adds operational overhead.
  • Missing Managed Features: Lacks the Neon console, automated backups, point-in-time recovery UI, and the proprietary scale-to-zero optimizations.
  • Early-Stage Risk: As a new fork with limited community testing, it may have undiscovered stability issues compared to the battle-tested Neon core.

How Peat Compares to Serverless Postgres Alternatives

Peat occupies a unique niche between fully managed services and raw, manual Postgres installations. It offers the modern serverless architecture of Neon but shifts the management burden to the user.

Feature Peat Neon Supabase AWS Aurora Serverless v2
Postgres Version 18, 19 14, 15 14, 15 13, 14, 15
License Model Fully Open-Source Open-Source Core Open-Source Core Proprietary
Management Self-Managed Fully Managed Fully Managed Fully Managed
Branching Yes (CLI) Yes (UI/API) No No
Scale-to-Zero Yes Yes Yes No (min. capacity)
Pricing Infrastructure Cost Usage-Based Tier Usage-Based Tier Usage-Based Tier

Bottom line: Peat trades managed convenience for newer Postgres versions and full open-source control.

Who Should Use Peat

Peat is a specialized tool for specific developer profiles. It is most useful for teams that need cutting-edge Postgres features for development or testing and have the DevOps capacity to manage the underlying platform. AI and machine learning practitioners prototyping applications that rely on newer SQL or extension capabilities will find immediate value.

Consider an alternative if you are a solo developer, a startup needing hands-off operation, or require the robust security, compliance, and support guarantees of a major cloud provider. For most projects, the operational simplicity of Neon or Supabase outweighs the version advantage of Peat.

The Bottom Line

Peat successfully extracts the innovative serverless architecture from Neon and pairs it with the latest Postgres engines, fulfilling a specific demand from developers frustrated by the version lag in managed services. It is not a general-purpose Neon replacement but a powerful open-source base for building custom, modern Postgres deployments.

The project's success will depend on whether a community forms to maintain the stripped-down control plane and provide stability patches. For now, it represents the most straightforward path to running a branchable, serverless Postgres 18/19 instance on your own terms.

The emergence of forks like Peat signals growing developer insistence on both architectural innovation and software liberty, potentially pushing more managed services to accelerate their support for recent open-source releases.

Get the daily AI digest

One email each morning — what shipped in AI, and the prompts we tested. No filler.

Top comments (0)