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.
- JWT-based authentication
- User registration and login
- Protected routes
- Secure password hashing
Create a profile with:
- Age
- Height & Weight
- Fitness goals
- Activity level
- Menstrual cycle details
- Dietary preferences
- Health conditions (e.g., PCOS)
Track and predict menstrual cycle phases:
- π©Έ Menstrual
- π± Follicular
- πΌ Ovulatory
- π Luteal
The application automatically adjusts recommendations according to the current phase.
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
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
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
Monitor personal progress through:
- Weight logs
- Workout consistency
- Streak tracking
- Overall progress analytics
User Profile
β
βΌ
Cycle Phase Detection
β
βΌ
AI Recommendation Engine
β
βββ Workout Plan
βββ Nutrition Plan
βββ Wellness Guidance
β
βΌ
Progress Tracking
- React.js
- Axios
- CSS
- Tailwind CSS (optional)
- Node.js
- Express.js
- JWT Authentication
- ServiceβRepository Architecture
- MongoDB
- Mongoose
- OpenAI API
- AI-powered workout generation
- AI nutrition planning
- AI wellness chat assistant
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
CycleSync/
β
βββ client/ # React Frontend
β
βββ server/
β βββ src/
β β βββ controllers/
β β βββ services/
β β βββ repositories/
β β βββ models/
β β βββ routes/
β β βββ middlewares/
β β βββ utils/
β β βββ app.js
β β
β βββ server.js
β
βββ .env
βββ package.json
βββ README.md
git clone https://github.com/your-username/cyclesync.git
cd cyclesyncnpm installcd client
npm installCreate 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_keynpm run devcd client
npm start| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/signup |
Register a new user |
| POST | /api/auth/login |
User login |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/profile |
Get profile |
| POST | /api/profile |
Create/Update profile |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/plan/workout |
Generate workout plan |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/plan/diet |
Generate diet plan |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/chat |
AI wellness assistant |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/progress |
Add progress log |
| GET | /api/progress |
View progress history |
CycleSync generates recommendations using:
- User profile
- Current menstrual phase
- Fitness goals
- Health conditions (e.g., PCOS)
- Activity level
- Dietary preferences
| 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 |
- β Authentication
- β User Profiles
- β Cycle Tracking
- β Workout Recommendation Engine
- β Nutrition Recommendation Engine
- β AI Wellness Chat
- β Progress Tracking
- JWT Authentication
- Password Hashing
- Protected Routes
- Environment Variables
- MongoDB Validation
- Error Handling Middleware
- π 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
Contributions are welcome!
- Fork the repository
- Create a feature branch
git checkout -b feature/your-feature- Commit your changes
git commit -m "Add new feature"- Push the branch
git push origin feature/your-feature- Open a Pull Request
This project is licensed under the MIT License.
Your Name
- GitHub: https://github.com/your-username
- LinkedIn: https://linkedin.com/in/your-profile
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 πΈ