About FerretDB
FerretDB is an open-source alternative to MongoDB. It works as a proxy that accepts queries in the MongoDB 5.0+ wire protocol, converts them to SQL and stores the data in PostgreSQL with the DocumentDB extension, so existing MongoDB drivers and popular tools can usually talk to it without code changes.
The project was started because MongoDB moved to the SSPL licence, which made it unsuitable for many open-source and early-stage commercial projects. FerretDB targets the common case of developers who want an easy-to-use document database without needing MongoDB's most advanced features, and in many cases it can act as a drop-in replacement. A public roadmap lists known differences and supported commands.
FerretDB is written in Go and released under the Apache-2.0 licence. A Docker quickstart bundles the proxy, PostgreSQL with DocumentDB and the MongoDB Shell for experiments, while separate installation guides cover production setups that do not lose data on shutdown. You run it on your own infrastructure alongside PostgreSQL.
Key features
- MongoDB wire protocol compatibility
- PostgreSQL with DocumentDB as the engine
- Works with MongoDB drivers and tools
- Docker quickstart with MongoDB Shell
- Public roadmap and compatibility notes
- Apache-2.0 licensed Go codebase
Good fit for
- →Moving off MongoDB without a rewrite
- →Running document workloads on PostgreSQL
- →Avoiding SSPL licensing concerns
- Tags
- mongodb
- postgresql
- document-database
- database
- nosql
- go
- apache-2.0
- self-hosted
- drop-in-replacement
Open-source alternatives to FerretDB
See all
MongoDB
Databases
The MongoDB Database
OSSvs Amazon DynamoDB★ 29k
RavenDB
Databases
ACID Document Database
OSSvs MongoDB Atlas★ 4k
SurrealDB
Databases
A scalable, distributed, collaborative, document-graph database, for the realtime web
OSSvs MongoDB Atlas★ 33k
Apache CouchDB
Databases
Seamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reli
Apache-2.0vs Amazon DynamoDB★ 7k
ArangoDB
Databases
🥑 ArangoDB is a native multi-model database with flexible data models for documents, grap
OSSvs Azure Cosmos DB★ 14k
Valkey
Databases
A flexible distributed key-value database that is optimized for caching and other realtime
BSD-3-Clausevs Upstash★ 27k
SaaS alternatives to FerretDB
See all
MongoDB Atlas
Databases
Managed MongoDB service across AWS, Azure and Google Cloud
SaaS
Couchbase Capella
Databases
Managed document database service from Couchbase with SQL++ queries
SaaS
Google Cloud Firestore
Databases
Serverless NoSQL document database with real-time sync for web and mobile apps
SaaS
Amazon DocumentDB
Databases
Managed document database on AWS with a MongoDB-compatible API
SaaS
IBM Cloudant
Databases
Managed JSON document database on IBM Cloud based on Apache CouchDB
SaaS
Ditto
Databases
Edge database and sync platform that replicates data between devices without a constant connection
SaaS
