Comprehensive PocketBase development and deployment skill providing setup guides, schema templates, security patterns, API examples, data management scripts, and real-time integration patterns for...
This skill provides modular, searchable documentation for PocketBase development. Use the table of contents below to navigate to specific topics. The researcher-pocketbase agent can efficiently search and extract information from the reference files based on your query. PocketBase is an open source backend in 1 file. It provides a realtime database, authentication, file storage, an admin dashboard and is extendable to much more.
ā Start with Getting Started for initial setup and basic concepts ā Review Collections to understand data modeling ā See Authentication for user management ā Check API Rules & Filters for security
ā Browse Schema Templates for pre-built data models ā Use Records API for CRUD operations ā Implement Real-time for live updates ā Follow Files Handling for file uploads ā Read Working with Relations for data relationships
ā See Going to Production for deployment ā Review Security Rules for access control ā Check API Reference for complete API documentation
ā Explore Go Extensions for custom functionality ā Study Event Hooks for automation ā Learn Database Operations for advanced queries ā Plan data migrations with Data Migration Workflows
| Topic | Description | When to Use |
|---|---|---|
| Getting Started | Initial setup, quick start, basic concepts | First time using PocketBase, initial configuration |
| CLI Commands | PocketBase CLI, serve, migrate, admin, superuser | Development workflow, server management, migrations |
| Collections | Collection types, schema design, rules, indexes | Designing data models, creating collections |
| Authentication | User registration, login, OAuth2, JWT tokens | Building user accounts, login systems |
| API Rules & Filters | Security rules, filtering, sorting, query optimization | Controlling data access, writing efficient queries |
| Files Handling | File uploads, thumbnails, CDN, security | Managing file uploads, image processing |
| Working with Relations | One-to-many, many-to-many, data relationships | Building complex data models, linking collections |
| Going to Production | Deployment, security hardening, monitoring, backups | Moving from development to production |
| Data Migration Workflows | Import/export strategies, scripts, and tooling | Planning and executing data migrations |
| Endpoint | Description | Reference File |
|---|---|---|
| Records API | CRUD operations, pagination, filtering, batch operations | api_records.md |
| Realtime API | WebSocket subscriptions, live updates, event handling | api_realtime.md |
| Files API | File uploads, downloads, thumbnails, access control | api_files.md |
| Collections API | Manage collections, schemas, rules, indexes | api_collections.md |
| Settings API | App configuration, CORS, SMTP, general settings | api_settings.md |
| Logs API | Access logs, authentication logs, request logs | api_logs.md |
| Crons API | Background jobs, scheduled tasks, automation | api_crons.md |
| Backups API | Database backups, data export, disaster recovery | api_backups.md |
| Health API | System health, metrics, performance monitoring | api_health.md |
| SDK | Description | Reference File |
|---|---|---|
| JavaScript SDK | Frontend integration, React, Vue, vanilla JS | js_sdk.md |
| Go SDK | Server-side integration, custom apps | go_sdk.md |
| Dart SDK | Mobile app integration (Flutter, etc.) | dart_sdk.md |
| Topic | Description | Reference File |
|---|---|---|
| Go Overview | Project structure, basic concepts, getting started | go_overview.md |
| Event Hooks | Before/After hooks, custom logic, automation | go_event_hooks.md |
| Routing | Custom API endpoints, middleware, handlers | go_routing.md |
| Database | Query builder, transactions, advanced queries | go_database.md |
| Records | Record CRUD, validation, custom fields | go_records.md |
| Collections | Dynamic schemas, collection management | go_collections.md |
| Migrations | Schema changes, version control, deployment | go_migrations.md |
| Jobs & Scheduling | Background tasks, cron jobs, queues | go_jobs_scheduling.md |
| Sending Emails | SMTP configuration, templated emails | go_sending_emails.md |
| Rendering Templates | HTML templates, email templates, PDFs | go_rendering_templates.md |
| Console Commands | CLI commands, migrations, maintenance | go_console_commands.md |
| Realtime | Custom realtime logic, event handling | go_realtime.md |
| File System | File storage, CDN, external storage providers | go_filesystem.md |
| Logging | Structured logging, monitoring, debugging | go_logging.md |
| Testing | Unit tests, integration tests, test helpers | go_testing.md |
| Miscellaneous | Advanced features, utilities, tips | go_miscellaneous.md |
| Record Proxy | Dynamic record behavior, computed fields | go_record_proxy.md |
| File | Description | Contents |
|---|---|---|
| Security Rules | Comprehensive security patterns | Owner-based access, role-based access, API rules |
| Schema Templates | Pre-built data models | Blog, E-commerce, Social Network, Forums, Task Management |
| API Reference | Complete API documentation | All endpoints, parameters, examples |
| Resource | Description | Location |
|---|---|---|
| Scripts | Executable utilities for development | scripts/ directory |
| Assets | Templates and configuration files | assets/ directory |
| Docker Config | Production-ready Docker setup | assets/docker-compose.yml |
| Caddy Config | Automatic HTTPS configuration | assets/Caddyfile |
| Frontend Template | HTML/JS integration example | assets/frontend-template.html |
| Collection Schema | Blank collection template | assets/collection-schema-template.json |
This skill is designed for efficient information retrieval. When researching PocketBase topics:
references/core/ for foundational knowledgereferences/api/ for specific API endpointsreferences/go/ for custom functionalityreferences/templates/ and references/security_rules.mdSetup & Configuration
Data Management
Security & Access Control
API Integration
Frontend Development
Backend Development
"How do I..."
"How to configure..."
"What's the best way to..."
"Error:..."
"Need to implement..."
/references/core/
āāā getting_started.md # Initial setup and concepts
āāā cli_commands.md # CLI commands and server management
āāā collections.md # Data modeling and collections
āāā authentication.md # User management
āāā api_rules_filters.md # Security and querying
āāā files_handling.md # File uploads and storage
āāā working_with_relations.md # Data relationships
āāā going_to_production.md # Deployment guide
/references/api/
āāā api_records.md # CRUD operations
āāā api_realtime.md # WebSocket subscriptions
āāā api_files.md # File management
āāā api_collections.md # Collection operations
āāā api_settings.md # App configuration
āāā api_logs.md # Logging
āāā api_crons.md # Background jobs
āāā api_backups.md # Backups
āāā api_health.md # Health checks
/references/go/
āāā go_overview.md # Getting started
āāā go_event_hooks.md # Event system
āāā go_routing.md # Custom routes
āāā go_database.md # Database operations
āāā go_records.md # Record management
āāā go_collections.md # Collection management
āāā go_migrations.md # Schema changes
āāā go_jobs_scheduling.md # Background tasks
āāā go_sending_emails.md # Email integration
āāā go_rendering_templates.md # Templates
āāā go_console_commands.md # CLI tools
āāā go_realtime.md # Custom realtime
āāā go_filesystem.md # File storage
āāā go_logging.md # Logging
āāā go_testing.md # Testing
āāā go_miscellaneous.md # Advanced topics
āāā go_record_proxy.md # Dynamic behavior
/references/sdk/
āāā js_sdk.md # JavaScript
āāā go_sdk.md # Go
āāā dart_sdk.md # Dart
/references/
āāā security_rules.md # Security patterns
āāā templates/
ā āāā schema_templates.md # Pre-built schemas
āāā api_reference.md # Complete API docs
This skill follows a modular architecture designed for progressive disclosure:
references/core/
references/api/
references/go/
references/sdk/
references/security_rules.md
references/templates/
This skill contains over 30 reference files covering all aspects of PocketBase development. The researcher-pocketbase agent should:
Each reference file is self-contained with examples, explanations, and best practices. Use the table of contents above to quickly navigate to the most relevant information for any PocketBase-related question.