AWS Builder Center
Weekend Productivity Challenge: Smart Recipe Generator

Weekend Productivity Challenge: Smart Recipe Generator

Smart Recipe Generator is an AI-powered kitchen assistant that helps you decide what to cook using the ingredients you already have. Simply enter the ingredients available in your kitchen along with your nutrition goals, such as protein and carbs, and the AI generates a personalized recipe.

Stop thinking about what to cook. Save your time for the bugs 😂

1. Vision & What the App Does

Every evening a familiar question shows up in most kitchens: "What should I eat today?" You open the fridge, stare at a handful of vegetables, remember you're supposed to hit a protein target, and end up either ordering takeout or cooking the same thing again. The Smart Recipe Generator turns that daily decision into a five-second task.
The idea is simple. You tell the app two things:
  1. The ingredients you already have — for example spinach, tomatoes, paneer, onions.
  1. Your diet plan — target carbohydrates and protein in grams, based on your health goals.
The app then asks an AWS Bedrock generative model to design a personalized recipe that fits both constraints. Within seconds you get back a complete recipe: a title, the exact ingredient components with quantities, clear step-by-step preparation instructions, and a nutritional breakdown showing estimated calories, carbs, and protein. If you set targets, the app shows how the recipe compares against them so you know at a glance whether it fits your plan.
Every recipe you generate is saved automatically, so you build up a personal history you can revisit any time you want to cook something you liked before.

The problem it solves is real: it removes decision fatigue, cuts food waste by using what you already own, and keeps you aligned with your nutrition goals — all without a nutritionist or hours of meal planning.

2. How I Built It

I started by writing a proper spec before touching any code. Nailing down the requirements first — ingredient input rules, diet-plan validation, recipe generation, nutritional breakdown, persistence, display, and Free Tier deployment — meant I never had to guess what "done" looked like.
Key decisions along the way:
  • Bedrock over a custom model. Training or hosting my own model was out of scope for a weekend. Amazon Bedrock (with an Amazon Nova model) gave me high-quality recipe generation through a single API call, no infrastructure to manage.
  • Serverless everything. A Lambda function orchestrates the whole flow — receive the request, prompt the model, validate the response, persist it, and return the recipe. No servers to patch or keep running.
  • Structured prompting. The trickiest part was getting the model to return a reliable, structured recipe (title, steps, ingredients with quantities, nutrition). I solved this by asking for a strict JSON shape and validating it on the way back. If a field is missing, the service rejects it as an invalid recipe instead of showing the user broken output.
The biggest challenge was reliability of the model output. Early prompts sometimes returned prose instead of structured data. Tightening the prompt, requesting JSON explicitly, and adding server-side validation (with a 30-second timeout so the UI never hangs) fixed it. Error and loading states were built in from the start so the app always feels responsive, even when generation is slow.

3.AWS Services Used / Architecture Overview

The architecture is fully serverless and designed to stay inside the AWS Free Tier.
  • AWS Amplify — hosts and serves the front-end web UI.
  • AWS Lambda — the serverless back-end that orchestrates recipe generation and persistence.
  • Amazon Bedrock (Amazon Nova model) — generates the personalized recipe and nutritional breakdown.
  • Amazon DynamoDB — a managed NoSQL database that stores each generated recipe, its ingredients, diet plan, and creation timestamp.
  • Amazon API Gateway / Amplify API — exposes the Lambda endpoint to the front end.
Flow:

Every service in this stack has a Free Tier allowance, so a personal-scale app runs at effectively zero cost.

4.What I Learned

This challenge taught me how far you can get with managed AWS services in a single weekend. A few takeaways:
  • Bedrock makes GenAI approachable. I didn't need ML expertise — just good prompt design and output validation.
  • Prompt engineering is real engineering. Getting consistent, structured output was the difference between a demo and something usable.
  • Serverless keeps you focused on the product. With Lambda, DynamoDB, and Amplify, I spent my time on the user experience instead of infrastructure.
  • Spec-first pays off under time pressure. Writing requirements before code kept scope tight and prevented rabbit holes.

5.Link to App or Repo

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article