Recipe Book0.6.0

1.3Get started

Playground

Paste a recipe page’s HTML source, a schema.org Recipe in JSON-LD, or Recipe Book’s own recipe input. The playground reads it with @recipe-book/core, lists any problems with links to their docs, and renders the recipe with @recipe-book/react at any servings, in metric or US units. It opens with the pancakes from the Quickstart, and the address keeps what you paste, so a link shares it.

The Quickstart’s pancakes. Press Metric: the flour shows its 190 g equivalent, the buttermilk converts to 296 mL, and spoon amounts stay as written. See Author recipes.

Input

Detected recipe input JSON, read with parseRecipe(input, { parseIngredientLine }).

No problems

Preview

Buttermilk pancakes

Prep
10 min
Cook
15 min

Whole numbers from 1 to 4,000,000

Ingredients

  • 1 ½ cups all-purpose flour
  • 2 tbsp sugar
  • 2 tsp baking powder
  • 1 ¼ cups buttermilk
  • 2 eggs
  • 3 tbsp butter, melted
  • maple syrup, to serve

Steps

  1. Whisk the dry ingredients in a large bowl.
  2. Whisk the buttermilk, eggs, and butter, then fold into the dry ingredients.
  3. Cook ¼-cup portions on a buttered griddle, 2–⁠3 minutes per side.

Output

Recipe object

The data that parseRecipe returned, which is what Recipe.Root takes as recipe.

{
  "id": "buttermilk-pancakes",
  "name": "Buttermilk pancakes",
  "servings": {
    "amount": 4
  },
  "system": "us",
  "times": {
    "prep": 10,
    "cook": 15,
    "custom": []
  },
  "ingredients": [
    {
      "id": "ingredients",
      "items": [
        {
          "id": "all-purpose-flour",
          "name": "all-purpose flour",
          "quantity": {
            "amount": 1.5,
            "unit": "cup"
          },
          "equivalents": [
            {
              "amount": 190,
              "unit": "g"
            }
          ],
          "optional": false
        },
        {
          "id": "sugar",
          "name": "sugar",
          "quantity": {
            "amount": 2,
            "unit": "tbsp"
          },
          "equivalents": [
            {
              "amount": 25,
              "unit": "g"
            }
          ],
          "optional": false
        },
        {
          "id": "baking-powder",
          "name": "baking powder",
          "quantity": {
            "amount": 2,
            "unit": "tsp"
          },
          "equivalents": [],
          "optional": false
        },
        {
          "id": "buttermilk",
          "name": "buttermilk",
          "quantity": {
            "amount": 1.25,
            "unit": "cup"
          },
          "equivalents": [],
          "optional": false
        },
        {
          "id": "egg",
          "name": "egg",
          "plural": "eggs",
          "quantity": {
            "amount": 2
          },
          "equivalents": [],
          "optional": false
        },
        {
          "id": "butter",
          "name": "butter",
          "quantity": {
            "amount": 3,
            "unit": "tbsp"
          },
          "equivalents": [
            {
              "amount": 42,
              "unit": "g"
            }
          ],
          "note": "melted",
          "optional": false
        },
        {
          "id": "maple-syrup",
          "name": "maple syrup",
          "equivalents": [],
          "note": "to serve",
          "optional": false
        }
      ]
    }
  ],
  "steps": [
    {
      "id": "steps",
      "items": [
        {
          "id": "step-1",
          "text": "Whisk the dry ingredients in a large bowl."
        },
        {
          "id": "step-2",
          "text": "Whisk the buttermilk, eggs, and butter, then fold into the dry ingredients."
        },
        {
          "id": "step-3",
          "text": "Cook ¼-cup portions on a buttered griddle, 2–3 minutes per side."
        }
      ]
    }
  ],
  "notes": [],
  "equipment": []
}
schema.org JSON-LD

What toJsonLd writes at 4 servings in US units.

  • image Add an image. Google requires one for recipe results. missing_field
{
  "@context": "https://schema.org",
  "@type": "Recipe",
  "name": "Buttermilk pancakes",
  "recipeYield": [
    "4",
    "4 servings"
  ],
  "prepTime": "PT10M",
  "cookTime": "PT15M",
  "recipeIngredient": [
    "1 ½ cups (190 g) all-purpose flour",
    "2 tbsp (25 g) sugar",
    "2 tsp baking powder",
    "1 ¼ cups buttermilk",
    "2 eggs",
    "3 tbsp (42 g) butter, melted",
    "maple syrup, to serve"
  ],
  "recipeInstructions": [
    {
      "@type": "HowToStep",
      "text": "Whisk the dry ingredients in a large bowl."
    },
    {
      "@type": "HowToStep",
      "text": "Whisk the buttermilk, eggs, and butter, then fold into the dry ingredients."
    },
    {
      "@type": "HowToStep",
      "text": "Cook ¼-cup portions on a buttered griddle, 2–3 minutes per side."
    }
  ]
}