Xata Documentation

Xata is a modern PostgreSQL platform designed for developers who want to build faster and ship with confidence. Our platform is built to support your production use cases as well as staging environments and developer workflows with features like instant branching, zero-downtime schema changes, and built-in data anonymization.

Here's a quick introductary video to learn more:

Introduction to Xata

Why Xata?

FeatureDescriptionBenefitLearn More
🚀 Instant BranchingCreate database branches in seconds, not minutesDevelop and test with production-like data safelyBranching Guide →
⚡ Zero-Downtime Schema ChangesModify your database schema without service interruptionDeploy schema changes with confidenceSchema Changes →
🔒 Built-in Data AnonymizationAutomatically anonymize sensitive data for developmentUse real data safely in non-production environmentsAnonymization →
🏗️ Deployment FlexibilityChoose between SaaS or bring-your-own-cloud (BYOC)Deploy where you need - managed service or your infrastructureDeployment →

Interested in how we compare against other Postgres solutions out there? Check out this comparison blog series for more details.

Get Started

Get up and running with Xata in minutes:

  1. Create your first project - Set up a Xata account and create your first database
  2. Choose your framework - Connect your favorite language or framework
Framework/ORMQuickstartDescription
Next.jsGet Started →Full-stack React applications
DrizzleGet Started →TypeScript ORM with type safety
SQLAlchemyGet Started →Python SQL toolkit and ORM
DjangoGet Started →Python web framework

View all quickstarts →

Tutorials & Guides

TutorialDescription
Set up staging replicaCreate a staging environment with production data
Migrate to XataMove your existing database to Xata
Schema changes workflowLearn best practices for schema evolution

Migration Guides

Migrate your existing PostgreSQL databases to Xata using xata clone:

ProviderMigration GuideDescription
AWS RDS & AuroraMigrate →Amazon's managed PostgreSQL services
GCP Cloud SQLMigrate →Google Cloud's managed PostgreSQL
Azure DatabaseMigrate →Microsoft's managed PostgreSQL service
NeonMigrate →Serverless PostgreSQL with branching
SupabaseMigrate →Open source Firebase alternative

View all migration guides →

Tools & Integrations

Command Line Interface

Manage your Xata databases directly from the terminal:

# Install Xata CLI
npm install -g @xata.io/cli

# Authenticate and initialize
xata auth
xata init

# Create and manage branches
xata branch create feature-branch
xata branch checkout main

View all CLI commands →

Automation & CI/CD

Integrate Xata into your development workflow:

View all automation workflows →

REST API

Programmatically manage your Xata resources:

Get Help


Built with ❤️ by the Xata team