AWS Builder Center

Weekend Annoying Task Challenge: FridgeToPlate AI

Tired of staring into an open fridge wondering what to cook? FridgeToPlate AI is a serverless web app built with Amazon Bedrock (AWS Nova Lite), AWS Lambda, and AWS Amplify that converts a single fridge photo into personalized, step-by-step recipes in seconds while cutting down food waste.

Weekend Annoying Task Challenge: FridgeToPlate AI




Vision & What the App Does

The Annoying Task: "What's for Dinner?" and Preventable Food Waste

Every evening around 6:00 PM, millions of people experience the exact same friction point: standing in front of an open refrigerator, staring at a random assortment of ingredients, half a bell pepper, a block of tofu, a quarter-carton of heavy cream, and a handful of spinach, and feeling completely paralyzed by decision fatigue.
This daily chore involves three annoying friction points:
  1. Manual Inventory Tracking: Forgetting what is sitting in the back of the fridge drawer until it spoils.
  1. Recipe Brainstorming Fatigue: Spending 20 minutes scrolling through cooking blogs filled with endless backstories just to find a recipe that uses only what you currently have.
  1. Preventable Food Waste: Throwing away usable groceries simply because you couldn't figure out how to combine them into a coherent meal.

The Solution: FridgeToPlate AI

FridgeToPlate AI is a lightweight, serverless full-stack web application that completely automates dinner planning and fridge triage.
Instead of typing out lists or digging through cookbooks, you simply take a single photo of your open refrigerator or pantry. FridgeToPlate AI automatically:
  • Identifies every visible ingredient using multimodal AI.
  • Triages items based on estimated freshness and urgency of use.
  • Generates three custom, step-by-step recipes matched to your stored dietary preferences.



How You Built It

Development Process & Key Decisions

The primary goal for this weekend build was speed, simplicity, and low operational overhead. I chose a serverless backend powered by AWS Lambda and Amazon Bedrock Nova models, coupled with a fast frontend hosted on AWS Amplify.
  1. Frontend Interface: Built using HTML5, JavaScript, and Tailwind CSS for a mobile-first, responsive UI. Users can drag-and-drop or snap a picture directly from their phone camera.
  1. Client-Side Image Optimization: Implemented HTML5 Canvas auto-compression to scale high-res phone photos down to under 300 KB, ensuring rapid payloads and avoiding serverless timeouts.
  1. Serverless Orchestration: Used Python-based AWS Lambda functions exposed directly via Function URLs with CORS support to handle AI invocation seamlessly.
  1. Multimodal Intelligence: Selected Amazon Bedrock using the AWS Nova Lite model ( us.amazon.nova-lite-v1:0 ) to perform zero-shot image recognition and structured JSON generation in a single inference call.

Challenges & Solutions

  • Challenge 1: Unstructured Model Output & Hallucinations
  • Solution: Implemented strict JSON Schema enforcement inside the Amazon Bedrock prompt. By instructing Bedrock to return strictly validated JSON containing keys for  ingredients ,  freshness , and  recipes , the frontend renders clean, structured recipe cards instantly.
  • Challenge 2: CORS Preflight & Multiple Header Duplication
  • Solution: Managed CORS headers directly through AWS Lambda Function URL configuration while streamlining backend Python headers to prevent browser header duplication ( *, * ) and ensure secure cross-origin communication from AWS Amplify.



AWS Services Used & Architecture Overview

AWS Services Utilized

  • AWS Amplify: Hosts and automatically serves the frontend web application globally.
  • AWS Lambda: Handles application logic, image pre-processing, Bedrock orchestration, and JSON parsing without managing servers.
  • Amazon Bedrock (AWS Nova Lite): Processes multimodal visual inputs to detect groceries and crafts personalized, highly specific culinary recipes.

Execution Workflow

  1. Trigger Phase: The user snaps a photo of their fridge or pantry on the AWS Amplify frontend.
  1. Compression & Transfer: JavaScript resizes the image on canvas and sends an HTTP POST payload to the AWS Lambda Function URL.
  1. AI Inference: The Lambda function calls Amazon Bedrock ( us.amazon.nova-lite-v1:0 ) via  boto3 .
  1. Response Parsing: Bedrock extracts ingredients and formats 3 recipes into JSON, returning the output directly to render recipe cards on the user's dashboard.



What You Learned

Building FridgeToPlate AI provided several high-value technical takeaways:
  • Multimodal Prompts on Amazon Bedrock: Leveraging AWS Nova Lite directly through the Bedrock unified API ( boto3 ) eliminated the need to integrate separate computer vision libraries. A single multimodal model can simultaneously identify visual context and perform complex creative reasoning.
  • Serverless CORS Architecture: Gained deep practical knowledge in configuring AWS Lambda Function URLs with CORS for web client integration.
  • Speed of Serverless: Combining AWS Amplify, Lambda, and Amazon Bedrock enabled building a fully deployed, production-ready generative AI app in just a few hours within the AWS Free Tier.



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