> **pocketbase-better-auth** is a production-ready, open-source adapter that enables developers to use PocketBase as a robust backend store for the Better Auth library. It bridges the gap between modern, framework-agnostic authentication and PocketBase’s portable, real-time database capabilities.


pocketbase-better-auth is a specialized integration layer designed to combine the modern authentication capabilities of Better Auth with the ease of use of PocketBase. While PocketBase offers built-in auth, many developers require the advanced features of Better Auth (multi-framework support, extensive plugins, and granular session control) but still want to keep their data within the PocketBase ecosystem.
This adapter serves as the translation engine, allowing Better Auth to perform CRUD operations, session management, and user verification directly against a PocketBase instance, seamlessly handling the translation between SQL-like logic and PocketBase's API filter syntax.
Where clauses into PocketBase’s specific filter syntax.pocketbase.collections.json), allowing developers to instantly import the required user, session, and account structures into their database.parseWhere utility to reliably translate complex JSON-based query objects into PocketBase-compatible string filters.