💧 Support Document: Leaf - Localized Fitness & Diet Tracker

Leaf is a privacy-focused mobile application designed to help you track your fitness and nutrition entirely on your device.


1. Core Philosophy: Data & Privacy

2. Getting Started

Onboarding & TDEE Calculation

The App requires basic biometric data (age, gender, height, weight) and activity level to calculate your Total Daily Energy Expenditure (TDEE) and Basal Metabolic Rate (BMR) using the Mifflin-St Jeor Equation. Your selected fitness goal determines the caloric adjustment.

Dashboard (Today Tab)

The Dashboard provides a daily summary:

3. Smart Log (AI Food Logging)

Leaf uses external AI services to power the Smart Log feature. This feature requires a Leaf Pro subscription.

Feature Function Data Sent to AI Provider
Smart Log (Text) Analyzes a text description (e.g., "A latte and a bagel") to return estimated macros (Calories, Protein, Carbs, Fat) in JSON format. The text input is sent to our backend, which forwards it to DeepSeek for AI analysis.
Smart Log (Photo) Analyzes a meal photo to return estimated macros. The photo is sent to our backend, which forwards it to Doubao (ByteDance/Volcengine) for AI vision analysis.

Note: Workout plans and macro targets are calculated locally on your device using established nutritional formulas. No personal data is sent to external servers for plan generation.

4. HealthKit Integration