PocketBase

PocketBase

Lightweight open-source realtime backend with embedded SQLite

56.4kstars
3.1kforks
Last commit: 4d ago
Repo age: 4y old
PocketBase screenshot

PocketBase is a compact open-source backend written in Go that provides an embedded SQLite database, realtime subscriptions, user authentication, file storage and a built-in admin dashboard. It can be used as a standalone single-file executable or as an embeddable Go library for custom apps.

Key Features

  • Embedded SQLite database with schema builder, validations and realtime change subscriptions (Server-Sent Events).
  • Authentication and authorization: email/password, token-based (JWT) auth, OAuth2 provider integrations and auth token refresh/management.
  • File storage with local or S3-compatible backends, file uploads attached to records and automatic thumbnail generation.
  • Built-in Admin dashboard UI for managing collections, records, files and users; extendable via Go hooks and an embedded JavaScript VM.
  • REST-style JSON APIs plus official SDKs (JavaScript, Dart) for quick client integration and realtime subscribe/unsubscribe helpers.
  • Small footprint single binary distribution with cross-platform prebuilt executables and example starter projects.

Use Cases

  • Prototyping and internal tools where a minimal backend (DB + auth + file storage + admin UI) is needed quickly.
  • Client-driven web or mobile apps (SPAs, PWAs, React/Flutter apps) that need realtime updates and a simple REST API.
  • Lightweight CMS-like applications, admin dashboards and hobby/side projects requiring a portable backend.

Limitations and Considerations

  • Single-server architecture with an embedded SQLite store; no built-in sharding or multi-node clustering, so horizontal scaling is limited.
  • Realtime uses SSE (unidirectional) rather than WebSockets; reverse proxy configuration must support long-lived HTTP streams.
  • Project is under active development and the maintainers note potential breaking changes before a stable v1.0; review changelogs and migration notes for production upgrades.
  • Offline-first sync is not provided out-of-the-box; client-side handling is required for offline scenarios.

PocketBase offers a pragmatic, compact backend for many web and mobile workflows where simplicity, portability and realtime updates matter. It is especially suited for prototypes, internal apps and small production services that accept the single-server SQLite tradeoffs.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Supabase

Supabase

Open source Postgres backend platform with auth, APIs, storage, and realtime

98.2k
11.6k
Last commit: 8h ago

Supabase is an open source Postgres development platform providing authentication, auto-generated REST/GraphQL APIs, realtime subscriptions, edge functions, file storage,...

Alternative to:
Firebase
Firebase
+10
NocoDB

NocoDB

No-code spreadsheet interface for SQL databases with APIs

62.2k
4.6k
Last commit: 10h ago

Open-source Airtable alternative that turns Postgres/MySQL/SQLite into a no-code spreadsheet UI with views, permissions, integrations, and REST APIs.

Alternative to:
Airtable
Airtable
+10
Appwrite

Appwrite

Open-source backend platform for web and mobile applications

55k
5k
Last commit: 1mo ago

Appwrite is an open-source backend-as-a-service for building web and mobile apps with authentication, databases, storage, functions, realtime APIs, and messaging.

Alternative to:
Firebase
Firebase
+4
Directus

Directus

Headless CMS and instant APIs for SQL databases

34.3k
4.6k
Last commit: 7h ago

Directus turns any SQL database into a headless CMS with an admin app, role-based access control, and instant REST and GraphQL APIs for custom applications.

Alternative to:
Directus Cloud
Directus Cloud
+19
Medusa

Medusa

Open-source, headless ecommerce backend built for customization.

32.1k
4.1k
Last commit: 1d ago

Open-source, API-first commerce backend with modular architecture for custom storefronts and marketplaces.

Alternative to:
Medusa Cloud
Medusa Cloud
+15
Medusa

Medusa

Modular, headless commerce platform and backend framework

32.1k
4.1k
Last commit: 1d ago

Open-source modular commerce platform for building custom B2C/B2B e-commerce backends with an admin dashboard, extensible modules, and APIs.

Alternative to:
Medusa Cloud
Medusa Cloud
+8