pocketbase-sdk

Solid

JavaScript SDK usage for PocketBase client applications. Use when calling PocketBase from frontend or Node.js, authenticating users, subscribing to realtime events, uploading files, or working with the PocketBase JS/TS SDK. Covers CRUD, auth flows, authStore, realtime SSE, file handling, batch operations, and query syntax.

Web & Frontend 27,984 stars 2901 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PocketBase JavaScript SDK ## Installation & Setup ```bash npm install pocketbase # or yarn add pocketbase # or <script src="https://cdn.jsdelivr.net/npm/pocketbase@0.36.6/dist/pocketbase.umd.js"></script> ``` ```js import PocketBase from 'pocketbase' const pb = new PocketBase('http://127.0.0.1:8090') ``` ## CRUD Operations ### List records ```js const records = await pb.collection('posts').getList(1, 20, { filter: 'status = "active" && created > "2024-01-01"', sort: '-created,title', expand: 'author,tags', fields: 'id,title,author,created', // partial response skipTotal: true, // skip COUNT query for better performance }) // records.page, records.perPage, records.totalItems, records.totalPages, records.items ``` ### Get full list (auto-paginate) ```js const allRecords = await pb.collection('posts').getFullList({ filter: 'status = "active"', sort: '-created', batch: 200, // records per request (default: 200) }) ``` ### View single record ```js const record = await pb.collection('posts').getOne('RECORD_ID', { expand: 'author', }) ``` ### Get first matching record ```js const record = await pb.collection('posts').getFirstListItem('slug = "my-post"', { expand: 'author', }) ``` ### Create record ```js const record = await pb.collection('posts').create({ title: 'My Post', body: 'Content here', author: 'USER_ID', status: 'draft', }) ``` ### Update record ```js const record = await pb.collection('posts').u...

Details

Author
davila7
Repository
davila7/claude-code-templates
Created
11 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category