NutriSmart AI is your intelligent nutrition coach, designed to make healthy eating simple, personalized, and actionable. Leveraging the power of AI, this application helps you understand your dietary habits, discover new recipes, plan your fitness, and achieve your wellness goals.
NutriSmart AI offers a comprehensive suite of tools to manage your nutritional journey:
- Personalized Dashboard: Get an at-a-glance view of your daily progress and AI-driven insights.
- AI Food Diary: Easily log your meals and get detailed nutritional analysis.
- Recipe Finder: Discover healthy recipes tailored to your dietary preferences and goals.
- Image-Based Food Analysis: Snap a photo of your meal to get instant nutritional information.
- Fitness Planner: Receive workout recommendations that complement your diet.
- Smart Grocery Lists: Generate shopping lists based on your meal plans and health objectives.
- Secure Authentication: Keep your personal health data safe and private.
- Notifications & Reminders: Stay on track with timely alerts and motivational messages.
Your nutrition hub showing personalized stats, AI insights, and quick access to all features including diary, recipes, and fitness planning.
Track meals with detailed nutrition data. View macro charts, filter by date, and receive AI insights on your eating patterns.
AI-powered recipe finder based on your preferences and goals. Get ingredients, instructions, and nutritional details with personalized recommendations.
Custom workout plans that complement your nutrition goals. Track exercises, monitor progress, and receive AI guidance on optimal meal timing.
Your health command center displaying metrics, goals, and achievements. View progress charts and receive personalized AI insights.
Smart shopping assistant with AI-recommended items based on your health profile. Organize by categories and export lists as PDFs.
Visualize food nutrition through AI-generated graphics. Upload images or describe foods to see detailed nutrient breakdowns.
Secure access to your nutrition dashboard with streamlined authentication for new and returning users.
Timely alerts for meal reminders, water intake, and milestones. Receive personalized recommendations based on your activity patterns.
- Frontend: Next.js (v15+), React (v19+), Tailwind CSS (v4+), Framer Motion
- Backend & API: Next.js API Routes
- AI & Machine Learning:
- Google Generative AI (
@google/generative-ai
) - OpenAI API (
openai
)
- Google Generative AI (
- Database: MongoDB (with Mongoose ODM)
- Authentication: Clerk (
@clerk/nextjs
) and NextAuth.js - State Management & Routing: React Context, Next Navigation
- Data Visualization: Recharts
- 3D Visualizations: Three.js with React Three Fiber and Drei
- Utility Libraries: Axios, Lucide React Icons, jsPDF & jspdf-autotable (for exports)
- Theme Management: next-themes
- Linting & Formatting: ESLint
We noticed people struggle to turn nutrition advice into daily habits. Our inspiration was to make healthy eating simple, actionable, and fun with the help of AI.
Follow these instructions to get a local copy up and running.
- Node.js (v18 or later recommended)
- npm or yarn
- MongoDB instance (local or cloud-hosted like MongoDB Atlas)
- API Keys for:
- Google Generative AI
- OpenAI
- Clerk
-
Clone the repository:
git clone <your-repository-url> cd "AI_Nutrition_Planner"
-
Install dependencies:
npm install # or yarn install
-
Set up Environment Variables: Create a
.env.local
file in the project directory and add your API keys:NEXT_PUBLIC_GEMINI_API_KEY=YOUR_GOOGLE_AI_API_KEY OPENAI_API_KEY=YOUR_OPENAI_API_KEY # Clerk Environment Variables NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=YOUR_CLERK_PUBLISHABLE_KEY CLERK_SECRET_KEY=YOUR_CLERK_SECRET_KEY NEXT_PUBLIC_CLERK_SIGN_IN_URL=/login NEXT_PUBLIC_CLERK_SIGN_UP_URL=/login NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/ NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/ # MongoDB Connection URI MONGODB_URI=YOUR_MONGODB_CONNECTION_STRING # NextAuth.js NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=YOUR_NEXTAUTH_SECRET
-
Run the development server:
npm run dev # or yarn dev
-
Open http://localhost:3000 in your browser to see the application.
We faced challenges in making AI recommendations accurate, keeping the UI simple, and ensuring fast, secure data handling.
We're proud of our AI-powered food image analysis, personalized nutrition insights, and a user-friendly, visually engaging interface.
We learned how to blend AI with user experience, visualize complex nutrition data, and build a product that truly helps people eat better.
Next, we plan to add:
- Wearable device integration for holistic health tracking
- Community features for sharing recipes and progress
- Even smarter AI for advanced meal planning and adaptive fitness coaching
- Expanded food database and cultural recipe options
- Enhanced offline support for key features
Contributions are welcome! If you have suggestions or want to contribute to the project, please feel free to:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License.
Created with ❤️ by Team NutriSmart