A comprehensive health and nutrition tracking application that helps you understand the relationship between what you eat and how you feel. Built with advanced food categorization, timing rules, and AI-powered insights.
- Intelligent Food Analysis: Automatically detects compound foods (e.g., "cheeseburger" β bread + beef + cheese)
- Advanced Input Validation: Professional content filtering system prevents inappropriate entries
- Meal Type Classification: Organize by Breakfast, Lunch, Dinner, Snacks, Dessert
- Timestamp Tracking: Precise logging with date and time
- Sick/Okay Status: Track how foods make you feel
Based on "The Eat Out Guide" nutritional principles:
- W Foods (Neutral): Vegetables, healthy fats, seasonings
- S Foods (Starches): Grains, fruits, sugars, starches
- P Foods (Proteins): Meat, dairy, nuts, protein sources
Smart Combination Rules:
- β W + S: Safe combination
- β W + P: Safe combination
β οΈ S + P: Warning - may cause digestive issues- β° 3-Hour Rule: Enforces timing between S and P foods
- Blood Pressure Trends: Visual line charts tracking BP over time
- Daily Food Combinations: Bar charts showing W/S/P distribution by time of day
- Conflict Detection: Highlights unsafe S+P combinations with red warnings
- AI Health Insights: Pattern recognition for personalized recommendations
- Comprehensive Health Details: Track exercise, stress relief, symptoms
- Interactive Chips: Quick selection for activities and symptoms
- Blood Pressure Logging: Dedicated BP tracking with reminders
- Blood Sugar Scale: 1-7 rating system for energy levels
- Calorie Tracking: Optional calorie logging per entry
- Multi-layer Content Filtering: Blocks inappropriate entries with professional messaging
- Leetspeak Detection: Handles character substitutions (3 β e, @ β a, etc.)
- Unicode Normalization: Processes accented characters and emojis
- Comprehensive Word Lists: Extensive database of blocked terms
- Favorites System: Star foods you enjoy for quick reference
- Welcome Popup: Guided onboarding for new users
- BP Reminders: Automatic prompts when BP hasn't been logged
- Collapsible Sections: Organized UI with expandable content areas
- Real-time Warnings: Instant feedback on food combinations and timing
- Enter food in the main input field
- Select meal type from dropdown
- Optionally add blood pressure, calories, and blood sugar rating
- Expand "Health Details" to log exercise, stress relief, and symptoms
- Use interactive chips to specify activities
- Mark if food made you feel sick
- Click "Add Entry"
- Red Warning Modal: Appears for unsafe S+P combinations
- Timer Display: Shows remaining wait time when 3-hour rule is violated
- Component Detection: See what ingredients were detected in compound foods
- Blood Pressure Trend: Track BP changes over time
- Daily Combinations: See W/S/P distribution throughout the day
- AI Insights: Get personalized recommendations based on patterns
- Conflict Highlighting: Red bars indicate problematic combinations
- Favorites: Click β to save preferred foods
- Export: Generate encrypted reports for healthcare providers
- Clear All: Reset all data (use with caution)
- Filtering: View all entries, only sick entries, or only okay entries
// Example: "cheeseburger" analysis
Input: "cheeseburger"
β Components: ["bread", "beef", "cheese"]
β Categories: ["S", "P", "P"]
β Warning: "S + P combination detected!"- Normalization: Strips accents, converts leetspeak, removes separators
- Pattern Matching: Regex-based filtering with comprehensive word lists
- Professional Messaging: Clean, healthcare-appropriate error messages
- Local Storage: All data stored in browser
- JSON Format: Structured data with analysis results
- Encryption: AES encryption for healthcare exports
- Persistence: Automatic saving after each entry
- Seafoam Green (#C2DACE): Primary background
- Tropic Blue (#087E8B): Accent and interactive elements
- Crane Beige (#E5DED2): Form backgrounds
- Obsidian (#2C2C2C): Text and dark elements
- Hibiscus Pink (#E7B9B4): Warning accents
- Mobile-First: Optimized for phones and tablets
- Collapsible Sections: Space-efficient organization
- Touch-Friendly: Large buttons and interactive areas
- Modern Typography: System fonts for readability
- Local-Only Storage: No data sent to external servers
- Encrypted Exports: Healthcare sharing uses AES encryption
- Content Filtering: Professional validation prevents misuse
- No Tracking: No analytics or user tracking implemented
- Identifies foods that consistently cause illness
- Recognizes safe foods eaten multiple times
- Provides personalized dietary recommendations
- Tracks correlation between activities and symptoms
- Enforces 3-hour separation between S and P foods
- Tracks last consumption times for each category
- Provides countdown timers for safe eating windows
- Prevents digestive conflicts through smart scheduling
- Professional export format for medical consultations
- Blood pressure trend analysis for cardiovascular health
- Symptom correlation tracking for diagnostic support
- Encrypted data sharing for privacy compliance
- Open
index.htmlin a modern web browser - Complete the welcome popup tutorial
- Start logging your first meal
- Explore the health details section
- Check the analytics after a few entries
- Chrome: Full support (recommended)
- Firefox: Full support
- Safari: Full support
- Edge: Full support
- Mobile Browsers: Responsive design optimized
Requirements: Modern browser with JavaScript enabled, Local Storage support
index.html: Main application interfacescript.js: Core functionality and food analysis enginestyles.css: Responsive design and themingREADME.md: This documentation
- Be Specific: Enter detailed food descriptions for better analysis
- Track Consistently: Regular logging improves AI insights
- Use Health Details: Complete health tracking provides better patterns
- Monitor Warnings: Pay attention to S+P combination alerts
- Export Regularly: Share data with healthcare providers for professional guidance
Built with β€οΈ for comprehensive health tracking
Combining nutritional science with modern web technology
Feel free to fork this repository and submit pull requests! We welcome contributions to:
- Add new features
- Improve existing functionality
- Enhance UI/UX
- Add more data visualization options
Shout out to ChatGPT and Claude Sonnet 4. The best coding buddies you could ask for. β€οΈ
BD-3 Clause License