Open source document database

DocumentDB

Built for document workloads. Powered by PostgreSQL.

Open source and MIT licensed, with native BSON, advanced indexing, and vector search on PostgreSQL.

Built on PostgreSQLNative BSONMIT licensedRuns locally with Docker
Quick start

Run locally with Docker

Start DocumentDB Local with Docker, then connect on port 10260.

Docker
docker run -dt --name documentdb \
  -p 10260:10260 \
  ghcr.io/documentdb/documentdb/documentdb-local:latest \
  --username <YOUR_USERNAME> \
  --password <YOUR_PASSWORD>
  1. 01

    Run DocumentDB Local with Docker.

  2. 02

    Connect on port 10260 with your app, shell, or client.

  3. 03

    Continue with the docs or prebuilt packages.

Capabilities

Core features for document workloads

From CRUD to vector search, all on PostgreSQL.

Foundation

Document + SQL

Native BSON support with full PostgreSQL compatibility when you need advanced SQL.

Native BSONAdvanced SQL

Indexing

Rich indexing

Single-field, multi-key, compound, text, and geospatial indexes, including nested fields.

Nested fieldsText + geo

AI

Vector search

Embeddings and similarity search powered by pgvector.

EmbeddingsSimilarity

Open source

Open and secure

MIT licensed with SCRAM authentication and a lightweight local runtime for development and testing.

MIT licensedSCRAM auth

Why DocumentDB

Document flexibility meets PostgreSQL confidence

Open-source control with the tools you already trust.

Native BSON

Built for document flexibility on PostgreSQL.

PostgreSQL foundation

Use advanced SQL, proven operations, and rich indexing when you need them.

Open and portable

MIT licensed, runs locally with Docker, and fits your own infrastructure or cloud.

Community

Built in the open

MIT licensed, active on GitHub, and guided by a technical steering committee that spans five organizations.

3.2k+

GitHub stars

on documentdb/documentdb

200+

Public forks

public on GitHub

11

TSC members

representing 5 organizations

Current TSC representation includes Microsoft, Amazon, AB InBev, Rippling, and YugabyteDB.

Microsoft
Amazon
Rippling
YugabyteDB
AB InBev

Ready to try DocumentDB?

Start locally with Docker, then explore the project on GitHub.