Skip to content

Cookbook ​

Short, goal-oriented recipes for common Pondoknusa tasks. Each recipe assumes 6.0.x and links to guide chapters for depth.

Recipes ​

RecipeWhen to use it
Realtime UI with EchoPush server events to the browser over WebSockets
RAG Q&A endpointIngest documents and answer questions with retrieval
Testing with fakesAssert mail, notifications, and broadcasts in Vitest
Admin panelOptional CRUD UI with audit log
Multi-locale appsJSON locales, lang:publish, missing-key checks
Production observabilityHealth probes, structured logs, queue failure signals
Multi-tenant appsSubdomain tenancy with global scopes and channel isolation
Partial reload (HTMX/Turbo)Sub-100ms UI updates without full page reload
Edge response cacheCloudflare/Fly/nginx caching with ETag middleware
Deploy with CloudflareCDN + R2 + Node origin (not Workers-only)
Cloudflare deploymentCDN + R2 + Node origin (full guide)

Conventions ​

  • Recipes use pondoknusa new defaults (SQLite + database queue) unless noted.
  • Optional driver packages (@pondoknusa/redis-node, @pondoknusa/database-pg, …) are called out explicitly.
  • Stable vs experimental APIs follow API stability.

Contributing a recipe ​

Open a PR adding a page under docs/cookbook/ and register it in scripts/generate-docs.mjs tutorial/cookbook sidebar lists (or the generated sidebar.mts cookbook section).

Released under the MIT License.