🍽️ Healthy Recipe Generator 🥗

Select your dietary preference and get a healthy recipe!

Generated Recipe

Ingredients: ${filteredRecipe.ingredients}

Instructions: ${filteredRecipe.instructions}

`; } else { recipeOutput.innerHTML = `

No recipe found for that ingredient. Try a different one!

`; } } function downloadRecipe() { let content = document.getElementById("recipe-result").innerText; let blob = new Blob([content], { type: "text/plain" }); let link = document.createElement("a"); link.href = URL.createObjectURL(blob); link.download = "Healthy_Recipe.pdf"; link.click(); }

The Healthy Recipe Generator creates personalized healthy recipes based on dietary preferences and a main ingredient. Users can select a diet type (Balanced, Vegetarian, Vegan, Keto, Paleo, or High-Protein) and enter a main ingredient to generate a suitable recipe. The tool also provides a PDF download feature for easy saving and sharing.


User Guide

  1. Select Your Diet Type:

    • Choose from Balanced, Vegetarian, Vegan, Keto, Paleo, or High-Protein options.
  2. Enter a Main Ingredient:

    • Type in an ingredient (e.g., “Chicken”, “Tofu”, “Quinoa”).
  3. Generate Recipe:

    • Click “Get Recipe” to receive a detailed recipe.
  4. Download as PDF:

    • Click “Download Recipe (PDF)” to save your recipe.

Key Features

Personalized recipe suggestions – Get recipes based on your dietary preference.
Ingredient-based search – Find recipes that use your favorite ingredients.
PDF Download – Save and share recipes easily.
Modern UI – Clean, colorful, and stylish design.
Easy to use – Simple selection and instant results.