Nano Banana Pro
Agent skill for nano-banana-pro
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
FitSpice / Homeland Meals is a full-stack nutrition and recipe application focused on South Asian cuisine. It helps users track nutrition, convert traditional recipes to quick versions, and analyze food images using AI.
Frontend (
/frontend):
Backend (
/backend):
/api prefix for all endpointsFrontend Development:
cd frontend yarn install yarn start # Development server yarn build # Production build yarn test # Run tests
Backend Development:
cd backend pip install -r requirements.txt uvicorn server:app --reload --host 0.0.0.0 --port 8000
Testing:
# Run comprehensive backend API tests python backend_test.py
Code Quality:
# Backend linting and formatting cd backend black . isort . flake8 . mypy . # Frontend linting cd frontend npm run lint # Uses ESLint
Core Functionality:
POST /api/profile - Create user profile with calculated BMR and calorie targetsPOST /api/analyze-food - Upload food image for AI nutritional analysisPOST /api/recipe - Create recipe with AI-powered quick version conversionGET /api/daily-stats/{user_id}/{date} - Get daily nutrition and fitness statisticsGET /api/ingredient-substitutions/{ingredient} - Get Western grocery substitutionsCo-pilot Features:
POST /api/copilot/chat - Interactive chat assistant for cooking questions and guidancePOST /api/copilot/recipe-suggestions - Get recipe suggestions based on available ingredientsPOST /api/copilot/cooking-guidance - Get step-by-step cooking guidance for recipesuser_profiles - User BMR calculations and dietary goalsfood_entries - AI-analyzed food intake with nutritional dataworkout_entries - Exercise logging with calorie burn estimatesrecipes - Traditional and AI-converted quick recipesThe application requires
.env files in both frontend and backend directories:
AI Integration:
Nutrition Calculations:
Frontend State Management:
MealTrayContext manages recipe selection and cost estimation/frontend/src/data/ - Static JSON files for recipes and ingredient pricing/frontend/src/App.js - Main React application with co-pilot chat interface/frontend/src/App.css - Custom styling including professional chat UI/backend/server.py - Main FastAPI application with all API endpoints/backend/emergentintegrations/ - Custom LLM integration module/backend_test.py - Comprehensive API testing suite/tests/ - Additional test utilitiesChat Interface:
Recipe Intelligence:
UI/UX Improvements: