Javascript SDK
aiskillstore/marketplace
JavaScript/TypeScript SDK for inference.sh - run AI apps, build agents, integrate with all models.
Uses the official PocketBase JavaScript SDK (npm pocketbase) from browser or Node: authStore, collection CRUD, realtime subscribe, file uploads, and pb.send for custom routes.
$ npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pockethost/pockethost pocketbase-js-sdk --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/pocketbase-js-sdk .claude/skills/pocketbase-js-sdk && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "pocketbase-js-sdk" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-js-sdk into .claude/skills/pocketbase-js-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-js-sdk", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-js-sdkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pockethost/pockethost pocketbase-js-sdk --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/pocketbase-js-sdk .agents/skills/pocketbase-js-sdk && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pocketbase-js-sdk" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-js-sdk into .agents/skills/pocketbase-js-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-js-sdk", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pockethost/pockethost pocketbase-js-sdk --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/pocketbase-js-sdk .cursor/skills/pocketbase-js-sdk && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pocketbase-js-sdk" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-js-sdk into .cursor/skills/pocketbase-js-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-js-sdk", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pockethost/pockethost.git --path .cursor/skills/pocketbase-js-sdk--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pockethost/pockethost pocketbase-js-sdk --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/pocketbase-js-sdk .gemini/skills/pocketbase-js-sdk && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pocketbase-js-sdk" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-js-sdk into .gemini/skills/pocketbase-js-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-js-sdk", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pockethost/pockethost pocketbase-js-sdkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/pocketbase-js-sdk .github/skills/pocketbase-js-sdk && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pocketbase-js-sdk" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-js-sdk into .github/skills/pocketbase-js-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-js-sdk", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pockethost/pockethost pocketbase-js-sdk --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/pocketbase-js-sdk .opencode/skills/pocketbase-js-sdk && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pocketbase-js-sdk" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-js-sdk into .opencode/skills/pocketbase-js-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-js-sdk", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pocketbase-js-sdkUses the official PocketBase JavaScript SDK (npm pocketbase) from browser or Node: authStore, collection CRUD, realtime subscribe, file uploads, and pb.send for custom routes.
Pocketbase JS SDK is an agent skill from pockethost/pockethost. Uses the official PocketBase JavaScript SDK (npm pocketbase) from browser or Node: authStore, collection CRUD, realtime subscribe, file uploads, and pb.send for custom routes. Use when writing client apps, dashboard code, or Node scripts that call PocketBase over HTTP with async/await — not pbhooks.
Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `pockethost-client.md`).
It sits in Backend & APIs, covering File uploads and storage and Async programming. It works with JavaScript and npm. The repository describes itself as: Open source multitenant PocketBase server. The licence is MIT.
Read from SKILL.md and the folder at commit 82c9ba3. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Pocketbase JS SDK loads about 1k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 214 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from pockethost/pockethost at commit 82c9ba3, republished under its MIT licence (© pockethost). 214 words, ~1,018 tokens.
.claude/skills/pocketbase-js-sdk/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.The npm pocketbase package is an async HTTP client for PocketBase. It runs in browsers and Node — not inside the JSVM.
Official SDK: https://github.com/pocketbase/js-sdk
| JS SDK | JSVM (pb_hooks) |
|---|---|
async/await, Promises | Synchronous only |
new PocketBase(url) | $app, routerAdd, onRecord* |
| Browser / Node | Embedded in PocketBase binary |
Never use async/await or new PocketBase() inside *.pb.js hook files.
import PocketBase from 'pocketbase'
const pb = new PocketBase('https://my-project.pockethost.io')
// Auth
await pb.collection('users').authWithPassword(email, password)
pb.authStore.isValid // true when logged in
pb.authStore.model // auth record
pb.authStore.clear() // logout
// CRUD
const list = await pb.collection('posts').getList(1, 50, { filter: 'status = "published"' })
const one = await pb.collection('posts').getOne('RECORD_ID')
await pb.collection('posts').create({ title: 'Hello' })
await pb.collection('posts').update('RECORD_ID', { title: 'Updated' })
await pb.collection('posts').delete('RECORD_ID')// Register (auth collection)
await pb.collection('users').create({ email, password, passwordConfirm: password })
// OAuth2
await pb.collection('users').authWithOAuth2({ provider: 'google' })
// Refresh token
await pb.collection('users').authRefresh()
// Listen for auth changes
pb.authStore.onChange((token, model) => { /* ... */ })const unsub = await pb.collection('posts').subscribe('*', (e) => {
console.log(e.action, e.record)
})
// later
unsub()Always unsubscribe on component teardown to avoid leaks.
Hooks registered with routerAdd are called from the client via pb.send():
const result = await pb.send('/test/theTestId', { method: 'POST' })Auth headers are attached automatically when authStore is valid.
Pass a plain object as body. The SDK serializes it as JSON with the correct Content-Type:
await pb.send('/api/user/trusted-ips', {
method: 'PATCH',
body: { trusted_ips: ['203.0.113.5/32'] },
})On the hook side (≥ v0.23), read with e.bindBody(new DynamicModel({ trusted_ips: [] })) — not manual JSON.parse on e.request.body. See pocketbase-jsvm request-body.md.
const formData = new FormData()
formData.append('title', 'Photo')
formData.append('image', file)
await pb.collection('photos').create(formData)import { ClientResponseError } from 'pocketbase'
try {
await pb.collection('posts').create(data)
} catch (err) {
if (err instanceof ClientResponseError) {
console.log(err.status, err.response)
}
}Prefer direct client → PocketBase access with API rules. Avoid proxying through SvelteKit/Next server loaders unless you have a specific reason (see pocketbase skill, antipattern doc).
For privileged operations, add a JS hook route and call it with pb.send() instead of server-side SDK calls.
Import SDK types and class from pockethost/common, not directly from pocketbase:
import { PocketBase, ClientResponseError, BaseAuthStore } from 'pockethost/common'Prefer factory wrappers over raw new PocketBase() in app code. See pockethost-client.md.
© pockethost, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .cursor/skills/pocketbase-js-sdk of pockethost/pockethost.
Open the folder on GitHubat commit 82c9ba3
Pocketbase JS SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Pocketbase JS SDK this skillpockethost/pockethost | 1.4k | — | ~1k | Automated safety check: Pass | MIT | |
| Javascript SDKaiskillstore/marketplace | 430 | 1 repos | ~3.3k | Automated safety check: Pass | None | |
| Gemini Live API Devgoogle-gemini/gemini-skills | 4.3k | — | ~4.6k | Automated safety check: Pass | Apache-2.0 | |
| Linea Dependency MaintenanceConsensys-Incorporated/linea-attestation-registry | 177 | 1 repos | ~3.7k | Automated safety check: Warn | MIT | |
| Remixepicweb-dev/epicflare | 127 | — | ~6.3k | Automated safety check: Pass | None | |
| Sasjs Adaptersasjs/core | 132 | — | ~2.6k | Automated safety check: Pass | MIT |
aiskillstore/marketplace
JavaScript/TypeScript SDK for inference.sh - run AI apps, build agents, integrate with all models.
google-gemini/gemini-skills
A skill your agent uses when building real-time, bidirectional streaming applications with the Gemini Live API, or migrating legacy Live models (2.0/2.5/3.1) to Gemini 3.8 Live.
Consensys-Incorporated/linea-attestation-registry
Safely plan and execute dependency maintenance for JavaScript/TypeScript (npm, pnpm) and GitHub Actions, including npm lockfiles, pnpm workspaces, catalogs, overrides, SHA-pinned action versions…
epicweb-dev/epicflare
Build and review Remix 3 applications using the remix npm package and subpath imports.
sasjs/core
Frontend/Node integration with SAS backends using @sasjs/adapter - configuring the SASjs class, the exact request() inputs and response shape, authentication, file upload, and session management.
dotnet/skills
Establish MSBuild/.NET build performance baselines before optimizing.
pockethost/pockethost
Write PocketHost blog posts in Ben Allfree's voice (@cap'n).
pockethost/pockethost
Run pnpm check:push (lint, types, tests) before git push or PR-ready work.
pockethost/pockethost
Create scoped git commits from the current conversation (e.g.
pockethost/pockethost
Ship user-facing PocketHost features with a blog post instead of semver release notes.
pockethost/pockethost
Full Lemon Squeezy integration — REST API, @lemonsqueezy/lemonsqueezy.js server SDK, Lemon.js checkout overlays, webhooks, customdata, and subscriptions.
pockethost/pockethost
Models PocketBase backends: collections, relations, auth, API rules, migrations, and architecture.
Works with
Categories
Uses the official PocketBase JavaScript SDK (npm pocketbase) from browser or Node: authStore, collection CRUD, realtime subscribe, file uploads, and pb.send for custom routes. Pocketbase JS SDK is an agent skill from pockethost/pockethost.send for custom routes.
Pocketbase JS SDK fits situations like: writing client apps; Node scripts that call PocketBase over HTTP with async/await — not pbhooks.
Run `npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a claude-code`. Or copy the skill folder (.cursor/skills/pocketbase-js-sdk in pockethost/pockethost) into .claude/skills/pocketbase-js-sdk in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a codex`. Or copy the skill folder (.cursor/skills/pocketbase-js-sdk in pockethost/pockethost) into .agents/skills/pocketbase-js-sdk in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pockethost/pockethost --skill pocketbase-js-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pocketbase-js-sdk, .gemini/skills/pocketbase-js-sdk, .github/skills/pocketbase-js-sdk and .opencode/skills/pocketbase-js-sdk in your project.
SKILL.md names no scripts, command-line tools or credentials: Pocketbase JS SDK is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Pocketbase JS SDK is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Pocketbase JS SDK: Javascript SDK (aiskillstore/marketplace, 430 stars), Gemini Live API Dev (google-gemini/gemini-skills, 4.3k stars), Linea Dependency Maintenance (Consensys-Incorporated/linea-attestation-registry, 177 stars) and Remix (epicweb-dev/epicflare, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pockethost (a GitHub organization) maintains it in pockethost/pockethost, which has 1,444 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 28, 2026.
Source: pockethost/pockethost on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.