PocketBase

PocketBase

PocketBase is a backend for your next SaaS and mobile app in one file. It provides a complete backend solution with database, authentication, file storage, and admin dashboard, all packaged in a single executable file that's easy to deploy and manage.

Self-hosted alternatives to:
Similar self-hosted alternatives:
Repository activity:
Stars
47,647
Forks
2,377
Watchers
261
Open Issues
18
Last commit
13 days ago
Details:
Estimated Popularity
196
Pricing Model
Free
Hosting Type
Self-Hosted
License
MIT
Deployment Difficulty
Easy
Language
Go

PocketBase is a revolutionary backend solution that packages everything you need for your next SaaS or mobile application into a single executable file. Built with Go and SQLite, it provides database management, user authentication, file storage, and an admin dashboard without the complexity of traditional backend setups.

Key Features

  • Single File Backend:

    • Complete backend in one executable file
    • Built-in web server and database
    • No external dependencies required
    • Easy deployment and distribution
    • Portable across platforms
    • Minimal resource requirements
  • Database Management:

    • SQLite database with real-time capabilities
    • Visual schema builder and editor
    • Automatic API generation from schema
    • Data relationships and constraints
    • Built-in data validation
    • Database migrations and backups
  • Authentication System:

    • Built-in user management
    • Email/password authentication
    • OAuth provider integration (Google, GitHub, etc.)
    • JWT token-based authentication
    • Role-based access control
    • Password reset and email verification
  • File Storage & Management:

    • File upload and download APIs
    • Automatic image resizing and optimization
    • File type validation and restrictions
    • Multiple storage backend support
    • CDN integration capabilities
    • Thumbnail generation
  • Admin Dashboard:

    • Web-based administration interface
    • Visual data management tools
    • User and permission management
    • Real-time logs and analytics
    • Settings and configuration panel
    • Database schema editor
  • Real-time Capabilities:

    • WebSocket-based real-time subscriptions
    • Live data updates
    • Real-time collection changes
    • Event-driven architecture
    • Custom event handling
    • Presence detection
  • Developer Experience:

    • Auto-generated REST APIs
    • Client SDKs for multiple platforms
    • Hot reload during development
    • Custom JavaScript hooks
    • Middleware support
    • Comprehensive documentation

Technical Specifications

  • Language: Go
  • Database: SQLite with WAL mode
  • Storage: Local filesystem, S3-compatible
  • Authentication: JWT tokens, OAuth
  • APIs: REST, WebSocket
  • Deployment: Single binary executable
  • Platforms: Linux, Windows, macOS

Use Cases

  • SaaS Applications: Complete backend for software-as-a-service products
  • Mobile Apps: Backend services for iOS and Android applications
  • Prototyping: Rapid backend development for MVPs
  • Small to Medium Projects: Full-featured backend without complexity
  • Edge Computing: Lightweight backend for edge deployments
  • Personal Projects: Simple backend for hobby and personal applications

Unique Advantages

  • Simplicity: Everything in one file, no complex setup
  • Performance: Fast Go runtime with efficient SQLite database
  • Portability: Single executable runs anywhere
  • Real-time: Built-in WebSocket support for live updates
  • Self-contained: No external dependencies or services required
  • Developer Friendly: Auto-generated APIs and comprehensive tooling

Help improve this content

Found an error or want to add more information about PocketBase? You can edit this page directly on GitHub.

Project Categories

Click on a category to explore similar projects