Foundation

Database

Store your app's data somewhere reliable, and talk to it from code.

Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗

The real choice

Where the data lives: a whole backend platform (database, auth and storage in one project), a managed database you reach from your own code, or the raw engine on your own server. Postgres is the default unless you have a reason to pick otherwise; analytics and graph databases sit next to it for workloads it handles poorly, not instead of it. How your code talks to it is its own decision (Database Access & ORMs).

Pick by situation

Tap the ones that are you — the tools that fit light up below.
  • You want the database, auth and file storage in one project, and plain SQL you can take elsewhereSupabase
  • You're building a live, collaborative app entirely in TypeScriptConvex
  • Your traffic is bursty or you run many preview deploys, and idle hours shouldn't cost muchNeon
  • You already run your own server and want a flat monthly costPostgreSQL

The contenders

Grouped by the side of the choice they answer, not ranked. Open a row for when to use it, the trade-off and what makers say.

ToolBest for
Backend platform3
Supabaseplatform · open source · free tierPostgres plus auth, storage and realtime in one project.564+75 open source$25Pro25.4M/wk+96% vs npm

Use it whenYou want one service for most of the backend and a SQL database you can take with you.

Trade-offAuth, storage and database in one vendor makes leaving harder later, and free projects pause after a week without activity.

llms.txtMCPCLIIn Bolt, Lovable, v0

Used by 1-bit.day, 21st, a0.dev, Accordio AI, Adventory and 559 more · in 75 open-source projects.

One Postgres with RLS on every table is the reason a solo founder can ship contracts, invoices and a client portal without a backend team. Auth, storage and realtime came for free.
Accordio AI, the makerSep 2026 ↗
Firebaseplatform · free tierMobile apps that need offline sync and client-side SDKs.182+70 open source$9.66Blaze (pay as you go)8.8M/wk−21% vs npm

Use it whenYou're shipping a mobile app first and want the client to read and write data directly, including while offline.

Trade-offA document store without SQL joins; hard to migrate off.

llms.txtIn Lovable

Used by 1752vc Pitch Deck Analyzer, AI Product Hunter, AI Shadowing, AI Visual Reasoning by Chance, Arkiv and 177 more · in 70 open-source projects.

Key role in helping us deliver results in real time, because the analysis streams onto the page as it completes instead of making founders wait for a finished report.
1752vc Pitch Deck Analyzer, the makerSep 2026 ↗
Convexplatform · open source · free tierRealtime, collaborative apps written entirely in TypeScript.50+9 open source$29Professional1.3M/wk5.5× vs npm

Use it whenYou want queries that update the UI live without writing sync code.

Trade-offIts own data model and query API rather than SQL.

llms.txtCLI

Used by a0.dev, BloxGPT, brag.fast, Brew, Brutal Verdict and 45 more · in 9 open-source projects.

This real-time database for TypeScript is a game-changer. It seamlessly integrates with my application, providing real-time data synchronization and making development a breeze.
BloxGPT, the makerSep 2026 ↗
Managed database4
MongoDBdatabase · self-hostable · free tierDocument-shaped data and teams already fluent in Mongo.131+148 open source$58Atlas Dedicated M1014.5M/wk−45% vs npm

Use it whenYour team already knows Mongo, or your records vary so much in shape that a fixed schema gets in the way.

Trade-offNo joins or schema by default, so relational data and migrations take discipline you'd get for free in Postgres.

llms.txt

Used by agumbe.dev, AidaJet, AiTerm, Alchemyze, Alpaca Chat and 126 more · in 148 open-source projects.

Shoutout to MongoDB for providing a powerful, flexible database solution that scales with our needs. Your platform helps us manage and analyze vast amounts of data seamlessly!
Exploit Alarm, the makerSep 2026 ↗
Neondatabase · open source · free tierServerless Postgres that scales to zero, with a branch per preview deploy.95+16 open source$22Launch3.7M/wk+35% vs npm

Use it whenYou want every pull request's preview deploy to get its own copy of the database.

Trade-offCold starts after idle periods add latency to the first query, and heavy always-on workloads can cost more than a fixed server.

llms.txtMCPCLIIn v0

Used by AgreeGuard, Anymark, Anything, Aymo AI, BaseHub and 90 more · in 16 open-source projects.

Serverless Postgres with branching is a game changer for solo builders. Scale to zero means no idle costs, and the connection pooling just works. Perfect for an early-stage product.
Relay, the makerSep 2026 ↗
PlanetScaledatabaseApps that expect heavy scale and want zero-downtime schema changes.29+9 open source$7.40Postgres PS-5 (single node)265.6k/wk−35% vs npm

Use it whenYour tables are big and busy enough that a locking migration would mean downtime.

Trade-offNo free tier.

llms.txt

Used by Balance, Campsite, Cushion, Eververse, Graphy and 24 more · in 9 open-source projects.

A joy to work with. Branching, schema changes, and zero-downtime deploys make PlanetScale perfect for our evolving data models. Developer-friendly + production-safe = rare combo.
RunLLM, the makerSep 2026 ↗
Tursodatabase · open source · free tierSQLite at the edge, or one database per customer.13+33 open source$5.99Developer2.2M/wk+102% vs npm

