pocketbase
0.26.0, released 9 days ago by pocketbase.io
Multi-platform Dart SDK for PocketBase open-source backend
WASM-ready
What it does
Provides a client SDK to communicate with the PocketBase backend, supporting authentication, CRUD record operations, file uploads, realtime subscriptions, and custom SQL/collection administration tools.
AI-written summary of version 0.26.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using PocketBase as your application's backend
- You need real-time data synchronization with your database
- You want built-in authentication and file upload handling
Skip it when
- You are using a different BaaS such as Firebase or Supabase
- You do not use PocketBase or need a relational client like standard SQL/ORM drivers
Strengths
- Official multi-platform SDK supporting Android, iOS, web, Windows, macOS, and Linux
- Built-in support for realtime updates and robust authentication options including OAuth2 and OTP
- Convenient helpers for filtering, file uploads, and optional HTTP client connection reuse
Weaknesses
- Tied strictly to the PocketBase backend server implementation
- Requires careful setup on Android 15+ or dual-stack networks for certain OAuth2 flows due to OS restrictions
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 2
Add the dependency with 'dart pub add pocketbase' or 'flutter pub add pocketbase', and initialize the client instance with your PocketBase server URL.
import 'package:pocketbase/pocketbase.dart';
final pb = PocketBase('http://127.0.0.1:8090');
final userData = await pb.collection('users').authWithPassword('test@example.com', '123456');Alternatives
Packages that do the same job and could replace pocketbase.
Works with
Packages commonly used together with pocketbase: ones it builds on, ones built on it, and its own family.