Open Source backend in 1 file
open sourceMITself-hostablefree
PocketBase is an open source backend in a single Go executable: an embedded SQLite database with a schema builder, data validation and realtime subscriptions, user authentication (email and password, one-time codes, MFA and 15+ OAuth2 providers), file storage on local disk or S3 with thumbnails, and an admin dashboard, all behind a REST-ish API with official JavaScript and Dart SDKs. It runs as a standalone app, extended with JavaScript hooks, or as a Go framework you build your own backend on, and serves HTTPS with automatic Let's Encrypt certificates. It is made by Gani Georgiev under the MIT licence, self-hosted only, and still before v1.0, so upgrades can need manual migration steps. In October 2026 its GitHub repository was archived and development moved to ganigeorgiev.com/pocketbase/pocketbase.
Ways to install
On your own server
Hosted for you
Package managers
Problems it solves
- I want a backend for my side project without setting up a database server, auth service and file storage separately
- a self-hosted Firebase alternative I can run as one binary on a cheap VPS
- open source Supabase alternative that doesn't need Postgres or Docker
- add user sign-up and login with email, Google or GitHub to my app without writing an auth server
- push live database changes to my web app's users without building a websocket server
- store users' uploaded images and generate thumbnails on the fly for my mobile app
- give my non-technical co-founder an admin panel to edit app data
- build a backend for my Flutter app with a ready-made Dart client
- my React or Svelte frontend needs a simple REST API and database I can define in a web UI
- write my app's backend logic in Go and still ship a single portable executable
- add server-side hooks and custom routes in JavaScript without a Node.js server
- restrict who can read or change each record with simple rules instead of writing middleware
- deploy my app's backend by copying one file to a server, with HTTPS set up automatically
- back up my app's whole database and uploaded files to an S3 bucket from a settings page
- require one-time email codes or two-factor login for my app's users
- an embedded SQLite backend with an API for a small internal tool
- prototype a mobile app backend in an afternoon and keep running it in production later
- schedule cron jobs and send emails from my backend without extra services
- keep migrations for my app's database schema in git alongside the code
- run a lightweight backend on a Raspberry Pi or home server for my own apps
Features
- embedded SQLite database (WAL mode) with schema builder and data validation
- realtime subscriptions to record changes
- REST-ish Web API with filtering, sorting and expansion of relations
- API rules and filters to control access per collection
- email and password, one-time password (OTP) and OAuth2 sign-in with 15+ providers (Apple, Google, Facebook, Microsoft, GitHub, GitLab and more)
- optional multi-factor authentication
- file storage on local disk or S3-compatible storage, with on-the-fly thumbnails
- admin dashboard UI
- official JavaScript SDK (browser, Node.js, React Native) and Dart SDK (web, mobile, desktop, CLI)
- extend with JavaScript hooks in the prebuilt executable, or use as a Go framework
View 6 more
- event hooks, custom routes, migrations, job scheduling, sending emails, templates and console commands
- built-in backups of pb_data to local disk or S3
- built-in rate limiting and superuser IP restriction
- automatic Let's Encrypt TLS when served with a domain
- optional encryption of stored settings
- prebuilt executables for Linux, Windows and macOS on x64 and ARM64
Limitations
- Doesn't scale horizontally across several servers: it runs on a single server and scales only vertically10
- Doesn't support PostgreSQL, MySQL or other databases: it uses embedded SQLite only, with no plans to support others10
- No hosted or managed version from its maker: PocketBase is self-hosted only10
- No stable 1.0 release yet: backward compatibility isn't guaranteed and it isn't recommended for production-critical apps1112
- No built-in data import or export helpers10
- No official Docker image: the docs give an example Dockerfile instead13
- No ready-made login or signup screens for your app: it provides client SDKs and you build the frontend10
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what PocketBase does.
- Supabase The Postgres development platform
- TrailBase An open, sub-millisecond, single-executable Firebase alternative
- Appwrite The open-source cloud for agents & devs
- Nhost Open source Firebase alternative with GraphQL
- Parse Server Open-source backend for Node.js / Express, the core of the Parse Platform
- Convex The reactive backend platform that keeps up with you and your agents
