Skip to content
1 viewer
View

Recipe reference

2 pages, 10 routes, 10 connections and 0 CLI commands, generated from the declarations of Recipe without reading storage or running anything.

AboutCode

Code · 0 files

No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.

Pages · 4

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Overviewrecipe.homehome/view/recipe0in navigation
Recipe detailsrecipe.itemdetail/view/recipe/{recipe}0recipe.indexRecipehidden
Shop menurecipe.menucustom/view/recipe/menu/{shop}0recipe.indexShophidden
Listrecipe.indexlist/view/recipe/list20Recipein navigation
4 rows

Connections · 10

Recipe.Cook

Execute a recipe (the kitchen analog of Fabrication.Complete): dispatches Item.Upsert (the dish), Manufacture.StepCreate (ingredients in -> dish out, cook as actor), and Inventory.Receive (servings land as stock) by connection name, best-effort; optionally Food.Source announces the prepared meal, and record_meal=true logs the eaten portion (default one serving) via Food.RecordMeal so it folds into Health nourishment. With consume_stock=true each ingredient is drawn down via Inventory.Sell; when every line draws AND the meal is fully covered by the nutrient catalog, the `diet.attested.v1` contract mints 1 cre8/diet/{subject_id}/attested_meal. Self-reported meals never mint. Records a RecipeCook vertex. An industrial recipe writes one lot-bearing Manufacture.StepCreate per process stage, each stage's lot consuming the previous one; ingredient_lots names the raw lots the first stage consumes, and a home recipe given ingredient_lots is recorded as a cook-stage lot.

Recipe.Cook input
FieldTypeRequiredDescriptionAllowed
reciperequired
cookoptional
scaleoptional
location_refoptional
announce_foodoptional
record_mealoptional
subject_idoptional
servings_eatenoptional
consume_stockoptional
ingredient_lotsoptional
origin_refoptional
batch_kgoptional
batch_idoptional
13 rows
Calls and output
  • Output keyrecipe.result
  • Classificationreal
  • POST /recipe/cookHTTP route

Recipe.CookList

List cook executions, optionally filtered by recipe.

Recipe.CookList input
FieldTypeRequiredDescriptionAllowed
recipeoptional
1 row
Calls and output
  • Output keyrecipe.result
  • Classificationroute_handler
  • GET /recipe/cooksHTTP route

Recipe.Get

Get one recipe with its cook history.

Recipe.Get input
FieldTypeRequiredDescriptionAllowed
reciperequired
1 row
Calls and output
  • Output keyrecipe.result
  • Classificationroute_handler
  • GET /recipe/recipeHTTP route

Recipe.List

List recipes, optionally filtered by cuisine or tag.

Recipe.List input
FieldTypeRequiredDescriptionAllowed
cuisineoptional
tagoptional
2 rows
Calls and output
  • Output keyrecipe.result
  • Classificationroute_handler
  • GET /recipe/recipesHTTP route

Recipe.Nutrition

Project a recipe's ingredients onto the Food nutrient model: dispatches Food.AnalyzeMeal by connection name in partial mode, so ingredients the catalog does not carry are reported in missing_foods with a coverage fraction instead of failing. Defaults to one serving (scale / yield_servings); pass per_serving=false for the whole batch.

Recipe.Nutrition input
FieldTypeRequiredDescriptionAllowed
reciperequired
scaleoptional
per_servingoptional
goalsoptional
target_shareoptional
5 rows
Calls and output
  • Output keyrecipe.result
  • Classificationroute_handler
  • GET /recipe/nutritionHTTP route

Recipe.Plan

Recipe.Plan input
FieldTypeRequiredDescriptionAllowed
daysrequired
meals_per_dayoptional
goalsoptional
allergensoptional
patternsoptional
excluded_food_idsoptional
6 rows
Calls and output
  • Output keyrecipe.result
  • Classificationunclassified
  • POST /recipe/planHTTP route

Recipe.Status

Recipe subsystem status (recipe + cook counts).

Calls and output
  • Output keyrecipe.result
  • Classificationroute_handler
  • GET /recipe/statusHTTP route

Recipe.SupperClub

Serve a menu — the Event × Cook × Shop composition: (optionally) Event.Create the occasion, cook each dish (Recipe.Cook, recording Manufacture provenance), and list each in a Shop via Shop.ItemUpsert carrying its manufacture_step_id so the storefront inherits the farm→dish lineage. Per-dish best-effort, all by connection name.

Recipe.SupperClub input
FieldTypeRequiredDescriptionAllowed
shoprequired
menurequired
cookoptional
event_idoptional
4 rows
Calls and output
  • Output keyrecipe.result
  • Classificationreal
  • POST /recipe/supper-clubHTTP route

Recipe.Upsert

Register or update a recipe: ingredients (item refs + quantities, Farm-crop-aligned), sequenced steps (the kitchen stage spine), yield, allergens, cuisine. industrial=true adds a plant formulation: yield_pct/loss_pct, batch_kg, an optional origin_ref and ordered process_stages (food_stage, food_id, yield_pct per stage).

Recipe.Upsert input
FieldTypeRequiredDescriptionAllowed
namerequired
ingredientsrequired
stepsrequired
yield_servingsoptional
cuisineoptional
industrialoptional
yield_pctoptional
loss_pctoptional
batch_kgoptional
process_stagesoptional
origin_refoptional
11 rows
Calls and output
  • Output keyrecipe.result
  • Classificationreal
  • POST /recipe/recipeHTTP route

Recipe.ViewPatch

Live-patch frame for the recipe document views: index strip (no params) or one recipe's cook-count strip (?recipe={slug}).

Recipe.ViewPatch input
FieldTypeRequiredDescriptionAllowed
recipeoptional
1 row
Calls and output
  • Output keyrecipe.result
  • Classificationroute_handler
  • GET /recipe/document/patchHTTP route

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerRecipe
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • cre8/diet/{subject_id}/attested_meal
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Hyperdb

Structure review · 2

Warnings · 2