Hydration Hero is a lightweight Chrome extension for tracking daily water intake and staying on top of your hydration goals—right from your browser.
Many people forget to stay hydrated while working or studying on a computer. Mobile apps are often too generic, cluttered, and easy to ignore when you're focused on your screen.
A Chrome extension is more efficient—keeping hydration tracking just one click away without switching devices or breaking your workflow.
src/
├── components/
│ ├── DrinkButtons.jsx # All action buttons (Log, Reset, Save, Settings)
│ ├── DrinkLogs.jsx # Drink history with timestamps and totals
│ ├── DrinkSettings.jsx # Daily goal configuration and reset controls
│ ├── DrinkModals.jsx # Modal wrappers for logs and settings
│ ├── DrinkHeader.jsx # Extension header component
│ ├── DrinkProgressCard.jsx # Visual progress indicator
│ ├── LogADrink.jsx # Main drink logging interface
│ ├── VolumeSelection.jsx # Volume input controls
│ └── utils/
│ └── timeUtils.js # Timestamp formatting utilities
└── pages/
└── DrinkPage.jsx # Main application page
Hydration Hero utilizes the following Chrome APIs:
- Storage API (
storagepermission): Stores hydration logs, daily goals, and user preferences in local storage. Data persists across browser sessions while staying completely private on your device.
- Log water intake with customizable volumes (50ml - 1000ml)
- Track progress toward daily hydration goals
- View timestamped drink logs with "time ago" formatting
- Visual progress indicator showing daily completion percentage
- Automatic daily reset at midnight
- Set personalized daily hydration goals (500ml - 10,000ml)
- Manual reset option for starting fresh anytime
- Clean, intuitive settings interface
- Lightweight & Efficient: Runs smoothly without slowing down your browser
- No Account Required: Use all features without signing up
- No Data Tracking: Your data stays on your device (local storage only)
- Completely Free: No hidden fees, subscriptions, or in-app purchases
- Open Source: Fully transparent codebase on GitHub
git clone https://github.com/AbdulDevHub/Hydration-Hero.git
cd Hydration-Heropnpm installpnpm run build- Open Google Chrome and navigate to
chrome://extensions/ - Enable Developer Mode (toggle in the top-right corner)
- Click Load unpacked
- Select the build folder inside your project
- Pin the extension to your toolbar for easy access
- React - UI framework
- Vite - Build tool and dev server
- Tailwind CSS - Utility-first styling
- React Icons - Icon library (Lucide, Font Awesome, GoGear)
- Chrome Extension APIs - Storage API for data persistence
pnpm run dev # Start development server
pnpm run build # Build for production
pnpm run preview # Preview production buildThis project uses a consolidated component structure for better maintainability:
- Named exports for related components (buttons, modals)
- Internal sub-components to reduce file fragmentation
- Utility functions organized in a dedicated utils folder
This project is open for contributions! Feel free to submit issues and pull requests.
- Report bugs or suggest features via GitHub Issues
- Submit pull requests with improvements or fixes
- Improve documentation
- Share feedback on UX/UI
This project is open source and available under the MIT License.
Stay hydrated! 💧
