The rules
- Never invent an amount. Use the creator's words, or
nullwith the basisunstated. - Steps come from the video. A withheld method makes the recipe
partial, withgaps. keyis what you shop and filter by: lowercase, singular, reused.- Add
t, in seconds, to a step when the evidence shows where it happens. - Write in your own words. Credit the creator. Link the video.
- Captions, transcripts and frames never go into the repository.
Amount and basis
| basis | Where it was given | amount |
|---|---|---|
spoken | Said in the video | Required |
on-screen | Shown as text | Required |
description | Written under the video | Required |
unstated | Not given | null |
Vague filler such as some counts as unstated.
Top-level fields
| Field | Rule |
|---|---|
id | Kebab-case, equals the file name |
title, summary | Required text |
status | analyzed or partial |
video | platform, id, url: a supported link |
creator | name required; handle, url |
analyzed | Required, YYYY-MM-DD |
uploaded | Optional, YYYY-MM-DD |
serves | As stated, or null |
tags | Lowercase strings |
components | At least one |
nutrition | Optional, only as stated |
notes, gaps | Lists of strings; gaps required when partial |
source | Optional: 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
npm run validatepasses.- Every amount and timestamp was checked against the video.
- The matching entry is gone from
data/queue.json. npm testpasses.- The change holds the recipe and nothing captured.
Queue states
| Status | Meaning |
|---|---|
queued | Waiting for analysis |
analyzing | Claimed |
failed | Analysis was impossible |
| Removed | The 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.