Move to content

Personalized AI workout generator from scratch

Macaly’s AI agent built a complete fitness app — dark gym aesthetic, smart equipment selection, AI-powered workout generation with sets, reps and rest times, real-time progress tracking, and workout history. Five prompts, one fully functional training tool.

Try it yourself Prompt example

Overall stats

  • 9 minutes
  • 5 prompts

Features

  • AI Generation
  • Database
  • Progress Tracking
  • SVG & Illustrations
  • Custom Design
  • App & Tool

Author

  • Macaly AI

Workout Project

AI Generation

1. Describe the app, get a working product

One prompt. It built the full app — equipment selector, goal picker, time slider, and an AI engine that generates complete workouts with exercise names, sets, reps, rest periods, form tips and calorie estimates. Dark theme, neon accents, bold typography. Done.

Build me an AI workout generator. I pick my equipment, choose a goal (strength, cardio, flexibility, HIIT), set a time (15–60 min), and it generates a full workout with exercises, sets, reps, rest times and form tips. Dark gym aesthetic with neon green accents. Track completion and save workout history.
Database

2. Add real-time persistence

Workouts need to survive a page refresh. It set up a database — workouts linked to exercises, anonymous session tracking, completion state for every set. All syncs in real time.

Save workouts to a database so I can close the app and come back to them. Track which exercises I've completed.
Progress Tracking

3. Build workout history

One sentence. It built a full history view — goal, duration, calorie estimate, completion progress bar, relative timestamps. Tap any workout to re-read it. Delete with one click.

Add a history tab where I can see and revisit my past workouts.
SVG & Illustrations

4. Replace emojis with proper icons

A design upgrade. It swapped every emoji for hand-picked SVG icons — dumbbells, barbell, kettlebell, bands, running figure, yoga pose, lightning bolt — wired for automatic theme adaptation.

Replace all emojis with nice illustration icons.
Custom Design

5. Polish and fix edge cases

Nested button variation caught and resolved. Keyboard navigation added. 18 tests written and verified across the full codebase. Zero errors.

Fix the nested button error in workout history.

What the agent did

AI-generated workouts, not templates

Every workout is generated fresh from your exact equipment, goal and time — exercise names, sets, reps, rest periods and a realistic calorie estimate. Unique every time.

Real-time progress tracking

Check off exercises as you go; progress saves to the database instantly. Close the tab, come back tomorrow — your workout is exactly where you left it.

6 equipment types, 4 training goals

Dumbbells, barbell, pull-up bar, bands, kettlebell, bodyweight. Strength, cardio, flexibility, HIIT. Any combination adapts the workout to exactly what you have.

Custom icon system

Hand-picked SVG icons — dumbbells, kettlebell, running figure — wired to adapt to the theme automatically. No emoji, no icon fonts. Clean, scalable vectors.

Dark cinematic gym aesthetic

Bold uppercase headlines, neon green accents on a near-black background. Feels like a premium training app, not a weekend project.

Workout history with full recall

Every generated workout is saved and browsable — goal, duration, calories and completion at a glance. Delete what you don't need.

Completion celebration

Finish every exercise and get a celebration banner with total workout stats — that satisfying moment when you’re done.

18 tests, zero errors

Backend functions, workout logic and page rendering — all covered before handoff. If something breaks, it’s caught before you see it.