8,789
Food Items
22
API Endpoints
8
MCP Tools
7
Allergens Tracked
Quick Search
Top 5 by Protein (g/100g)
Top 5 by Nutrient Density Score
About this project

NutriTrack is a data-driven REST API built with FastAPI and SQLite, backed by the USDA FoodData Central dataset. It provides full ingredient and recipe management, nutritional analytics, allergen detection, and AI assistant integration via the Model Context Protocol (MCP). This frontend automatically connects to the local API when running locally, or the live Render deployment otherwise.

FastAPI SQLite JWT Auth MCP Server Rate Limiting USDA Dataset Vue.js Chart.js
{{ searchError }}
Calorie comparison (kcal/100g)
{{ ing.name }} #{{ ing.id }}
Calories {{ ing.calories }} kcal
Protein {{ ing.protein }}g
Carbs {{ ing.carbohydrate }}g
Fat {{ ing.fat }}g
Fibre {{ ing.fiber }}g
Sodium {{ ing.sodium }}mg
Caffeine {{ ing.caffeine }}mg
⚠ {{ a.trim() }}
✓ No allergens detected
No ingredients found for "{{ searchQuery }}"
🥩 Top Protein
☕ Top Caffeine
⭐ Nutrient Density
{{ rankTab === 'protein' ? 'Protein g/100g' : rankTab === 'caffeine' ? 'Caffeine mg/100g' : 'Nutrient Density Score' }}
# Ingredient Protein / 100g Calories Caffeine / 100g Score Protein Fibre
{{ i + 1 }} {{ item.name }} {{ item.protein_per_100g }}g {{ item.calories_per_100g }} kcal {{ item.caffeine_mg_per_100g }}mg
{{ item.nutrient_density_score }}
{{ item.protein_per_100g }}g {{ item.fiber_per_100g }}g
Loading rankings...
Tip: Use the Search tab to find ingredient IDs (shown after the ingredient name)
{{ cmpError }}
Nutritional radar comparison
Ingredient A
{{ cmpResult.ingredient_1.name }}
Ingredient B
{{ cmpResult.ingredient_2.name }}
Nutrient
{{ cmpResult.ingredient_1.name }}
{{ cmpResult.ingredient_2.name }}
{{ allergenError }}
{{ allergenResults.count }} ingredients free from {{ allergenResults.allergen_excluded }}
Ingredient Calories / 100g
{{ ing.name }} {{ ing.calories }} kcal
Searching...
Step 1 — Authenticate
✓ Logged in as {{ builderUsername }}
{{ builderAuthError }}
{{ builderAuthSuccess }}
Step 2 — Recipe Details
Step 3 — Add Ingredients
{{ ing.name }} {{ ing.calories }} kcal/100g
Recipe Ingredients ({{ builderIngredients.length }})
{{ item.name }}
{{ item.quantity_g }}g
×
No ingredients added yet
Step 4 — Create & Analyse
{{ builderCreateError }}
{{ builderCreateSuccess }}
Don't have a recipe ID? Use the Recipe Builder to create one.
{{ recipeError }}
{{ recipeResult.health_score }}
{{ recipeResult.recipe_name }}
Health Score out of 100
{{ recipeResult.cuisine_type }} {{ recipeResult.difficulty }} ⏱ {{ recipeResult.prep_time_minutes }} min
⚠ {{ w }}
Allergens
⚠ {{ a }}
✓ No allergens detected
Macronutrient Distribution
Key Nutrients (g)
Full Nutritional Breakdown
Calories
{{ recipeResult.nutrition.calories.toFixed(0) }} kcal
Protein
{{ recipeResult.nutrition.protein.toFixed(1) }}g
Carbs
{{ recipeResult.nutrition.carbohydrate.toFixed(1) }}g
Fat
{{ recipeResult.nutrition.fat.toFixed(1) }}g
Fibre
{{ recipeResult.nutrition.fiber.toFixed(1) }}g
Sugars
{{ recipeResult.nutrition.sugars.toFixed(1) }}g
Sodium
{{ recipeResult.nutrition.sodium.toFixed(0) }}mg
Caffeine
{{ recipeResult.nutrition.caffeine.toFixed(1) }}mg