Recipe Discovery

module_id
discover
source_nav_id
discover
user_facing_name
Discover
recipe_version
visual-recipe-v0.5
build
SmartPantry v0.1-rebuild (manual FvRE-style extraction, July 2026)

Purpose

Find new recipes. Search by ingredient, tag, name. Browse curated feeds.

recipe.json

{
  "schema_version": "visual-recipe-v0.5",
  "module_id": "discover",
  "name": "Recipe Discovery",
  "source_nav_id": "discover",
  "user_facing_name": "Discover",
  "purpose": "Find new recipes. Search by ingredient, tag, name. Browse curated feeds.",
  "behaviour": {
    "search_modes": [
      "name",
      "ingredient",
      "tag"
    ],
    "feed_formats": [
      "full card",
      "compact card"
    ],
    "filters": [
      "category",
      "cuisine",
      "time",
      "difficulty"
    ],
    "open_recipe": "drill into full recipe modal",
    "add_to_mealplan": "from modal"
  },
  "data": {
    "uses": "recipes.customRecipes + recipes.favorites + curated dataset"
  },
  "key_functions": [
    "openDiscoverRecipe",
    "renderDiscoverFeed",
    "renderDiscoverCard",
    "renderDiscoverCardCompact",
    "filterDiscover",
    "searchRecipesAndFilter",
    "selectRecipeSearchSuggestion",
    "findBestVariant"
  ],
  "files": {
    "html": "app/index.html#discover-tab",
    "css": "app/styles.css (feed + card classes)",
    "js": "app/modules/discover.js"
  },
  "tests": [
    "Search by name works",
    "Search by ingredient works",
    "Filter by category narrows feed",
    "Card click opens recipe modal",
    "Add to mealplan works from modal"
  ]
}

Rebuild decisions for this module


Part of the SmartPantry module-organised rebuild. Authored by hand following the FvRE Recipe Book pattern. Source: /workspace/smartpantry-app/recipe-book/discover/recipe.json