Pocketbase Jsvm

Writes PocketBase server-side JavaScript in the Goja JSVM: pb_hooks, routerAdd, record hooks, cron jobs, and synchronous $app APIs. Use for *.pb.js files, pb_hooks, pb_migrations JS, or server-side PocketBase extensions — not the npm JS SDK. Read quirks.md for Goja gotchas (toString, json fields, hoisting, BadRequestError). Always check target PocketBase version: v0.22 and v0.23+ use different JSVM APIs and docs. PocketBase watches pb_hooks JS on disk and hot-reloads hooks inside the running process without exiting.

pockethost b9391be 7 files · 39.5 KB Updated

File contents

pockethost/pockethost/tree/main/.cursor/skills/pocketbase-jsvm commit b9391bedc4

Frequently asked questions

npx skillmds@latest add pockethost/pocketbase-jsvm