Skip to content

Cookbook

Short, goal-oriented recipes for common Tyravel tasks. Each recipe assumes 1.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

Conventions

  • Recipes use tyravel new defaults (SQLite + database queue) unless noted.
  • Optional driver packages (@tyravel/redis-node, @tyravel/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.