---
title: "Open Source | Xata"
description: "Open source PostgreSQL tools by Xata. Zero-downtime migrations with pgroll, CDC replication with pgstream, AI monitoring with Xata Agent, and the full Xata branching engine. All Apache 2.0."
source: "https://xata.io/open-source"
---

# Our open source projects

Xata's core platform is open source with Apache 2.0 license. We believe better products are built when their core is open source.

[Try Xata Cloud](https://console.xata.io/signup)[View on GitHub](https://github.com/xataio/xata)

Why open source

## Open by default

Xata is built on top of open source projects — CloudNativePG, OpenEBS, pgBackRest, Postgres itself. We pay it forward by open sourcing our platform.

Our team has deep roots in open source and distributed database infrastructure. Five years ago we started building toward what Postgres needs for the AI era. Now we're opening the core.

### Vanilla Postgres

No fork, no code changes. Your databases are standard Postgres. All tools created for Postgres just work.

### Community first

pgroll and pgstream started as standalone open source tools. We learn more from the community than we could on our own.

### Open core

All core platform functionality is open source under the Apache 2.0 license. Commercial features include multi-region and multi-cell support.

We contribute & fund

## Open source is infrastructure

We run 100% vanilla Postgres, no fork. That means the open-source ecosystem is our infrastructure too, so we help keep it healthy, with code and with funding.

[Sponsored project](https://github.com/sponsors/dwsteele)

### [pgBackRest](https://github.com/sponsors/dwsteele)

[The open-source standard for Postgres backup, our preferred backup solution, and the backup engine for new branches on Xata. We're a GitHub Sponsor.](https://github.com/sponsors/dwsteele)

[Learn more about pgBackRest](https://github.com/sponsors/dwsteele)

[Upstream contribution](https://xata.io/blog/how-we-added-organization-invites-to-keycloak)

### [Keycloak](https://xata.io/blog/how-we-added-organization-invites-to-keycloak)

[Our authentication layer. We contributed full management for organization invitations, shipped in Keycloak 26.5.0.](https://xata.io/blog/how-we-added-organization-invites-to-keycloak)

[Learn more about Keycloak](https://xata.io/blog/how-we-added-organization-invites-to-keycloak)

[Sponsored integration](https://orm.drizzle.team/docs/connect-xata)

### [Drizzle](https://orm.drizzle.team/docs/connect-xata)

[A TypeScript-first ORM and a popular way to work with Postgres. Because we run vanilla Postgres, it works with Xata out of the box.](https://orm.drizzle.team/docs/connect-xata)

[Learn more about Drizzle](https://orm.drizzle.team/docs/connect-xata)

Get started

## Self host the Xata platform

Clone the repo, run it locally, and create your first branch.

\# Clone and install

$ git clone https://github.com/xataio/xata

$ cd xata

\# Start Kind cluster

$ kind create cluster --wait 10m

\# Deploy via tilt

$ tilt up

\# CLI deploy and authenticate

$ curl -fsSL https://xata.io/install.sh | bash

$ xata auth login --profile local --env local --force

$ xata auth switch local

\# Create a database with the main branch

$ xata project create --name my-project

\# Create a child branch

$ xata branch create

CLAUDE.md

\# Xata OSS — Postgres platform with CoW branching and scale-to-zero You are helping the user to deploy the self-hosted, open-source, version of Xata. Start by cloning https://github.com/xataio/xata and reading the instructions in the README. For a local setup on the user's computer, you will need the following prerequisites: Docker, Kind, Tilt.

Paste this prompt to your AI agent to get started.

Full quickstart and Helm charts are in the README.

[Read the README](https://github.com/xataio/xata)

## Featured projects

Our most popular open source tools for PostgreSQL.

- ### [pgroll](https://github.com/xataio/pgroll)
  [6.6k stars](https://github.com/xataio/pgroll)

  [Zero-downtime, reversible schema migrations for PostgreSQL. Serves multiple schema versions simultaneously using the expand-and-contract pattern.](https://github.com/xataio/pgroll)

  [GoApache-2.0](https://github.com/xataio/pgroll)
- ### [pgstream](https://github.com/xataio/pgstream)
  [1.2k stars](https://github.com/xataio/pgstream)

  [PostgreSQL replication with DDL change tracking, multi-target streaming to Postgres, Elasticsearch, Kafka, and webhooks. Built-in data anonymization.](https://github.com/xataio/pgstream)

  [GoApache-2.0](https://github.com/xataio/pgstream)
- ### [DeltaX](https://github.com/xataio/deltax)
  [293 stars](https://github.com/xataio/deltax)

  [PostgreSQL extension for time-series compression and columnar storage while keeping data in regular Postgres tables.](https://github.com/xataio/deltax)

  [RustApache-2.0](https://github.com/xataio/deltax)

## All repositories

Check out all of our open source projects on GitHub.

[github.com/xataio](https://github.com/xataio)

- ### [screenshot](https://github.com/xataio/screenshot)
  [869 stars](https://github.com/xataio/screenshot)

  [A zero-dependency browser-native way to take screenshots powered by the native web MediaDevices API.](https://github.com/xataio/screenshot)

  [TypeScript](https://github.com/xataio/screenshot)
- ### [pgzx](https://github.com/xataio/pgzx)
  [584 stars](https://github.com/xataio/pgzx)

  [Create PostgreSQL extensions using Zig.](https://github.com/xataio/pgzx)

  [Zig](https://github.com/xataio/pgzx)
- ### [examples](https://github.com/xataio/examples)
  [65 stars](https://github.com/xataio/examples)

  [Your one-stop-shop to try Xata out. From packages to apps, whatever you need to get started.](https://github.com/xataio/examples)

  [TypeScript](https://github.com/xataio/examples)
- ### [cnpg-i-scale-to-zero](https://github.com/xataio/cnpg-i-scale-to-zero)
  [38 stars](https://github.com/xataio/cnpg-i-scale-to-zero)

  [CNPG plugin to manage scale to zero functionality](https://github.com/xataio/cnpg-i-scale-to-zero)

  [Go](https://github.com/xataio/cnpg-i-scale-to-zero)
- ### [learn-postgres](https://github.com/xataio/learn-postgres)
  [12 stars](https://github.com/xataio/learn-postgres)

  [MDX](https://github.com/xataio/learn-postgres)
- ### [cli](https://github.com/xataio/cli)
  [8 stars](https://github.com/xataio/cli)

  [Xata CLI](https://github.com/xataio/cli)

  [TypeScript](https://github.com/xataio/cli)
- ### [pgdistbench](https://github.com/xataio/pgdistbench)
  [8 stars](https://github.com/xataio/pgdistbench)

  [Go](https://github.com/xataio/pgdistbench)

## Branch your database in seconds

[Get in touch](https://cal.com/team/xata/xata-sales)[Get started](https://console.xata.io/signup)
