A React Native fitness app with AI-powered form analysis using Pose Tracker API and Google Gemini AI for personalized workout generation. Features real-time pose detection and technique analysis for perfect exercise form. Built for hackathon demonstration.
- π€ AI-Powered Workouts: Generate personalized workout plans using Google Gemini AI
- π₯ Pose Tracking & Form Analysis: Real-time exercise form analysis using Pose Tracker API
- π Progress Tracking: View workout history, statistics, and track your fitness journey
- πͺ Motivational Messages: Get AI-generated motivational messages and fitness tips
- π€ User Profile: Manage your fitness profile with BMI calculator and equipment selection
- π± Modern Dark UI: Professional dark theme interface with red accent colors
- πΎ Local Storage: All data stored securely on your device using AsyncStorage
- β±οΈ Built-in Timer: Track your workout duration with start/pause/reset functionality
The app includes three main screens:
- Workout Generator: Input your goals and generate personalized workouts
- Progress Tracker: View statistics and workout history
- Profile: Manage your profile and get daily fitness tips
- Node.js (v14 or higher)
- npm or yarn
- Expo CLI
- A Google Gemini API key (free at Google AI Studio)
-
Clone or download this project
cd ather
-
Install dependencies
npm install
-
Start the development server
npm start # or npx expo start
-
Run on your device
- Scan the QR code with Expo Go app (iOS/Android)
- Press
i
for iOS simulator - Press
a
for Android emulator - Press
w
to run in web browser
Pose Tracker API:
- API Key:
af48c0d0-dca9-4cc3-93e7-f67174bbedb
β - Features: Real-time form analysis, pose detection, technique scoring
- Status: β Ready to use out of the box
Google Gemini API:
- API Key:
AIzaSyDQmEMHhRhL4Vb1qg-9kV9pJiPRqZSPRIk
β - Features: AI-powered workout generation, motivational messages, fitness tips
- Status: β Ready to use out of the box
π No API setup required! Both services are pre-configured and ready for immediate use.
- Enter your Gemini API key (first time only)
- Fill in your fitness goals (e.g., "Build muscle in upper body")
- Specify available equipment (or leave blank for bodyweight exercises)
- Select your fitness level (Beginner/Intermediate/Advanced)
- Set workout duration in minutes
- Tap β¨ Generate Workout
- Use the built-in timer to track your workout
- Tap πΎ Save Workout to add it to your history
- Navigate to the Progress tab
- View your statistics:
- Total workouts completed
- This week's workouts
- Total minutes exercised
- Current streak
- Tap on any workout to see full details
- Get AI-generated motivational messages
- Go to the Profile tab
- Fill in your personal information:
- Name, age, weight, height
- Primary fitness goal
- View your calculated BMI
- Get daily AI-generated fitness tips
- Tap π Get New Tip for fresh advice
ather/
βββ App.js # Main navigation setup
βββ package.json # Dependencies and scripts
βββ app.json # Expo configuration
βββ services/
β βββ GeminiService.js # Gemini AI integration
β βββ PoseTrackerService.js # Pose tracking & form analysis
βββ screens/
βββ WorkoutScreen.js # Form analysis with pose tracking
βββ ProgressScreen.js # History and statistics
βββ ProfileScreen.js # User profile and equipment setup
- React Native - Mobile framework
- Expo - Development platform
- React Navigation - Navigation library
- AsyncStorage - Local data persistence
- Google Gemini AI - AI-powered workout generation
- Expo Linear Gradient - Beautiful gradient backgrounds
{
"expo": "~50.0.0",
"react": "18.2.0",
"react-native": "0.73.0",
"@react-navigation/native": "^6.1.9",
"@react-navigation/bottom-tabs": "^6.5.11",
"@react-native-async-storage/async-storage": "1.21.0",
"@google/generative-ai": "^0.1.3",
"expo-linear-gradient": "~12.7.0"
}
- AI-Powered Form Analysis: Real-time exercise form analysis using Pose Tracker API
- Exercise Name Input: Enter any exercise for analysis (Barbell Squat, Bench Press, etc.)
- Video Upload Interface: Upload workout videos for technique analysis
- Form Scoring: Get percentage scores (0-100%) for exercise technique
- Detailed Feedback: Joint-specific feedback (knees, back, elbows, hips)
- Correction Suggestions: AI-generated tips for improving form
- Strengths Analysis: Highlights what you're doing well
- Visual Score Display: Color-coded scoring with emojis (π for excellent, π for good, πͺ for needs work)
- Handles all AI interactions
- Generates personalized workouts based on user inputs
- Creates motivational messages
- Provides daily fitness tips
- Includes proper error handling
- Start/pause/reset functionality
- Real-time display in MM:SS format
- Tracks completed workout duration
- Saves workout time with history
- Total workouts completed
- Weekly workout count
- Total exercise minutes
- Consecutive day streak calculation
- Expandable workout history cards
- API key storage
- Workout history
- User profile information
- All data saved locally using AsyncStorage
- Gradient Backgrounds: Each screen has unique gradient colors
- Emoji Integration: Visual appeal with relevant emojis throughout
- Card-based Layout: Clean, modern card components
- Responsive Design: Works on various screen sizes
- Loading States: Activity indicators for async operations
- Error Handling: User-friendly error messages with alerts
- All data stored locally on device
- No cloud storage or external servers
- API key stored securely using AsyncStorage
- No personal data transmitted except to Gemini AI for workout generation
- Make sure all dependencies are installed:
npm install
- Clear Expo cache:
npx expo start -c
- Verify your API key is correct
- Check your internet connection
- Ensure you have API quota remaining
- Confirm API key is saved
- Check all required fields are filled
- Verify internet connectivity
For hackathon demonstration:
- Show the clean, professional UI
- Generate a sample workout (have API key ready)
- Demonstrate the timer functionality
- Show progress tracking features
- Display AI motivational messages
- Highlight the profile with BMI calculator
Potential features for future versions:
- Exercise animations/videos
- Social sharing capabilities
- Calendar integration
- Push notifications for workout reminders
- Custom exercise library
- Photo progress tracking
- Integration with fitness wearables
This project is built for educational and hackathon purposes.
Built with β€οΈ for hackathon demonstration
- Google Gemini AI for powering workout generation
- React Native community
- Expo team for amazing development tools
Ready to transform your fitness journey? Start generating your personalized workouts today! πͺ