Supabase vs PocketBase
PocketBase is the pick for apps that fit on one server and should deploy as a single file. Supabase is the pick when you need Postgres, enterprise sign-in, a managed cloud or room to grow beyond one machine's SQLite database.
GitHub figures as of 6 December 2026. Updated .
Postgres-based backend with auth, instant APIs, realtime, storage and edge functions
Choose Supabase if you want SQL on Postgres, SAML single sign-on or phone login, an official hosted service with backups, and client libraries for Swift and Python as well as JavaScript and Flutter.
Backend in one Go binary with SQLite, realtime, auth, file storage and an admin dashboard
Choose PocketBase if you want a backend you can copy to a small VPS and run as one process, with data in a single directory and custom logic in JavaScript hooks or Go.
Side by side
| Fact | Supabase | PocketBase |
|---|---|---|
| GitHub stars | 115,899 | 61,636 |
| Stars gained in 30 days | +1,316 | +29 |
| Last commit | yesterday | 1 month ago |
| Repository age | 7 years | 4 years |
| License | Apache-2.0 | MIT |
| Platforms | Web | Web |
| Self-hosting needs | PostgreSQL, Docker | Nothing beyond the app |
| Hosted version by the developers | Yes | No |
| Built with | TypeScript, Next.js, Go, Elixir, Deno | Go, SQLite, JavaScript |
| Alternative to | Firebase, AWS Amplify | Firebase |
From each project's repository and documentation; GitHub figures refresh daily.
Main features
Supabase
- Dedicated Postgres database for each project
- Auto-generated REST and GraphQL APIs
- Auth with password, magic link, OTP, social login and SSO
- Row Level Security for per-row access rules
- Realtime broadcast, presence and database change streams
- File storage with image transformations
- Edge Functions in TypeScript on Deno
- Vector embeddings with pgvector
- Studio dashboard with table and SQL editors
- Migration tools for Firebase Auth, Firestore and Firebase Storage
PocketBase
- Single executable with an embedded SQLite database
- Admin dashboard for collections, records, users and settings
- Realtime subscriptions to record changes
- Password, email OTP and OAuth2 login with optional MFA
- Per-collection API rules written as filter expressions
- File uploads with thumbnails, local or S3-compatible storage
- JavaScript hooks, or use as a Go framework
- Built-in backups, rate limiter and automatic Let's Encrypt TLS
- Official JavaScript and Dart SDKs
The short answer
Supabase and PocketBase sit at opposite ends of our backend-as-a-service guide. Supabase is a platform: a dedicated PostgreSQL database with generated REST and GraphQL APIs, an auth server, realtime, object storage, Deno edge functions and the Studio dashboard, available as a managed cloud or a self-hosted Docker stack. PocketBase is a single Go executable with an embedded SQLite database, an admin dashboard, auth, file storage and realtime built in. The deciding factor is scale and operations: if one server is enough and you want to deploy a file, PocketBase is far simpler; if you need Postgres, a managed service or growth past one machine, choose Supabase.
Key differences
| Supabase | PocketBase | |
|---|---|---|
| Architecture | About a dozen services around Postgres | One Go executable |
| Database | PostgreSQL with extensions | Embedded SQLite (WAL mode) only |
| Access rules | Postgres row-level security in SQL | Filter expressions per collection |
| Sign-in | Password, magic link, OTP, phone, social, SAML SSO, MFA | Password, email OTP, OAuth2, MFA |
| Server code | Edge Functions, TypeScript on Deno | JavaScript hooks in-process, or Go framework |
| Official SDKs | JavaScript, Flutter, Swift, Python | JavaScript, Dart |
| Hosted service | Yes, Free and paid plans | None |
| Release status | Monthly self-hosting snapshots | Pre-1.0, compatibility not guaranteed |
| License | Apache-2.0 (services MIT or Apache-2.0) | MIT |
Database. Supabase gives you real Postgres: any client can connect, and extensions such as pgvector, PostGIS and pg_cron are available. PocketBase uses SQLite and its FAQ says there are no plans to support other databases. SQLite keeps everything in one file that is easy to back up, but it ties PocketBase to a single server: the FAQ says it scales only vertically.
Custom logic. Supabase runs Edge Functions as a separate Deno-based runtime. PocketBase has no cloud functions; you either drop *.pb.js files into pb_hooks to add routes, event hooks and scheduled jobs, or import PocketBase as a Go library and compile your own executable. Its JavaScript engine is goja, which implements ES5 with most of ES6, only loads CommonJS modules and has no setTimeout, so it is not a Node.js replacement.
Realtime. Supabase offers Broadcast, Presence and Postgres change streams. PocketBase streams record create, update and delete events over Server-Sent Events, filtered by each collection’s view or list rule.
Self-hosting Supabase
Self-hosted Supabase is a Docker Compose stack: Postgres, Studio, an Envoy gateway, Auth, PostgREST, Realtime, Storage, imgproxy, postgres-meta, Edge Runtime and Supavisor. The documented minimum is 4 GB of RAM, 2 CPU cores and 40 GB of SSD storage, with 8 GB and 4 cores recommended. One install runs one project. Branching, managed backups and point-in-time recovery, advanced metrics, ETL, analytics and vector buckets and the Management API are not available, support comes from the community, and tested snapshots are published about once a month.
Self-hosting PocketBase
Download the executable (Linux, Windows and macOS on x64 and ARM64, more on the releases page), run pocketbase serve yourdomain.com, and it obtains a Let’s Encrypt certificate on its own. Data and uploads live in pb_data, schema changes in pb_migrations. The production guide adds a systemd unit, reverse proxy examples and an example Dockerfile, noting there is no official image. It recommends an SMTP provider, the built-in rate limiter, restricting superuser access to known IPs, raising the open-file limit for many realtime clients and, optionally, encrypting stored settings. Backups run from the dashboard to local disk or S3-compatible storage; for replication the FAQ suggests Litestream.
Hosted versions
Supabase operates the hosted platform at supabase.com, with a Free plan (two active projects, paused after a week of inactivity) and paid plans that add point-in-time recovery, branching and SAML SSO. PocketBase has no hosted offering; its FAQ says it is self-hosted only.
Licensing
Both are permissive. Supabase’s main repository is Apache-2.0; Auth and Edge Runtime are MIT, while Realtime, Storage and Supavisor are Apache-2.0. PocketBase is MIT. The practical difference is governance: Supabase is backed by a company that sells its cloud, while PocketBase is developed by one volunteer, and pull requests are currently limited to existing collaborators.
Migrating between Supabase and PocketBase
Neither project documents an importer for the other. PocketBase’s FAQ says it has no built-in data import or export helpers, and Supabase’s migration guides cover Firebase, Auth0, Heroku, Neon, MySQL, MSSQL and other Postgres hosts, not PocketBase. For the common move from PocketBase to Supabase, Supabase’s knowledge base describes the general SQLite-to-Postgres route: create the schema in Postgres first, convert integer booleans and text dates to proper types, clean values SQLite accepted but Postgres rejects, import, then switch the app. PocketBase API rules have to be rewritten as row-level security policies, and user accounts need a plan of their own. Going the other way means exporting from Postgres and recreating collections through the PocketBase dashboard or migrations.
Who should choose which
- Prototypes, internal tools, side projects, single-server apps: PocketBase. One binary, one data folder, nothing else to run.
- Teams that want a managed service or a support contract: Supabase; PocketBase offers neither.
- Apps needing SQL analytics, PostGIS, pgvector or several app servers on one database: Supabase.
- Go developers who want backend and business logic in one deployable: PocketBase as a framework.
- Teams replacing Firebase: Supabase has documented Firebase Auth, Firestore and Storage importers; PocketBase has none.
For another single-binary option, see TrailBase; for a broader multi-service platform with its own API, see Appwrite.
Frequently asked questions
Can PocketBase scale like Supabase?
PocketBase scales only vertically, on one server, and its FAQ positions it for small and mid-sized apps; it cites more than 10,000 realtime connections on a 2 vCPU, 4 GB VPS. Supabase keeps data in Postgres, a client-server database that several application servers can connect to, so it is not tied to one machine's local file.
Is PocketBase production ready?
The docs include a production guide, but the README warns that full backward compatibility is not guaranteed before v1.0.0. It is a personal project maintained by one volunteer, with no paid support, so read the release notes before every upgrade.
Does PocketBase have a hosted cloud like Supabase?
No. The PocketBase FAQ says the project is self-hosted only and points to VPS providers and free cloud virtual machines instead. Supabase runs an official hosted platform with a Free plan and paid plans.
How do I move from PocketBase to Supabase?
There is no importer. PocketBase keeps its data in an SQLite file inside pb_data, so you recreate the schema in Postgres, convert types, import the rows and rewrite API rules as row-level security policies. Supabase's knowledge base has a general guide for moving SQLite apps to Postgres.
Both apps are in Backend as a Service, where you can compare all 8. Read the full reviews of Supabase and PocketBase.