Use it whenEach customer should get their own isolated database, or reads need to happen close to users worldwide.

Trade-offSQLite semantics — one writer at a time, fewer extensions — suit read-heavy apps better than write-heavy ones.

llms.txtCLI

Used by Anarlog, CoffeeChat Bot, EmailCatcher, HootLearn AI, Parseflow.io and 8 more · in 33 open-source projects.

We wanted to build application that has single tenant databases for each organization. Turso handles that super nicely. In addition the ability to have embedded replicas is killer feature for building local RAG.
reconfigured, the makerSep 2026 ↗
Run it yourself1
PostgreSQLdatabase · open source · free tierThe engine behind most of the hosted options above, run on your own server or container for full control and a flat cost.74+542 open source—45.1M/wk+18% vs npm

Use it whenYou already run a server, or want extensions and settings a managed provider doesn't offer.

Trade-offBackups, upgrades, failover and connection pooling are yours to set up and watch.

In Replit

Used by Atlas.co, Baselight, BooleanMaths Pulse, Boondockers Welcome, Byterover and 69 more · in 542 open-source projects.

Postgres is rock-solid. It handles complex data relationships gracefully and gives us the querying power we need as we scale. For relational data, it’s hands down the best choice for us.
VisionAR, the makerSep 2026 ↗

Cost: the cheapest plan that fits database size 8 GB, data transfer 50 GB, document or row reads 10 million reads, document or row writes 2 million writes, from list prices. Try your own numbers →

Cost as you grow

Each contender's cheapest usable plan as usage rises.

$0$50$200$500$1,0000.51582050100500
MongoDBTursoPlanetScaleNeonFirebaseConvexSupabasex: database size (GB), other usage scaled with it; held at 730 hours (compute hours per month) · cheapest usable plan at each point, list prices · try your own numbers

Who switches to what

Public pull requests on GitHub since Oct 2024 whose title says "X to Y" — real code changes, by developers in general rather than makers only. Pick a flow to see its pull requests.

Firebase → Supabase: 298 pull requestsSupabase → Neon: 170 pull requestsSupabase → Firebase: 113 pull requestsMongoDB → Supabase: 76 pull requestsNeon → Supabase: 64 pull requestsSupabase → Convex: 50 pull requestsSupabase → PostgreSQL: 48+ pull requestsMongoDB → PostgreSQL: 46 pull requestsSupabase 381Firebase 298MongoDB 122Neon 64Supabase 438Neon 170Firebase 113PostgreSQL 94Convex 50Moving fromMoving to
Firebase → Supabase298 PRs · Compare →

Before you choose

How to approach it

Pick a managed Postgres unless you have a reason not to. Turn on backups before your first real user, and use the provider's connection pooler from serverless functions.

Common mistakes
  • Never restoring a backup until the day you need one — the first bad migration or stray DELETE is a bad time to learn the backup is missing or too old.
  • Opening a fresh database connection in every serverless function call, which runs Postgres out of connections under modest traffic; use the provider's connection pooler.
  • Changing the schema by hand in the production console instead of through migrations, so local, preview and production databases quietly drift apart.

Other options

Real choices most makers here won't need to weigh.

ClickHouseAnalytics (OLAP)Fast aggregate queries over billions of rows of events, logs or metrics, self-hosted or on ClickHouse Cloud.40 makers' productsTinybirdAnalytics (OLAP)Managed ClickHouse that turns SQL over event streams into fast API endpoints for dashboards and usage analytics in your product.30 makers' productsNeo4jGraphData that is mostly relationships — social graphs, recommendations, knowledge graphs — queried with Cypher.19 makers' productsDuckDBAnalytics (OLAP)Analytical SQL inside your app or script over local or S3-hosted CSV and Parquet files, with no server to run.14 makers' productsAppwriteBackend platformA Firebase-style backend — database, auth, storage, functions and messaging — that is open source and can be self-hosted.8 makers' productsXanoBackend platformA backend — database, API endpoints, business logic and auth — built visually instead of in code.8 makers' productsPocketBaseBackend platformA whole backend — database, auth, files, realtime and admin UI — in one self-hosted executable.6 makers' productsMySQLRun it yourselfPHP, Laravel, WordPress and Rails stacks, and teams that already know MySQL well.6 makers' productsInstantDBBackend platformRealtime, multiplayer and offline-friendly apps where the frontend queries and writes data directly, with auth, permissions and storage included.2 makers' productsXataManaged databasePostgres branches that copy instantly and scale to zero, for a separate database per developer, pull request or agent, optionally filled with anonymized production data.1 makers' productSQLiteRun it yourselfA database that is just a file in your app — desktop and mobile apps, single-server web apps, tests and prototypes.Cloudflare D1Managed databaseA serverless SQLite database for apps running on Cloudflare Workers or Pages, with a free tier and no egress fees.Amazon DynamoDBManaged databaseA serverless key-value and document database on AWS that scales with no servers to manage, with an always-free tier.MariaDBRun it yourselfA MySQL-compatible open-source database, the default MySQL on many Linux distributions and hosts.

Decided alongside

What the 1,168 makers' products here chose for their other decisions.