Databases and backends

Where your app's data and server logic live. Postgres, SQLite and serverless options with free plans, plus the limits that catch people out.

5 tools Prices change. Each tool shows the month its facts were checked.

For most indie apps a hosted Postgres database with built-in auth and storage is the shortest path. Watch two things on free plans: pausing when nobody uses the project, and hard caps that stop writes. Never put a secret key in your frontend; see the security checklist.

At a glance

Databases and backends compared
ToolPricingBest for
Supabase Start hereFree tier Free plan has 2 active projects, 500 MB database each, 1 GB storage and 50,000 monthly active users. Pro starts at $25 a month with a spend cap on by default.Web and mobile apps that need users, a real database and row-level permissions without running servers.
NeonFree tier Free plan allows 100 projects with 1 GB storage each (20 GB total) and 100 compute hours per project a month. Paid plans bill by usage.Apps that already handle auth elsewhere and want a cheap, standard Postgres database.
FirebaseFree tier The free Spark plan covers small apps; the Blaze plan is pay as you go. Set a budget alert before switching.Mobile apps that want push notifications and Google sign-in quickly.
Cloudflare WorkersFree tier Free plan allows 100,000 requests a day. The paid plan starts at $5 a month and includes 10 million requests.APIs, webhooks and small backends that must be fast and cheap.
PocketBaseOpen source Free to use. You pay only for the server you run it on.Technical founders happy to run one small server and avoid vendor lock-in.

Supabase

Start hereFree tier

Hosted Postgres with auth, file storage, realtime and edge functions in one dashboard.

Best for
Web and mobile apps that need users, a real database and row-level permissions without running servers.
Pricing
Free plan has 2 active projects, 500 MB database each, 1 GB storage and 50,000 monthly active users. Pro starts at $25 a month with a spend cap on by default. Pricing page for Supabase
Facts checked

Strengths

  • Plain Postgres, so your data and skills are portable.
  • Row Level Security lets the database itself enforce who can read what.
  • Auth, storage and functions included.

Trade-offs

  • Free projects pause after a week without activity.
  • You must write Row Level Security policies correctly or your data is exposed.

Neon

Free tier

Serverless Postgres that scales to zero when idle, with instant database branches for testing.

Best for
Apps that already handle auth elsewhere and want a cheap, standard Postgres database.
Pricing
Free plan allows 100 projects with 1 GB storage each (20 GB total) and 100 compute hours per project a month. Paid plans bill by usage. Pricing page for Neon
Facts checked

Strengths

  • No bill on the free plan; it suspends instead of charging.
  • Branches give you a safe copy of production data to test changes.

Trade-offs

  • The first request after idle is slower while compute wakes up.
  • Database only; you add auth and storage yourself.

Firebase

Free tier

Google's app platform with a document database, auth, hosting and push notifications.

Best for
Mobile apps that want push notifications and Google sign-in quickly.
Pricing
The free Spark plan covers small apps; the Blaze plan is pay as you go. Set a budget alert before switching. Pricing page for Firebase
Facts checked

Strengths

  • Strong mobile SDKs and push messaging.
  • Realtime sync built in.

Trade-offs

  • The NoSQL data model is hard to change later and to query for reports.
  • Pay-as-you-go bills have no hard cap by default.

Cloudflare Workers

Free tier

Run server code close to your users, plus key-value storage, a SQLite database (D1) and queues.

Best for
APIs, webhooks and small backends that must be fast and cheap.
Pricing
Free plan allows 100,000 requests a day. The paid plan starts at $5 a month and includes 10 million requests. Pricing page for Cloudflare Workers
Facts checked

Strengths

  • Very low cost at small and medium scale.
  • D1 free tier includes 5 GB of SQLite storage.
  • The free plan stops rather than billing you.

Trade-offs

  • 10 ms of CPU per request on the free plan; heavy work needs the paid plan.
  • Not a normal Node.js server; some libraries will not run.

PocketBase

Open sourceOpen source

An open-source backend in a single file, with a database, auth, file storage and an admin screen.

Best for
Technical founders happy to run one small server and avoid vendor lock-in.
Pricing
Free to use. You pay only for the server you run it on. Pricing page for PocketBase
Facts checked

Strengths

  • One file to deploy; easy to back up.
  • No per-user pricing ever.

Trade-offs

  • You are responsible for the server, updates and backups.
  • Scales up on one machine, not across many.