This document describes the high-level architecture of the NutriSense AI application.
NutriSense AI is a full-stack web application designed to provide intelligent, AI-powered nutrition analysis and personalized meal planning. It leverages Google Gemini for image analysis (food recognition) and Anthropic Claude for detailed nutritional breakdown and recipe generation.
- Frontend: React + Vite
- Styling: Tailwind CSS + Framer Motion
- 3D Hub: Three.js (React Three Fiber) for an immersive hero experience
- Auth: Google OAuth for secure tracking
- Deployment: Google Cloud Run (Containerized)
A stylized, glowing 3D apple/heart symbol that reacts to mouse movement and scroll, symbolizing health and technology.
- Image Input: User uploads/takes photos of meals.
- Gemini Vision: Analyzes the image to identify food items and portions.
- Claude Optimization: Provides structured data (macros, calories) and health tips based on identified items.
Generates recipes based on nutritional goals or existing inventory.
- User interacts with the dashboard.
- Actions trigger API calls (simulated for the demo or integrated via serverless functions).
- UI updates fluidly with Framer Motion transitions.
- Integration with Google Fit/Apple Health.
- Multi-user sharing (family plans).
- Barcode scanning integration.