AWS Builder Center
Weekend Annoying Task Challenge: NutriSnap !!!

Weekend Annoying Task Challenge: NutriSnap !!!

Manual calorie tracking is repetitive and time-consuming. In this project, I built NutriSnap, an AI-powered app that analyzes meal photos, estimates calories and nutrition, and automatically logs meals using AWS services.

Weekend Annoying Task Challenge: NutriSnap




Vision & What the App Does

Calorie counting is one of those tasks that sounds simple but becomes insufferable in practice. Every meal means opening an app, searching for each food item, guessing portion sizes, scrolling through ten database entries for "rice," and manually entering macros. Do this three times a day, seven days a week, and you understand why most people abandon diet tracking within the first week.
NutriSnap replaces that entire workflow with a single action: take a photo.
The app uses Amazon Nova Lite's vision capabilities through Amazon Bedrock to analyze meal photos in real time. Point your camera at your plate, upload the image, and within seconds you get a complete nutritional breakdown — calories, protein, carbs, and fat — without typing a single thing.
Three core views:
  1. Snap Meal — Upload or capture a meal photo. AI identifies foods, estimates portions, and returns structured nutrition data.
  1. Dashboard — Real-time daily tracking with visual progress rings showing how close you are to your calorie and macro goals.
  1. Weekly Report — Auto-generated nutrition summary with daily breakdown, averages, and trends.
The annoying task it automates: weekly diet tracking through manual food logging. One photo now does what used to take 3-5 minutes of tedious data entry per meal.



How It Works

Step 1: Upload a Meal Photo

The user drops or captures a photo on the Snap Meal page. The interface supports drag-and-drop, file browser, and mobile camera capture.
Screenshot of the Snap Meal interface where a user uploads or captures a meal photo for AI-powered nutritional analysis.


Step 2: AI Returns Nutrition Breakdown

Amazon Nova Lite identifies food items, estimates portion sizes, and calculates macronutrients. Results appear instantly with confidence scoring.
Screenshot showing Amazon Nova Lite identifying food items and estimating nutritional information from the uploaded meal image.

Dashboard displaying detected food items, calories, protein, carbohydrates, fats, and other nutritional information.


Step 3: Track Progress Automatically

Every analyzed meal is stored in DynamoDB. The Dashboard aggregates today's intake into visual progress rings against configurable goals.
Dashboard displaying recent meals, nutrition history, and daily calorie tracking.


Step 4: Weekly Report Generation

At any point, the Weekly Report view aggregates all meal data into averages, totals, and per-day breakdowns.The Weekly Report automatically summarizes meal data collected throughout the week. It provides total calorie intake, average daily nutrition, and macronutrient distribution. Interactive charts help users identify dietary patterns and monitor progress over time. Since all data is generated from AI meal analysis, no manual logging is required.



How I Built It

I built NutriSnap in a single evening session with a clear constraint: end-to-end functionality first, polish second.
Backend first. I wrote three Python Lambda functions —  analyze_meal  (Bedrock + S3 + DynamoDB),  get_meals  (query history), and  weekly_report  (aggregation). Deployed the full stack via CloudFormation in one  aws cloudformation deploy  command. Tested the API with a raw image POST before touching any frontend code.
Frontend second. React 19 with Vite and Tailwind CSS 4. I chose a neobrutalism design style — thick black borders, vibrant solid colors, hard offset shadows — because it's visually distinctive and fast to implement without fussing over subtle gradients. Connected to the API Gateway endpoint, handled the base64 image flow, and built the dashboard components.
Key technical decisions:
  • Bedrock Converse API — unified interface that works across Nova and Claude models. One environment variable swap changes the model without touching code.
  • DynamoDB on-demand billing — zero cost at rest, no capacity planning for a weekend project.
  • State lifted to App level — prevents data loss when switching between tabs. Components stay mounted via CSS display toggling rather than conditional rendering.
  • CloudFormation over SAM/CDK — fewer dependencies. Just the AWS CLI and a YAML file.
Biggest challenge: Getting Nova Lite to return consistently parseable JSON. The model occasionally wraps responses in markdown code fences. I solved this by extracting the JSON substring between the first  {  and last  }  in the response rather than expecting a clean parse.



AWS Services Used / Architecture Overview

AWS Service
Role in NutriSnap
Amazon Bedrock (Amazon Nova Lite  amazon.nova-lite-v1:0 )
Vision AI — analyzes meal photos via the Converse API to identify foods and estimate nutrition
AWS Lambda (Python 3.12, 3 functions)
Serverless compute for analyze, query, and report endpoints
Amazon API Gateway
REST API with CORS support, routes to Lambda
Amazon DynamoDB
NoSQL store for meal records (composite key: userId + timestamp)
Amazon S3
Stores uploaded meal images and hosts the static frontend
AWS CloudFormation
Infrastructure as Code — entire stack defined in  template-cf.yaml 



Architecture Diagram

Architecture diagram showing NutriSnap built with Amazon Bedrock Nova Lite, AWS Lambda, API Gateway, DynamoDB, S3, and CloudFront.

How the agent is triggered: The user uploads a photo via the web UI. The frontend encodes it as base64 and sends a POST request to API Gateway. This triggers the  analyze_meal  Lambda, which stores the image in S3, sends it to Bedrock Nova Lite via the Converse API, parses the structured nutrition response, stores the result in DynamoDB, and returns the breakdown to the user.



What I Learned

Amazon Nova Lite is genuinely capable for vision tasks. I expected to need a heavier model for food recognition, but Nova Lite correctly identifies common foods, estimates reasonable portions, and structures output as requested. For a "good enough" calorie estimate from a photo, it delivers.
The Converse API simplifies everything. Instead of dealing with model-specific payload formats, the Converse API provides one consistent interface. Switching from Nova Lite to Claude (or back) is a single environment variable change — the code stays identical.
CloudFormation without SAM works fine for small stacks. More verbose, yes. But zero additional tooling. For a weekend project where you want to deploy fast and not debug CLI installation issues, raw CloudFormation with the AWS CLI is reliable.
Neobrutalism is an underrated design choice for MVPs. Thick borders and solid fills look intentional, not unfinished. It's faster to implement than polished glassmorphism or subtle shadows, and it makes the app instantly recognizable.
Serverless cold starts are acceptable for this UX pattern. Users expect a brief wait when "AI is analyzing" their photo. A 3-4 second cold start feels natural in that context — no one expects instant results from an AI analysis.



Links

Resource
URL
Live App (Vercel)
 https://awsgf-awrt.vercel.app/ 
Live App (AWS S3)
 http://nutrisnap-frontend-445527450587.s3-website-us-east-1.amazonaws.com 
GitHub Repo
 https://github.com/vaishnaviganesh25/aws-weekend-challenge-nutrisnap 


Built for the AWS Weekend Annoying Task Challenge, July 2026.
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