In-Dashboard JavaScript Hook Studio
The JavaScript Hook Studio is a platform superpower allowing you to author, test, and deploy custom server-side event handlers and HTTP endpoints directly inside Pocket Kit with zero SSH or manual file editing.
⚡ Superpower Highlights
- CodeMirror 6 Editor: Real-time TypeScript linting, autocomplete, bracket matching, and Goja/Go syntax highlighting.
- 1-Click Recipe Marketplace: Pre-built recipes for Stripe Payments, Discord Notifications, Resend Emails, Telegram Bots, Rate Limiters, AI Summarizers, and Audit Trails.
- Live Event Mocking: Test HTTP routes,
onRecordCreate, andonRecordUpdatewith synthetic JSON payloads before deploying. - 4-Step AST Sandbox: Banned system call linting (
$os.cmd,$os.exec), ephemeral shadow boot, timeout enforcement, and atomic swapping. - Environment Vault Integration: Encrypted secrets automatically accessible via
$os.getenv("KEY").
📖 Complete Guide
For in-depth code recipes, payload samples, and lifecycle documentation, see the Full Server Hooks & JavaScript Guide.