# pocketbase | PocketBase | Knowledge Base | Instagit

Open Source realtime backend in 1 file

GitHub Stars: 56.6k

Repository: https://github.com/pocketbase/pocketbase

---

## Articles

### [How PocketBase Handles Data Encryption Using Environment Variables: A Complete Technical Guide](/pocketbase/pocketbase/how-does-pocketbase-handle-data-encryption)

Learn how PocketBase encrypts sensitive data with AES-256-GCM using environment variables. Discover the `--encryptionEnv` flag for secure key management and automatic decryption/encryption.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Configure CORS in PocketBase: Settings, CLI, and Custom Middleware](/pocketbase/pocketbase/how-to-configure-cors-in-pocketbase)

Learn to configure CORS in PocketBase using server settings JSON, CLI flags, or custom Go middleware. Secure your APIs and control cross-origin requests effectively.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Configure API Rate Limiting in PocketBase: A Complete Guide](/pocketbase/pocketbase/how-is-api-rate-limiting-configured-in-pocketbase)

Learn to configure API rate limiting in PocketBase with our comprehensive guide. Secure your application by understanding token bucket rules and admin settings.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Use View Collections in PocketBase for Custom SQL Queries](/pocketbase/pocketbase/how-to-use-view-collections-in-pocketbase)

Unlock custom SQL queries in PocketBase using view collections. Easily join and filter data across tables with standard APIs. Boost your app's data retrieval capabilities.

- Tags: how-to-guide
- Published: 2026-03-06

### [How Relation Fields Work in PocketBase: Linking Collections Explained](/pocketbase/pocketbase/how-do-relation-fields-work-in-pocketbase)

Master PocketBase relation fields. Learn how to link collections with one-to-one or one-to-many relationships using record IDs. Explore validation and expansion features for powerful data connections.

- Tags: deep-dive
- Published: 2026-03-06

### [How to Implement MFA and OTP in PocketBase: A Complete Developer Guide](/pocketbase/pocketbase/how-to-implement-mfa-otp-in-pocketbase)

Learn to implement MFA and OTP in PocketBase with this developer guide. Discover built-in support and easy integration for enhanced security in your applications.

- Tags: how-to-guide
- Published: 2026-03-06

### [How JWT Authentication Works in PocketBase: Token Generation, Validation, and Security](/pocketbase/pocketbase/how-do-jwt-tokens-work-in-pocketbase)

Understand JWT authentication in PocketBase. Learn how PocketBase generates, validates, and secures HS256-signed tokens in each request for robust authentication.

- Tags: deep-dive
- Published: 2026-03-06

### [How to Manage Superusers in PocketBase: CLI, API, and Security Guide](/pocketbase/pocketbase/how-to-manage-superusers-in-pocketbase)

Securely manage PocketBase superusers using the CLI, API, and SDK. Learn to bypass rules and enforce strict access controls for your backend.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Configure the Mailer in PocketBase: Complete SMTP and Sendmail Guide](/pocketbase/pocketbase/how-to-configure-mailer-in-pocketbase)

Configure the PocketBase mailer for seamless email delivery. Learn to set up SMTP or use Sendmail for your application with this comprehensive guide.

- Tags: how-to-guide
- Published: 2026-03-06

### [How to Set Up Cron Jobs (Scheduled Tasks) in PocketBase: A Complete Guide](/pocketbase/pocketbase/how-to-set-up-cron-jobs-in-pocketbase)

Learn to set up cron jobs in PocketBase with this complete guide. Effortlessly schedule recurring tasks using the built-in Cron service and crontab expressions. Start automating today.

- Tags: how-to-guide
- Published: 2026-03-06

### [How Logging Works in PocketBase: Log Queries, Storage, and Management](/pocketbase/pocketbase/how-does-logging-work-in-pocketbase)

Discover how PocketBase logging works. Learn to manage and query all application activity logs stored internally with clear explanations and practical examples.

- Tags: internals
- Published: 2026-03-06

### [How to Manage PocketBase App Settings: REST API and Go SDK Guide](/pocketbase/pocketbase/how-to-manage-pocketbase-app-settings)

Easily manage PocketBase app settings using REST API endpoints or the Go SDK. Update and read settings efficiently with our comprehensive guide.

- Tags: how-to-guide
- Published: 2026-03-06

### [PocketBase API Middlewares: Complete Guide to Rate Limiting, CORS, and Security](/pocketbase/pocketbase/what-are-pocketbase-api-middlewares)

Explore PocketBase API Middlewares for rate limiting, CORS, and security. Customize 15+ built-in handlers like GZIP and authentication via hooks for enhanced control.

- Tags: guide
- Published: 2026-03-06

### [How to Perform CRUD Operations on Collections in PocketBase](/pocketbase/pocketbase/how-to-perform-crud-on-collections-in-pocketbase)

Learn how to perform CRUD operations on PocketBase collections using API endpoints. This guide covers listing, viewing, creating, updating, and deleting records with robust security.

- Tags: how-to-guide
- Published: 2026-03-06

### [How PocketBase Migrations Work: System vs App Migrations Explained](/pocketbase/pocketbase/how-do-pocketbase-migrations-work)

Understand how PocketBase migrations work with system and app migrations. Learn about automatic updates and user-defined changes managed transactionally.

- Tags: deep-dive
- Published: 2026-03-06

### [How PocketBase Realtime Subscriptions Work: A Deep Dive into Server-Sent Events](/pocketbase/pocketbase/how-do-realtime-subscriptions-work-in-pocketbase)

Explore how PocketBase realtime subscriptions leverage Server-Sent Events. Understand its three-stage architecture: connection, subscription, and broadcasting via an in-memory broker. Learn more now.

- Tags: deep-dive
- Published: 2026-03-06

### [How to Implement OAuth2 Authentication in PocketBase: A Complete Developer Guide](/pocketbase/pocketbase/how-to-implement-oauth2-authentication-in-pocketbase)

Implement OAuth2 authentication in PocketBase with this complete guide. Learn to configure providers, get authorization codes, and exchange them for auth tokens easily.

- Tags: how-to-guide
- Published: 2026-03-06

### [How PocketBase Database Transactions Work: Concurrent vs Non-Concurrent Mode](/pocketbase/pocketbase/how-do-database-transactions-work-in-pocketbase)

Understand PocketBase database transactions, exploring concurrent vs non-concurrent modes and how PocketBase unifies connections for transactional operations.

- Tags: internals
- Published: 2026-03-06

### [How to Use PocketBase Hooks to Extend Functionality: A Complete Guide](/pocketbase/pocketbase/how-to-use-pocketbase-hooks-to-extend-functionality)

Unlock PocketBase hooks to extend functionality. Learn to inject custom logic into operations with this complete guide. Master event binding and handler execution for enhanced control.

- Tags: how-to-guide
- Published: 2026-03-06

