Serverless FerretDB
The Apache-licensed MongoDB-compatible database. Same wire protocol, same drivers, no SSPL fine print. Cloud, desktop, or self-host with SpinDB.
Collections
- users12.4k
- products847
- orders3.1k
Where to run it
Cloud, desktop, or self-host
One database, three places it can live. Pick the speed you want and move between them when you outgrow it.
What you get
Production features, free tier included
Every FerretDB database ships with the same primitives: TLS, web console, hibernation, and a real dashboard. No tiered features hidden behind a sales call.
Web IDE
Query console in the dashboard, no extra client to install.
TLS by default
All connections encrypted. No setup required.
Always-on connections
Pin a database to your always-on pool to prevent hibernation.
Scale to zero
Hibernates when idle. Wakes on the next connection.
Connection pooling
Pooled endpoint for serverless and edge workloads.
Direct connections
Bypass the pooler for migrations and replication.
Native HTTPS endpoint
Engines whose own wire protocol speaks HTTPS. Every database, including this one, is also queryable over the platform's HTTPS query API and web console.
Serverless driver
Drop-in HTTP driver for edge runtimes (Upstash REST, PlanetScale, or the engine-native client).
IP whitelisting
Restrict access to specific IPs or CIDR ranges.
Automatic backups
Scheduled dumps and volume snapshots with one-click restore on paid plans. Free tier includes a manual backup slot.
Quick start
Connect with any FerretDB client
Teams that need MongoDB ergonomics with Apache 2.0 licensing, document-shaped data on top of Postgres, and existing Mongo apps that want to escape the SSPL.
- Drop MongoDB-shaped data into a project that needs a permissive license
- Run document workloads alongside Postgres on the same infra without dual ops
- Spin up a per-environment document store that scales to zero between bursts
- Migrate off Atlas without rewriting drivers or queries
- Self-host on your own hardware when compliance requires it
mongosh "mongodb://layerbase:password@your-host.cloud.layerbase.dev:27017/app?tls=true"Questions
Common FerretDB questions
How is FerretDB different from MongoDB?+
FerretDB implements the MongoDB wire protocol on top of PostgreSQL. From your driver, it looks like Mongo. Under the hood, your documents are stored as JSONB in Postgres tables. License: Apache 2.0 instead of SSPL.
Will my MongoDB driver work?+
Yes. Any driver that speaks the MongoDB wire protocol (pymongo, mongoose, mongo-go-driver, Java, etc.) connects to FerretDB without code changes. mongosh works against the same endpoint.
Is there feature parity with MongoDB?+
The common 90% is covered: CRUD, indexes, aggregations, transactions, change streams. Mongo-only features like Atlas Search are not supported. The FerretDB compatibility page tracks specifics.
Can I move data from MongoDB to FerretDB?+
Yes. mongodump and mongorestore work against FerretDB. Most apps move with zero driver-side changes; you typically only re-verify queries that exercise less-common operators.
How does it relate to /db/mongodb on Layerbase?+
/db/mongodb explains the Mongo story on Layerbase Cloud, which is implemented by FerretDB. /db/ferretdb is the same engine viewed through its own brand and license story; pick whichever framing fits your audience.