Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

311 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌸 CycleSync – AI-Powered Fitness & Wellness Platform

Cycle-aware fitness, nutrition, and wellness powered by AI.

CycleSync is a full-stack MERN application that delivers personalized workout plans, nutrition guidance, and wellness recommendations based on a user's menstrual cycle phase, fitness goals, and health profile.

Unlike traditional fitness apps, CycleSync adapts recommendations throughout the menstrual cycle, helping users train smarter, recover better, and maintain consistency with AI-generated, phase-aware guidance.


✨ Features

πŸ” Secure Authentication

  • JWT-based authentication
  • User registration and login
  • Protected routes
  • Secure password hashing

πŸ‘€ Personalized User Profiles

Create a profile with:

  • Age
  • Height & Weight
  • Fitness goals
  • Activity level
  • Menstrual cycle details
  • Dietary preferences
  • Health conditions (e.g., PCOS)

🌸 Menstrual Cycle Tracking

Track and predict menstrual cycle phases:

  • 🩸 Menstrual
  • 🌱 Follicular
  • 🌼 Ovulatory
  • πŸŒ™ Luteal

The application automatically adjusts recommendations according to the current phase.


πŸ‹οΈ AI-Powered Workout Plans

Generate personalized workout plans based on:

  • Current cycle phase
  • Fitness goals
  • Experience level
  • Activity preferences

Examples include:

  • Strength Training
  • HIIT
  • Cardio
  • Recovery Sessions
  • Yoga & Mobility
  • Low-Impact Workouts

πŸ₯— Personalized Nutrition Plans

Receive AI-generated meal recommendations tailored to:

  • Hormonal changes
  • Cycle phase
  • Fitness goals
  • Dietary preferences
  • PCOS-friendly nutrition

Suggestions include:

  • Daily meals
  • Macronutrient balance
  • Recovery nutrition
  • Hydration guidance

πŸ€– AI Wellness Coach

Built using the OpenAI API.

The assistant can help users:

  • Modify workout plans
  • Suggest healthy meals
  • Answer wellness questions
  • Recommend recovery strategies
  • Build healthy habits
  • Provide motivation and guidance

πŸ“Š Progress Tracking

Monitor personal progress through:

  • Weight logs
  • Workout consistency
  • Streak tracking
  • Overall progress analytics

🧠 How It Works

User Profile
      β”‚
      β–Ό
Cycle Phase Detection
      β”‚
      β–Ό
AI Recommendation Engine
      β”‚
      β”œβ”€β”€ Workout Plan
      β”œβ”€β”€ Nutrition Plan
      └── Wellness Guidance
      β”‚
      β–Ό
Progress Tracking

πŸ›  Tech Stack

Frontend

  • React.js
  • Axios
  • CSS
  • Tailwind CSS (optional)

Backend

  • Node.js
  • Express.js
  • JWT Authentication
  • Service–Repository Architecture

Database

  • MongoDB
  • Mongoose

AI

  • OpenAI API
  • AI-powered workout generation
  • AI nutrition planning
  • AI wellness chat assistant

πŸ— Project Architecture

The backend follows a Service–Repository Architecture to maintain clean separation between business logic and database operations.

src/
β”‚
β”œβ”€β”€ controllers/      # Handles incoming requests
β”œβ”€β”€ services/         # Business logic
β”œβ”€β”€ repositories/     # Database layer
β”œβ”€β”€ models/           # Mongoose schemas
β”œβ”€β”€ routes/           # API endpoints
β”œβ”€β”€ middlewares/      # Authentication & validation
β”œβ”€β”€ utils/            # AI helpers & utilities
└── server.js

πŸ“‚ Project Structure

CycleSync/
β”‚
β”œβ”€β”€ client/                # React Frontend
β”‚
β”œβ”€β”€ server/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ controllers/
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ repositories/
β”‚   β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ middlewares/
β”‚   β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   └── app.js
β”‚   β”‚
β”‚   └── server.js
β”‚
β”œβ”€β”€ .env
β”œβ”€β”€ package.json
└── README.md

πŸš€ Getting Started

1. Clone the Repository

git clone https://github.com/your-username/cyclesync.git

cd cyclesync

2. Install Backend Dependencies

npm install

3. Install Frontend Dependencies

cd client

npm install

4. Configure Environment Variables

Create a .env file in the project root.

PORT=5000

MONGO_URI=your_mongodb_connection_string

JWT_SECRET=your_jwt_secret

OPENAI_API_KEY=your_openai_api_key

5. Start the Backend

npm run dev

6. Start the Frontend

cd client

npm start

πŸ”Œ REST API

Authentication

Method Endpoint Description
POST /api/auth/signup Register a new user
POST /api/auth/login User login

User Profile

Method Endpoint Description
GET /api/profile Get profile
POST /api/profile Create/Update profile

Workout Plans

Method Endpoint Description
POST /api/plan/workout Generate workout plan

Nutrition Plans

Method Endpoint Description
POST /api/plan/diet Generate diet plan

AI Coach

Method Endpoint Description
POST /api/chat AI wellness assistant

Progress

Method Endpoint Description
POST /api/progress Add progress log
GET /api/progress View progress history

πŸ€– AI Personalization

CycleSync generates recommendations using:

  • User profile
  • Current menstrual phase
  • Fitness goals
  • Health conditions (e.g., PCOS)
  • Activity level
  • Dietary preferences

Example

Cycle Phase AI Recommendation
🩸 Menstrual Gentle yoga, stretching, iron-rich foods
🌱 Follicular Strength training, high-protein meals
🌼 Ovulatory HIIT, intense workouts, balanced nutrition
πŸŒ™ Luteal Recovery workouts, magnesium-rich foods, hydration

πŸ“Š Core Modules

  • βœ… Authentication
  • βœ… User Profiles
  • βœ… Cycle Tracking
  • βœ… Workout Recommendation Engine
  • βœ… Nutrition Recommendation Engine
  • βœ… AI Wellness Chat
  • βœ… Progress Tracking

πŸ”’ Security

  • JWT Authentication
  • Password Hashing
  • Protected Routes
  • Environment Variables
  • MongoDB Validation
  • Error Handling Middleware

πŸ“ˆ Future Enhancements

  • πŸ“… Interactive menstrual calendar
  • πŸ“± React Native mobile application
  • πŸ”” Smart notifications & reminders
  • 🧬 Hormonal trend analysis
  • πŸ“Š Advanced analytics dashboard
  • πŸ“ˆ Wearable device integration
  • ❀️ Apple Health & Google Fit sync
  • 🧠 Retrieval-Augmented Generation (RAG) health knowledge system
  • 🌍 Multi-language support

🀝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch
git checkout -b feature/your-feature
  1. Commit your changes
git commit -m "Add new feature"
  1. Push the branch
git push origin feature/your-feature
  1. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License.


πŸ‘¨β€πŸ’» Author

Your Name


⭐ Support

If you found this project helpful, consider giving it a ⭐ Star on GitHub!

It helps others discover the project and supports future development.


🌸 Train Smarter β€’ Eat Better β€’ Live in Sync with Your Cycle 🌸

About

A full-stack fitness and wellness platform designed to align workouts, nutrition, and lifestyle with menstrual cycle phases. Built using the MERN stack with features like personalized plans, cycle tracking, and goal-based health insights.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages