Welcome to NutriTrack
Explore nutritional data across 8,789 USDA food items
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
Ingredient Search
Search 8,789 USDA food items and explore their nutritional profiles
{{ 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 }}"
Rankings
Top ingredients by nutritional metrics
🥩 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.protein_per_100g }}g | {{ item.fiber_per_100g }}g |
Loading rankings...
Ingredient Comparison
Compare nutritional profiles of two ingredients side by side
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 }}
{{ nutrient }}
{{ vals[cmpResult.ingredient_1.name] }}
{{ vals[cmpResult.ingredient_2.name] }}
Allergen Filter
Find ingredients free from specific allergens
{{ allergenError }}
{{ allergenResults.count }} ingredients free from
{{ allergenResults.allergen_excluded }}
| Ingredient | Calories / 100g |
|---|---|
| {{ ing.name }} | {{ ing.calories }} kcal |
Searching...
Recipe Builder
Build a recipe, create it via the API, and instantly analyse its nutrition
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 }}
Recipe Analyser
Get full nutritional breakdown and health score for any recipe by ID
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