.png?width=160)
Pocketbase Query
Simplify Your PocketBase Queries
FreeOpen SourceFrameworkHelpers4,771 impressions#7 of its week
PocketBase Query is a TypeScript library that provides a fluent, type-safe API to build PocketBase filter queries.
- for
- TypeScript/JavaScript developers using PocketBase
- pricing
- open source
- license
- MIT
Key features
- Fluent chainable API — Build queries with intuitive, chainable methods that read like plain English.
- Type safety — Leverages TypeScript to catch errors at compile time.
- Rich operators — Supports equality, inequality, range, LIKE, array and custom operators.
- Logical grouping — Combine conditions with AND/OR and group them using brackets.
- Singleton instance — Provides a single reusable query builder via getInstance().
- Build & reset — generate the final query string with build() which also clears internal state.
Use cases
- Create complex filter strings for PocketBase collections without manual string concatenation
- Implement dynamic search filters in a TypeScript front-end app
- Generate reusable query snippets for server-side PocketBase requests
- Compose nested conditions and brackets for advanced data retrieval
Pocketbase Query FAQ
How do I install PocketBase Query?+
Run npm i @emresandikci/pocketbase-query and import it in your code.
How do I obtain a query builder instance?+
Call PocketbaseQuery.getInstance<YourType>() which follows the singleton pattern.
Can I add custom filter strings?+
Yes, use the customFilter(filter:string) method to inject any raw filter.
Does the library support array fields?+
The anyEqual and in methods handle equality and OR conditions for array fields.
What license is the library released under?+
It is released under the MIT License and is free to use and contribute to.
Is the query state cleared after building?+
Calling build() returns the query string and resets the internal state.
Summarized by DevHunt from github.com · Sep 28, 2026. Details may change; check the official site.













