# xtdb/xtdb

An immutable SQL database for application development, time-travel reporting and data compliance. Developed by @juxt

Repository: https://github.com/xtdb/xtdb
Canonical: https://ross.abutalabs.com/products/xtdb
Homepage: https://xtdb.com
Language: Clojure
License: MPL-2.0
License Family: copyleft
Topics: database, bitemporal, temporal, sql, immutable, dbms
Last push: 2026-08-26T17:31:07+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3089, "days_push": 7, "days_rel": 275, "gap_med": 125.0, "n_releases_24m": 3}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3045, forks 192 (observed 2026-08-28T04:07:39.500920+00:00)

## What it is
XTDB is an open-source (MPL-2.0) immutable, bitemporal SQL database built on Apache Arrow and S3-compatible storage. It automatically retains full data history, supports SQL:2011 temporal queries, and connects via Postgres wire-compatible and FlightSQL interfaces.

## Use cases
- query the past state of my data with time travel
- build an auditable system of record without handcrafted audit tables
- run bitemporal SQL reporting with backdated corrections
- store immutable records for data compliance
- connect a Postgres client to a temporal database
- report on business state as-of a past timestamp

## When to choose
- you need automatic full history retention and as-of queries
- compliance or audit requires bitemporal reporting
- you want Postgres-compatible SQL over immutable, cloud-native storage

## When to avoid
- you need heavy mutable OLTP workloads with frequent updates
- you require a mature ecosystem of tooling and extensions like Postgres
- you need low-latency transactional writes at very high throughput

## Facets
- artifact type: application
- maturity: active
- function: database, search-engine
- domain: databases, analytics, developer-tools
- platform: jvm, self-hosted, cloud
- tags: sql, bitemporal, temporal-database, immutable-database, time-travel, audit, clojure, apache-arrow, postgres-wire-compatible, flightsql, docker

## Member repositories
- xtdb/xtdb (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:39.500920+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:28:58.129435+00:00, confidence not recorded.
  - homepage: https://xtdb.com (fetched 2026-08-29T09:44:10.717994+00:00, sha a3cd462f4146)
  - site_page: https://docs.xtdb.com (fetched 2026-08-29T09:44:10.727280+00:00, sha 27eaa6220992)
- Data as of 2026-08-30T08:39:29.467469+00:00.
