pocketbase-sdk

Implement PocketBase JS SDK CRUD, filtering, auth, and file uploads for TableRelay.

1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/s0lci700/OVERLAYS --skill pocketbase-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pocketbase-sdk
Source: https://github.com/s0lci700/OVERLAYS/tree/main/.claude/skills/pocketbase-sdk
Command: npx skills add https://github.com/s0lci700/OVERLAYS --skill pocketbase-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide provides a centralized reference for using the PocketBase JavaScript SDK with TableRelay, standardizing CRUD patterns, filtering, auth flows, file uploads, realtime subscriptions, and error mapping so developers can write and review integration code confidently.

Core Features & Use Cases

  • CRUD patterns with the pocketbase SDK for table records across frontend and backend layers.
  • Filtering & queries including safe filters, expands, selects, and pagination.
  • Error mapping to a consistent ServiceError type and centralized handling.
  • Auth & file uploads integration guidance for admin vs user scopes and file handling.

Quick Start

Review the PocketBase JS SDK reference to implement CRUD, filtering, auth, and file uploads in your TableRelay integration.

Frequently Asked Questions about pocketbase-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle PocketBase JS SDK errors consistently in my app?

To handle PocketBase JS SDK errors consistently, map them to a centralized ServiceError type. This standardizes error handling across frontend and backend layers so you can manage failures confidently without scattered try-catch blocks.

What is the correct pattern for querying and filtering PocketBase records in TypeScript?

The correct pattern for filtering PocketBase records involves using safe filters, expands, and selects within centralized backend initialization functions. This avoids direct collection calls in UI code and ensures queries remain type-safe and maintainable.

How do I set up realtime subscriptions with the PocketBase JavaScript SDK?

You can set up realtime subscriptions with the PocketBase JavaScript SDK by applying enforced realtime patterns during your backend initialization. This ensures your application receives live record updates reliably across both frontend and backend code layers.

How do I manage authentication and file uploads using the PocketBase SDK?

Managing authentication and file uploads with the PocketBase SDK requires distinguishing between admin and user scopes. The integration guidance standardizes these auth flows and file handling operations to ensure secure and consistent data management.

Why should I avoid direct PocketBase collection calls in my frontend UI code?

You should avoid direct PocketBase collection calls in UI code to enforce central patterns and separation of concerns. Routing SDK interactions through a centralized backend or initialization layer ensures consistent error mapping and safer query execution.

Can I use the PocketBase JS SDK for standard CRUD operations across both frontend and backend layers?

Yes, you can use the PocketBase JS SDK for standard CRUD operations across frontend and backend layers. The guide provides standardized patterns for creating, reading, updating, and deleting records to ensure reliable TableRelay integrations.