The Nutrition Diary is the central hub of your daily food logging experience in SparkyFitness. Every food you eat throughout the day flows through the diary — organized by meal type, tallied against your calorie and macro goals, and stored privately on your own server. Whether you’re meticulously tracking macros or simply keeping an eye on calorie intake, the diary gives you a clear, real-time picture of what you’ve eaten and what’s left in your budget for the day.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodeWithCJ/SparkyFitness/llms.txt
Use this file to discover all available pages before exploring further.
Logging Food
Adding a food entry takes just a few seconds. Navigate to the diary for the desired date, choose a meal slot, and search for the food item by name. Once you find the item, set the serving size and quantity, then confirm. The entry immediately appears in your diary and the daily nutrition totals update.Choose a Meal Slot
Tap or click Add Food within the appropriate meal section — Breakfast, Lunch, Dinner, or Snacks.
Search for a Food
Type the food name in the search bar. Results are drawn from the built-in database, your custom foods, and any enabled external databases. See Food Databases for details on available search providers.
Set Serving Details
Select the serving unit, adjust the quantity, and confirm. The macro and calorie values update in real time as you adjust the amount.
Meal Types
The diary organizes entries into distinct meal slots to mirror a typical eating pattern. Each meal slot is tracked independently so you can see a per-meal breakdown as well as a daily total.Breakfast
Morning meals and drinks logged at the start of your day.
Lunch
Midday meals, lunches, and midday snacks.
Dinner
Evening meals and dinner-time drinks.
Snacks
Between-meal snacks, desserts, and extras logged outside main meal windows.
Custom Foods
When a food you eat regularly isn’t found in any connected database, you can create it yourself. Custom foods are stored in your personal food library and are available from any diary date going forward. To create a custom food:- Open Settings → Foods (or the custom food panel from the search results page).
- Click Create Custom Food.
- Enter a name, brand (optional), serving size, and unit.
- Fill in the nutritional values: calories, protein, carbohydrates, fat, and any micronutrients you track.
- Save the food — it immediately becomes searchable in the diary.
Custom foods belong to your account only. They are not shared with the global food database and remain private to your self-hosted instance.
Recipes & Meals
Meal templates let you group multiple foods into a single reusable item. Once saved, you can add an entire recipe or composite meal to your diary in one action rather than entering each ingredient individually.Creating a Meal Template
Creating a Meal Template
- Navigate to Settings → Meals or the Meals section in the diary sidebar.
- Click Create New Meal.
- Give the meal a name (e.g., “Overnight Oats” or “Chicken Rice Bowl”).
- Search for and add each ingredient with its quantity.
- Save the meal. SparkyFitness calculates the combined nutritional totals automatically.
Using a Meal in the Diary
Using a Meal in the Diary
- In the diary, tap Add Food in any meal slot.
- Switch to the Meals tab in the search panel.
- Select your saved meal and choose the number of servings.
- All ingredient entries are added to the diary at once, with quantities scaled to the chosen serving count.
Diary View
The diary view shows each meal section with its individual food entries and a daily summary banner at the top or bottom of the page. The summary displays:- Calories consumed vs. your daily calorie goal
- Protein, carbohydrates, and fat in grams and as a percentage of total calories
- Remaining calories and remaining macro budget for the day
- Exercise calories earned, which can optionally increase your remaining budget
Copying Entries
Re-logging the same foods from a previous day is quick with the copy feature. You can copy at the meal level or for the entire day.- Copy a Single Meal
- Copy Yesterday's Meal
- Copy Entire Day
- Copy from a Family Member
Inside any meal section, choose Copy from Previous Day (or select a specific date). All food entries from that meal on the chosen source date are duplicated into the current diary date.The API endpoint used for this operation is:
Nutrient Tracking
SparkyFitness tracks far more than the three primary macros. The full nutrient profile for each food entry can include:Macronutrients
Calories, protein, carbohydrates (total and net), dietary fiber, and fat (total, saturated, unsaturated).
Micronutrients
Vitamins (A, C, D, E, K, B-complex) and minerals (calcium, iron, magnesium, potassium, sodium, zinc).
Custom Nutrients
Define additional nutrients that matter to you — for example, omega-3s, caffeine, or electrolytes — and track them just like built-in values.
Weekly & Monthly Trends
Micronutrient and trend data is surfaced in the Reports section, where you can view averages over a custom date range.
The daily diary view focuses on macros and calories for a fast at-a-glance summary. Visit the Reports page to see micronutrient breakdowns and multi-day trend charts.
Exporting Your Diary
Your complete food entry history can be exported as a CSV file for use in spreadsheets or external analysis tools:delimiter parameter accepts any character (default ;) and locale controls number formatting. The downloaded file is named sparkyfitness_diary_export.csv.