Skip to content

Full-stack AI Fitness Trainer built with Next.js, featuring voice AI, personalized workouts, diet plans, and real-time LLM integration.

Notifications You must be signed in to change notification settings

Rites23/ai-fitness-trainer

Repository files navigation

💪 AI Fitness Assistant 🤖

Screenshot 2025-04-21 at 13 48 14

Vercel

💪 🏋️ AI Fitness Trainer App

Highlights:

  • 🚀 Tech stack: Next.js, React, Tailwind & Shadcn UI
  • 🎙️ Voice AI Assistant (Vapi)
  • 🧠 LLM Integration (Gemini AI)
  • 🏋️ Personalized Workout Plans
  • 🥗 Custom Diet Programs
  • 🔒 Authentication & Authorization (Clerk)
  • 💾 Database (Convex)
  • 🎬 Real-time Program Generation
  • 💻 Layouts
  • 🎭 Client & Server Components

Features

  • Smart AI Assistant: Engage in conversation with an AI that asks about your fitness goals, physical condition, and preferences
  • Personalized Workout Plans: Get custom exercise routines based on your fitness level, injuries, and goals
  • Diet Recommendations: Receive personalized meal plans accounting for your allergies and dietary preferences
  • User Authentication: Sign in with GitHub, Google, or email/password
  • Program Management: Create and view multiple fitness programs with only the latest one active
  • Responsive Design: Beautiful UI that works across all devices

Setup .env file

# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

# Clerk Redirect URLs
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up

# Vapi Voice AI
NEXT_PUBLIC_VAPI_WORKFLOW_ID=
NEXT_PUBLIC_VAPI_API_KEY=

# Convex Database
CONVEX_DEPLOYMENT=
NEXT_PUBLIC_CONVEX_URL=

Getting Started

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Set up your environment variables as shown above
  2. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser

Deployment

This application can be easily deployed to Vercel:

npm run build
npm run start

Or connect your GitHub repository to Vercel for automatic deployments.

Technologies Used

  • Next.js: React framework for building the frontend and API routes
  • Tailwind CSS & Shadcn UI: For styling and UI components
  • Clerk: Authentication and user management
  • Vapi: Voice agent platform for conversational AI
  • Convex: Real-time database
  • Gemini AI: Large Language Model for generating personalized fitness programs

Learn More

To learn more about the technologies used in this project:

About

Full-stack AI Fitness Trainer built with Next.js, featuring voice AI, personalized workouts, diet plans, and real-time LLM integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published