# documentdb/documentdb

MongoDB-compatible database engine for cloud-native and open-source workloads. Built for scalability, performance, and developer productivity.

Repository: https://github.com/documentdb/documentdb
Canonical: https://ross.abutalabs.com/products/documentdb
Homepage: https://documentdb.io/
Language: C
License: MIT
License Family: permissive
Last push: 2026-08-22T00:58:47+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 87, longevity 42
- inputs: {"age_days": 588, "days_push": 12, "days_rel": 9, "gap_med": 37, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3431, forks 253 (observed 2026-08-28T04:08:04.036934+00:00)

## What it is
DocumentDB is an open-source, MongoDB-compatible document database engine built as PostgreSQL extensions, providing native BSON support, CRUD APIs, and a wire-protocol gateway. It supports advanced indexing, full-text and geospatial queries, and vector search via pgvector, deployable via Docker, Linux packages, or a Kubernetes operator.

## Use cases
- run a MongoDB-compatible database on PostgreSQL
- self-host an open-source alternative to MongoDB Atlas
- store and query BSON documents with SQL available when needed
- add vector search and embeddings to a document database
- migrate MongoDB workloads off proprietary licensing
- deploy a document database cluster on Kubernetes
- use MongoDB drivers and mongosh with a Postgres-backed backend

## When to choose
- you want MongoDB API compatibility with an MIT license and full source access
- you already operate PostgreSQL and want document workloads on the same infrastructure
- you need on-premise or self-hosted control for compliance or cost reasons
- you want to combine document CRUD with SQL, geospatial, and vector search in one engine

## When to avoid
- you need 100% parity with the latest MongoDB features and version-specific behaviors
- you want a fully managed hosted service without operating your own database
- your stack depends on MongoDB-specific ecosystem tooling like Atlas features, Atlas Search, or Change Streams guarantees
- you need non-Linux server deployments, as production packages target Linux

## Facets
- artifact type: service
- maturity: active
- function: database, vector-database, search-engine, self-hosted
- domain: databases, backend, self-hosted, cloud-computing
- platform: self-hosted, cloud
- tags: mongodb-compatible, postgresql-extension, bson, document-database, pgvector, wire-protocol, nosql, linux, docker, kubernetes

## Member repositories
- documentdb/documentdb (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:04.036934+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-29T18:37:46.478863+00:00, confidence not recorded.
  - readme: https://github.com/documentdb/documentdb (fetched 2026-08-28T04:08:04.036934+00:00, sha e53bd8923626)
  - homepage: https://documentdb.io/ (fetched 2026-08-29T09:31:58.439938+00:00, sha 84454c2bdcd5)
  - site_page: https://documentdb.io/docs (fetched 2026-08-29T09:31:58.449320+00:00, sha 84c803c8f65f)
  - site_page: https://documentdb.io/docs/getting-started (fetched 2026-08-29T09:31:58.451319+00:00, sha b92c3d759ba8)
  - site_page: https://documentdb.io/docs/getting-started/docker (fetched 2026-08-29T09:31:58.453310+00:00, sha c6bb4343b338)
  - site_page: https://documentdb.io/documentdb-kubernetes-operator/latest/preview/getting-started/quickstart-kind (fetched 2026-08-29T09:31:58.455018+00:00, sha 375534daae2a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
