Skip to content
This repository was archived by the owner on Feb 22, 2026. It is now read-only.

rafbgarcia/branchd

Repository files navigation

DEPRECATED: use Pg18 clones https://boringsql.com/posts/instant-database-clones/

Branchd

Branchd is a free PostgreSQL database branching tool that you can self-host anywhere.

  • Great DX - includes an admin web UI and the branchd CLI for managing branches
  • Instant branches - Create full database clones in seconds
  • Storage efficient - Compression and copy-on-write. Perfect for development teams handling large databases
  • Fully isolated - Each branch runs its own PostgreSQL instance on its own data directory with unique credentials
  • Secure - Encryption at rest and in transit

Use Cases

  • Feature Development - Each developer gets their own database branch
  • Pull Request Environments - Automated branch creation for every PR
  • QA Testing - Isolated databases for testing without affecting others
  • Schema Migrations - Test migrations safely before production
  • Data Experiments - Try changes without worrying about rollback

Security

The Cloudformation template and server setup script include:

  • TLS/HTTPS - Self-signed certificates for Postgres connections and https
  • Encryption at rest - Cloudformation template creates an encrypted EBS volume
  • Firewall - UFW enabled
  • Intrusion Detection - fail2ban for PostgreSQL ports
  • Auto-updates - Unattended security updates (VM restarts on Sundays at 3 AM UTC)

Self-hosting

Branchd currently has a Cloudformation template to make it easy for you to self-host on AWS.

License

See LICENSE


Built with ❤️ for developers