Skip to main content

Heard Recipe Format · Version 1.0

An open format for recipes that carry their allergens.

HRF is the native import and export format for Heard Recipes. It keeps full fidelity — ingredients, directions with embedded timers, per-ingredient allergen data, tags and metadata. Any app or service can read and write it.

File format

  • File extension: .json (recommended: .hrf.json)
  • MIME type: application/json
  • Encoding: UTF-8
  • Top-level structure: a single JSON object with metadata and a recipes array
{
  "heard_format_version": "1.0",
  "exported_at": "2026-04-01T12:00:00.000Z",
  "recipe_count": 2,
  "recipes": [ ... ]
}

Top-level schema

Field Type Description
heard_format_version string required — Format version. Currently "1.0".
exported_at string optional — ISO 8601 timestamp of export.
recipe_count integer optional — Number of recipes in the file.
recipes array required — Array of recipe objects.

Recipe object

Field Type Description
title string required — Recipe name.
description string|null optional — Short description or intro.
source_url string|null optional — Original URL the recipe was clipped from.
servings integer|null optional — Number of servings.
prep_time integer|null optional — Prep time in minutes.
cook_time integer|null optional — Cook time in minutes.
directions array required — Array of direction step objects.
notes string|null optional — Freeform notes.
rating integer|null optional — 1–5 star rating.
recipe_type string optional — "main" or "prep". Defaults to "main".
department string|null optional — "kitchen" or "bar".
allergens array optional — Aggregated allergen keys for the whole recipe.
ingredients array required — Array of ingredient objects.
tags array optional — Array of tag objects.

Ingredient object

Field Type Description
name string required — Ingredient name (e.g. "all-purpose flour").
quantity number|null optional — Numeric quantity (e.g. 2.5).
unit string|null optional — Unit of measurement (e.g. "cups", "tbsp").
section string|null optional — Ingredient group heading (e.g. "For the sauce").
allergens array optional — Allergen keys present in this ingredient.

Direction step object

Field Type Description
step string required — The instruction text.
timer_seconds integer|null optional — Detected cooking timer in seconds. null if none.

Tag object

Field Type Description
tag string required — Tag value (e.g. "Italian", "Grill", "Vegan").
category string required — One of: station, bar, dietary, cuisine, meal, custom.

Allergen keys

Heard tracks the FDA Big 9 allergens plus gluten. Only these string values are valid in allergen arrays. Gluten is tracked separately from wheat because it also covers barley, rye and triticale.

milkeggsfishshellfishtree_nutspeanutswheatsoybeanssesamegluten

A complete file

{
  "heard_format_version": "1.0",
  "exported_at": "2026-04-01T12:00:00.000Z",
  "recipe_count": 1,
  "recipes": [
    {
      "title": "Classic Carbonara",
      "description": "Roman-style pasta with guanciale, egg, and pecorino.",
      "source_url": "https://example.com/carbonara",
      "servings": 4,
      "prep_time": 10,
      "cook_time": 20,
      "recipe_type": "main",
      "department": "kitchen",
      "allergens": ["wheat", "gluten", "eggs", "milk"],
      "ingredients": [
        {
          "name": "spaghetti",
          "quantity": 400,
          "unit": "g",
          "section": null,
          "allergens": ["wheat", "gluten"]
        },
        {
          "name": "egg yolks",
          "quantity": 6,
          "unit": null,
          "section": null,
          "allergens": ["eggs"]
        },
        {
          "name": "pecorino romano",
          "quantity": 100,
          "unit": "g",
          "section": null,
          "allergens": ["milk"]
        }
      ],
      "directions": [
        {
          "step": "Bring a large pot of salted water to a boil. Cook spaghetti until al dente.",
          "timer_seconds": 600
        },
        {
          "step": "Cut guanciale into strips and render in a cold pan over medium heat until crispy.",
          "timer_seconds": 480
        },
        {
          "step": "Whisk egg yolks with grated pecorino and generous black pepper.",
          "timer_seconds": null
        }
      ],
      "tags": [
        { "tag": "Italian", "category": "cuisine" },
        { "tag": "Dinner", "category": "meal" },
        { "tag": "Sauté", "category": "station" }
      ],
      "notes": "Use real guanciale, not pancetta or bacon. The fat matters.",
      "rating": 5
    }
  ]
}

Importing into Heard

In the app, go to Settings → Import & Export → Import from JSON (HRF) and pick your file. Heard will:

  • Validate the heard_format_version field.
  • Skip any recipe whose title and source URL already exist in your library.
  • Auto-detect allergens for any ingredient missing allergen data.
  • Show progress and a summary when it finishes.

Exporting from Heard

Go to Settings → Import & Export → Export Recipes as JSON. That produces a valid HRF file containing every non-archived recipe, with full ingredient, direction, tag and allergen data.

Notes for implementers

  • Unknown fields should be ignored silently, so the format can grow without breaking your parser.
  • All string fields are UTF-8.
  • Times are minutes (prep_time, cook_time) or seconds (timer_seconds).
  • Quantities are numeric, never fractions — 0.5, not "1/2".
  • A recipe's allergens array is the union of its ingredients' allergens. Importers may recompute it.
  • The format is versioned, and future versions stay backward-compatible within the same major version.

Building something against HRF? Tell us what you need — support@heardrecipes.com.

Heard Recipes

Your recipes, in a format you can take with you.

Export the whole library any time. No lock-in, no proprietary blob.

Download on the App StoreGet it on Google Play