Skip to content

johnnylemonny/NutraFlux

Repository files navigation

NutraFlux Banner
NutraFlux Logo

NutraFlux

Professional β€’ Local-First β€’ High-Performance

Deploy Status Lint Status License Live Demo

Fuel your nutritional momentum with precision.
NutraFlux is a premium, local-first daily calorie and macro tracker built for those who demand speed, privacy, and technical excellence.

Explore Docs β€’ Report Bug β€’ Request Feature


πŸ“– Table of Contents


🌟 Overview

NutraFlux is a high-performance nutritional tracking application designed for power users who value both their time and their data privacy. It eliminates the friction of traditional trackers by offering an instant, search-first logging experience combined with a stunning glassmorphism interface.

Unlike many modern trackers that rely on slow API calls and invasive data-sharing, NutraFlux is built with a local-first architecture. Your personal data never leaves your browser, ensuring zero-latency interactions and 100% offline capability.


✨ Key Features

Feature Description
⚑ Nutra-Speed Logging Instant, search-first interface for logging meals in seconds.
πŸ” Metri-Food Lookup Advanced full-text search with wildcard support over a compact local catalog.
πŸ₯— Flux Categories Smart categorization into Breakfast, Lunch, Dinner, and Snacks.
πŸ“Š Precision Momentum Real-time progress indicators and calorie budgeting visualizations.
❀️ Smart Memory One-tap logging for favorites and recently used foods.
πŸŒ’ Technical Aesthetic State-of-the-art glassmorphism UI with native Light/Dark/System support.
πŸ“± Adaptive Design Optimized for mobile-first workflows without sacrificing desktop power.

πŸ› οΈ Tech Stack

NutraFlux is engineered using the most resilient modern frontend standards:

  • Core: React 19 + TypeScript (Strict Mode)
  • Framework: Vite for ultra-fast HMR and optimized builds
  • Styling: Tailwind CSS 4 (Leveraging OKLCH color space & container queries)
  • Design System: Radix UI primitives + custom glassmorphic components
  • Experience: Lucide React for iconography & Sonner for toast management

πŸš€ Getting Started

πŸ“‹ Prerequisites

  • Node.js: v22.0.0 or higher
  • pnpm: v10.0.0 or higher (Recommended)

βš™οΈ Installation

  1. Clone the repository:

    git clone https://github.com/johnnylemonny/NutraFlux.git
    cd NutraFlux
  2. Install dependencies:

    pnpm install
  3. Spin up the development environment:

    pnpm dev
  4. Prepare for production:

    pnpm build

πŸ—οΈ Project Architecture

src/
β”œβ”€β”€ components/   # Atomic UI components & custom Design System
β”œβ”€β”€ data/         # Optimized local nutritional catalogs
β”œβ”€β”€ hooks/        # Reactive logic for tracking, theming, and persistence
β”œβ”€β”€ lib/          # Utilities, math engines, and formatting helpers
β”œβ”€β”€ types/        # Comprehensive TypeScript definitions
└── App.tsx       # Root orchestrator and layout definition

πŸ” Privacy & Data Philosophy

NutraFlux strictly adheres to the local-first principle:

  • Zero Cloud: No servers, no syncing, no data leaks.
  • Client-Side Storage: All nutritional history and user preferences are stored in localStorage.
  • Absolute Ownership: Your health data belongs to you, and you alone. It exists only on your device.
  • Offline Integrity: The app is fully functional without an internet connection, ensuring your tracking isn't interrupted by network issues.

🀝 Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Please review our Contributing Guidelines before starting.
  2. Check the Projects and Issues for open tasks.
  3. Open a Pull Request using our Standard Template.

βš–οΈ License

Distributed under the GNU Affero General Public License v3 (AGPL-3.0). See LICENSE for more information. This license was chosen to ensure the software remains free and that any improvements are contributed back to the public domain.


πŸ™ Acknowledgements

  • Inspired by the App Ideas community.
  • Icons by Lucide.
  • Design inspiration from various glassmorphism case studies.

Built with technical passion as part of a public open-source health ecosystem.

  _   _       _              ______ _             
 | \ | |     | |            |  ____| |            
 |  \| |_   _| |_ _ __ __ _ | |__  | |_   ___  __ 
 | . ` | | | | __| '__/ _` ||  __| | | | | \ \/ / 
 | |\  | |_| | |_| | | (_| || |    | | |_| |>  <  
 |_| \_|\__,_|\__|_|  \__,_||_|    |_|\__,_/_/\_\ 

Sponsor this project

Contributors