PocketBase Server-Side JavaScript (pb hooks) Runtime Basics - Files go in (must end with ) - Engine: goja — ES5.1 + some ES6. No ES6 modules ( / ), no async/await , no arrow functions in older versions . Use and CommonJS . - Each file is loaded on app start and on hot-reload - — absolute path to the pb hooks directory - TypeScript declarations: (auto-generated, useful for IDE support) - flag controls concurrent JS goroutines (default: 25) - Each handler runs in an isolated context — no shared mutable state between requests Routing Adding routes Path patterns - — named path parameter - — wildc…