[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-812":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},812,"xata","xataio\u002Fxata","xataio","Open source, cloud native, Postgres platform with copy-on-write branching and scale-to-zero","https:\u002F\u002Fxata.io",null,"Go",876,42,5,1,0,7,12,53,21,74.2,"Apache License 2.0",false,"main",[26,27,28,29],"branching","kubernetes","postgresql","scale-to-zero","2026-06-12 04:00:05","\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fxata.io\u002Fimages\u002Fxata-brand-assets\u002Flogo-wordmark\u002Flogo-wordmark-dark-mode.svg\">\n    \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fxata.io\u002Fimages\u002Fxata-brand-assets\u002Flogo-wordmark\u002Flogo-wordmark-light-mode.svg\">\n    \u003Cimg width=\"400\" alt=\"Xata\" src=\"https:\u002F\u002Fxata.io\u002Fimages\u002Fxata-brand-assets\u002Flogo-wordmark\u002Flogo-wordmark-dark-mode.svg\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fxataio\u002Fxata\u002Fblob\u002Fmain\u002FLICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache_2.0-green\" alt=\"License - Apache 2.0\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"https:\u002F\u002Ftwitter.com\u002Fxata\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F@xata-6c47ff?label=Follow&logo=x\" alt=\"X (formerly Twitter) Follow\" \u002F> \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fbsky.app\u002Fprofile\u002Fxata.io\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F@xata-6c47ff?label=Follow&logo=bluesky\" alt=\"Bluesky Follow\" \u002F> \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002F@xataio\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F@xataio-6c47ff?label=Youtube&logo=youtube\" alt=\"Youtube Subscribe\" \u002F> \u003C\u002Fa>\n\u003C\u002Fp>\n\n# Xata - Open-source Postgres platform with CoW branching\n\nXata is a pure open-source, cloud-native, platform for self-hosting a large number of Postgres instances on top of Kubernetes, offering the following functionality (and more) built in:\n\n- Fast branching using Copy-on-Write at the storage level. You can “copy” TB of data in a matter of seconds\n- Scale-to-zero functionality (remove compute instance on inactivity, add it back automatically on connections)\n- Auto-scaling of the compute nodes, bin-packing them for cost efficiency\n- High-availability \u002F Read-replicas with automatic failover\n- Upgrades, configuration edits, scale up\u002Fdown with minimal downtime via switchover\n- Separation of storage and compute as well as local storage if preferred\n- PITR backups to object storage\n- Serverless driver (SQL over HTTP\u002Fwebsockets)\n- REST APIs and CLI for managing all “control-plane” operations, authenticated with API keys. API Keys support granular RBAC.\n\nIt is stable, actively developed, and used in production at large scale already. It is powering the [Xata Cloud](https:\u002F\u002Fxata.io) service, which we recommend if you prefer a managed service.\n\n## Use cases\n\nThere are two major use cases for self-hosting the Xata open source platform:\n\n- create your own internal Postgres-as-a-Service for your company. In this case Xata provides a more opinionated and more feature-rich solution than using a K8s operator directly.\n- create preview, testing, and dev environments. By taking advantage of the copy-on-write storage and automatic scale-to-zero functionality, you can create “copies” of Postgres instances with TB of data  in a matter of seconds and with incredible cost efficiency.\n\n**When NOT to use Xata open source**\n\n- If you just need a single Postgres instance. Xata is running on top of a Kubernetes cluster and would be overkill in that case. You can either simply self-host Postgres on your own, or use a managed Postgres service, like Xata Cloud.\n- If you want to create a public Postgres-as-a-Service to offer to end customers. While the license allows this use case (nor do we have any intention to change it in the future), we don’t recommend using it like this because we have kept closed-source some security features related to adversarial multi-tenancy. If you’d like to build a self-hosted PGaaS to offer to end customers, please contact us, likely the Xata BYOC offering is right for you.\n\n\u003Cp align=\"center\">\n    \u003Cimg src=\"images\u002Fxata-oss-diagram.png\" alt=\"Xata OSS architecture diagram\" width=\"750\">\n\u003C\u002Fp>\n\nXata is built on top of two key open-source cloud-native technologies:\n\n- [CloudNativePG](https:\u002F\u002Fgithub.com\u002Fcloudnative-pg\u002Fcloudnative-pg) is a Postgres operator for Kubernetes. It handles most of the typical production concerns: high-availability, failover\u002Fswitchover, upgrades, connection pooling, backups, etc.\n- [OpenEBS](https:\u002F\u002Fgithub.com\u002Fopenebs\u002Fopenebs), is a a cloud native storage project, offering both local storage (i.e. local NVMe disks) as well as a replicated storage engine (Mayastor - NVMe-of).\n\nOn top of these two, the Xata platform adds:\n\n- **SQL gateway**, responsible for routing, ip filtering, waking up scaled-to-zero clusters, serving the serverless driver over HTTP\u002Fwebsockets, etc.\n- **Branch operator** managing all resources related to a branch.\n- **clusters** and **projects** services which form the control-plane and serve the REST APIs.\n- **Auth service**, based on Keycloak.\n- **CLI** that makes use of the REST API.\n- **Scale-to-zero CNPG plugin** for automatically hibernating branches on inactivity.\n\nFor more details about the Xata architecture, see [this blog post](https:\u002F\u002Fxata.io\u002Fblog\u002Fopen-source-postgres-branching-copy-on-write).\n\n## Quick start guide & development\n\nTo run locally, you need the following prerequisites:\n- Docker\n- [Kind](https:\u002F\u002Fgithub.com\u002Fkubernetes-sigs\u002Fkind)\n- [Tilt](https:\u002F\u002Fgithub.com\u002Ftilt-dev\u002Ftilt)\n\n**Step 1:** create kind cluster\n\n```bash\nkind create cluster --wait 10m\n```\n\n**Step 2:** deploy via tilt\n\n```bash\ntilt up\n```\n\nWait until all resources are up. This might take a long time when you run it for the first time, because it needs to download all the required images. Next time you start it, it should be much quicker.\n\n**Step 3:** install and authenticate the xata CLI:\n\n```bash\n# Install CLI\ncurl -fsSL https:\u002F\u002Fxata.io\u002Finstall.sh | bash\n\n# Authenticate to a local profile. Sign in with email dev@xata.tech and password Xata1234!\nxata auth login --profile local --env local --force\n\n# Set the profile\nxata auth switch local\n```\n\n**Step 4:** Create the first project and branch\n\n```bash\n# Create project and main branch\n$ xata project create --name my-project\n\n# Create a child branch\n$ xata branch create\n```\n\n## License\n\nApache 2\n\n## Getting help\n\nIf you are considering adopting Xata in your organization, we'd love to hear from you and help you. Please open either a [GitHub discussion](https:\u002F\u002Fgithub.com\u002Fxataio\u002Fxata\u002Fdiscussions) or contact us by [email](mailto:info@xata.io).\n","Xata 是一个开源的、云原生的 Postgres 平台，支持基于存储级别的写时复制（Copy-on-Write）分支和自动缩容至零。其核心功能包括快速的数据分支、自动扩缩容、高可用性及读副本自动故障转移等，这些特性使得 Xata 在处理大规模数据集时依然能保持高效与低成本。此外，Xata 提供了通过 REST API 和命令行工具管理所有控制平面操作的能力，并支持细粒度的角色访问控制。适用于需要为公司内部构建 Postgres-as-a-Service 服务或创建预览、测试、开发环境的场景，特别是在追求成本效益和快速部署的情况下。",2,"2026-06-11 02:39:28","CREATED_QUERY"]