Docs

Recipe format cheat sheet.

One recipe is one JSON file: recipes/<id>.json. This page prints on one sheet.

The rules

  1. Never invent an amount. Use the creator's words, or null with the basis unstated.
  2. Steps come from the video. A withheld method makes the recipe partial, with gaps.
  3. key is what you shop and filter by: lowercase, singular, reused.
  4. Add t, in seconds, to a step when the evidence shows where it happens.
  5. Write in your own words. Credit the creator. Link the video.
  6. Captions, transcripts and frames never go into the repository.

Amount and basis

basisWhere it was givenamount
spokenSaid in the videoRequired
on-screenShown as textRequired
descriptionWritten under the videoRequired
unstatedNot givennull

Vague filler such as some counts as unstated.

Top-level fields

FieldRule
idKebab-case, equals the file name
title, summaryRequired text
statusanalyzed or partial
videoplatform, id, url: a supported link
creatorname required; handle, url
analyzedRequired, YYYY-MM-DD
uploadedOptional, YYYY-MM-DD
servesAs stated, or null
tagsLowercase strings
componentsAt least one
nutritionOptional, only as stated
notes, gapsLists of strings; gaps required when partial
sourceOptional: evidence, quantity_basis

Inside a component

{ "name": "Pan sauce",
  "ingredients": [
    { "item": "Chicken stock",
      "key": "chicken stock",
      "amount": "about 1 cup",
      "basis": "spoken",
      "note": "optional" },
    { "item": "Cold butter",
      "key": "butter",
      "amount": null,
      "basis": "unstated" }
  ],
  "steps": [
    { "text": "Deglaze with wine.", "t": 58 }
  ] }

Before you commit

  1. npm run validate passes.
  2. Every amount and timestamp was checked against the video.
  3. The matching entry is gone from data/queue.json.
  4. npm test passes.
  5. The change holds the recipe and nothing captured.

Queue states

StatusMeaning
queuedWaiting for analysis
analyzingClaimed
failedAnalysis was impossible
RemovedThe recipe file exists

Recipe Bank, MIT licensed. The enforced contract is lib/recipe.mjs in github.com/axeltoll/recipe-bank. The long version is the recipe format page.