Created in Poland by Leszek Pomianowski and the open-source community.
Fluent.DocumentDb is a .NET library for building applications on top of DocumentDB, an open-source document database built on PostgreSQL.
DocumentDB started at Microsoft as a PostgreSQL extension for document workloads and is now hosted by the Linux Foundation. It brings document database capabilities to the PostgreSQL ecosystem, with a focus on MongoDB API compatibility, portability, performance, and open governance.
The goal of Fluent.DocumentDb is to make DocumentDB feel natural in .NET applications: simple to configure, easy to test, and ready for modern cloud-native services.
DocumentDB is designed for teams that want a document database without giving up PostgreSQL.
- Built on PostgreSQL and its mature storage, indexing, query planning, and operational ecosystem
- Uses the document database model familiar from MongoDB and Azure Cosmos DB
- Targets compatibility with MongoDB drivers and tools
- Avoids vendor lock-in through an open-source, MIT-licensed engine
- Gives developers a practical path from NoSQL workloads to a PostgreSQL-backed platform
- Backed by a growing ecosystem that includes Microsoft, AWS, and the Linux Foundation community
PostgreSQL already has strong support for JSON and JSONB. DocumentDB builds on that foundation and turns PostgreSQL into a dedicated document database engine for modern applications.
| Package | Description | NuGet |
|---|---|---|
| Fluent.DocumentDb | Core .NET library for working with PostgreSQL-backed DocumentDB | |
| Fluent.DocumentDb.DependencyInjection | Dependency injection extensions for ASP.NET Core and worker services |
dotnet add package Fluent.DocumentDbFor applications using Microsoft.Extensions.DependencyInjection:
dotnet add package Fluent.DocumentDb.DependencyInjectionThis project is in early development. The public API is being designed around compatibility, performance, and a small developer-friendly surface area.
- DocumentDB GitHub repository
- DocumentDB project website
- Linux Foundation welcomes DocumentDB
- Microsoft: DocumentDB joins the Linux Foundation
- AWS joins the DocumentDB project
Requires .NET 10 SDK or later.
git clone https://github.com/open-fluent/documentdb.git
cd documentdb
dotnet build
dotnet testFluent.DocumentDb is free and open source software licensed under the MIT License. You can use it in private and commercial projects.