Help: #howto Build Recipe "database" in Obsidian (complex)

Without thinking too much about it, I’d probably go for a combination of YAML, tags and DataviewJS (because it’s more flexible than pure Dataview and you could calculate nGL from the grams of an ingredient used in the recipe, maybe even divided by numer of portions).

So probably, for ingredients, something like this:

---
ingredient: watermelon
category: fruit
GI: 72
GL: 4  # per 100g
tags: [ingredient, fruit]
---

… description, notes …

### Used in these recipes

… some dataviewjs …

For recipes, something like this:

---
recipe: melon salad
category: dessert
serving: 100 g # blank-separated, so "unit" can be split
portions: 4
ingredients:
  - [watermelon, 80 g]
  - [sugar, 20 g]
tags: [recipe, dessert]
---

… some dataviewjs to show the ingredients …

… some dataviewjs to calculate totals from the ingredients, maybe combined GL, Insulin Index, or the like …

… preparation …

… notes …

Then maybe lists of recipes, categories, ingredients in separate notes, finding and summarizing all wanted information using DataviewJS.

Something like that. As I said, without thinking too much. All values are pure fake, except GI & GL of the watermelons.

Warning: This might turn out quite a job, especially all the DataviewJS stuff, and unit conversions (how many tbsp has a pitcher?, hee hee, Hint: 1 tbsp in Australia: 20 ml, in U.S., U.K. and most of Europe 15 ml).

3 Likes