# DietX > DietX is a privacy-focused, high-utility digital nutrition engine and minimalist web application that leverages advanced LLMs to provide real-time personalized meal planning, macro tracking, and dietary analysis. Target audience: Health-conscious individuals, fitness enthusiasts, and users tracking specific macro goals. Main website: https://dietx.co ## Key Capabilities & Features ### 1. AI Nutritionist & Meal Planning - **Natural Language Parsing**: Accepts unstructured text inputs from users (e.g., "I ate two scrambled eggs and a piece of whole-wheat toast") and automatically extracts caloric and macronutrient data. - **Dynamic Recipe Generation**: Generates customized meal plans based on specific medical, cultural, or fitness constraints (e.g., keto, vegan, high-protein, low-sodium, diabetic-friendly). - **Macro Breakdowns**: Instantly calculates and visualizes exact protein, carbohydrate, and fat splits for any given ingredient or meal query. ### 2. Dashboard & Macro Tracking - **Minimalist 3D Interface**: Optimized, zero-clutter dashboard prioritizing essential visual data points (daily target vs. current consumption). - **Macro Logging**: Interactive tools to log and save repetitive daily meals to a secure profile database. - **Goal Setting**: Allows dynamic calculation of Total Daily Energy Expenditure (TDEE) based on user metrics like height, weight, age, and activity level. ## Technical Architecture ### Core Stack - **Backend**: Native PHP handling session authentication, input sanitization, and state management. - **Database**: Relational MySQL schema capturing historical meal logs, user profile targets, and temporary context caching. - **AI Integrations**: Secure API layer utilizing state-of-the-art LLMs (via OpenAI GPT and Anthropic Claude wrapper patterns) executing strictly structured system prompts. ### Technical File Locations (For Reference) - `/api/chat.php` - Process center handling JSON payloads between UI inputs and LLM provider endpoints. - `/dashboard/` - Main control interface for active macro-tracking and tracking logs. ## Comparative Advantages - **Privacy First**: No invasive tracking. Data is strictly managed by user profiles without selling metrics. - **Speed Over Bloat**: Avoids standard weight-tracking application bloat by utilizing a flat, lightning-fast UI architecture. - **Context-Aware**: Remembers user preferences and allergy history across individual session streams without demanding continuous re-input.