Skip to content
Public template

About

A simple, free workout coach that runs in your browser. Follow a ready-made plan or get one from an AI chat, with demo videos, coach audio and timers. No account, no ads. Fork it and make it your own.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Workout Coach

This is a small workout app for people who would rather press a button and get on with the workout than keep figuring out what comes next. It combines exercise demos, spoken instructions, rest timers and a little bit of context around the muscles and joints involved.

The intention is to make following a plan feel a little less intimidating. There are ready-made plans to start from, but the app is also designed so you can bring your own plan into it without having to learn how to code.

Try it: https://workout.ashwinraghavan.com/

My week: the plan's photo, what's next with the muscles it works, then the days coming up Plans: ready-made plans as photo cards, each with its days a week, level and kit A day: the muscles it works, then the warm-up (with its switch) and the exercises

How I use it

I usually run it on my phone and mirror the screen to the TV while I work through the workout. The TV isn't particularly important though.. you can just use the app directly on your phone, laptop or whatever screen you have around.

This is basically what my setup looks like at home. Have used my laptop to mirror it this time so I could use my phone to click this photo 😛. I usually mirror the workout from my phone though so I can easily reach out and click next during the workout.

My setup at home: the workout mirrored to the TV, with a yoga mat, a pair of dumbbells and an adjustable bench in front of it

Why this exists

Once I had the basic version working for myself, it felt a bit silly to keep it private. It's a fairly simple idea, and there are probably plenty of ways other people would want to structure their workouts differently. So I figured I'd put the whole thing out there and let people use it, break it, improve it or ignore most of it and take the bits they find useful.

Make it yours

And for the curious, this was entirely vibe coded with Claude. I had the idea in my head, described what I wanted, and kept going back and forth with Claude until I had something I was happy with. It was a lot more fun than I expected!

So don't feel like you need to understand every line of code before touching this. Point Claude, Codex, Cursor or whichever coding agent you use at the repo and have a go. Change the exercises, the plans, the design or whatever else you fancy. And share the good bits back.

Using it: tips

Start any day. Your first workout is the day you start a plan, and the rest follow with the rest days the plan has. Miss a day and the plan waits for you: My week shows what's next, what you've done this round, and what's coming up.

Make it an app on your phone.

  • iPhone: open the site in Safari → Share (on iOS 26 it's in the ⋯ menu beside the address) → Add to Home Screen (under View More if it isn't listed; keep "Open as Web App" on).
  • Android: open it in Chrome → ⋮ → Add to Home screen (or Install app).
  • The icon opens your plan. My week also shows these steps on a phone.

It then opens full-screen like an app, with no browser bars.

Put it on the TV.

  • iPhone to an AirPlay TV: turn Rotation Lock off and hold the phone sideways. Then open Control Center → Screen Mirroring and pick the TV. Landscape fills the TV.
  • Android: use Cast screen / Smart View to a Chromecast or smart TV.
  • A laptop works too: HDMI, or cast the browser tab.

Control it from the phone.

  • Done ends a set and starts the rest.
  • ‹ goes back a step, and ✕ (tap twice) leaves the workout.
  • ‹ › at the top switch between alternate demo videos. Your choice is remembered per exercise.

Pick one voice.

  • Coach (the default) talks you through the set.
  • Video plays the demo's own audio. On demos with no voice, the coach fills in.
  • Tap Coach again to silence everything.

Warm-up and cool-down are on by default. Turn either off with the switch in its section on the day screen, or tap Skip warm-up in the player once you're warm.

Preview any exercise by tapping it (on a day, or in the Exercises tab) to learn it before you start. The preview also shows its level, the kit it needs and which joints it's easy on or loads.

The coach tells you what each exercise works during the rest before it ("This one works your quads and glutes"), and the muscle figure on screen lights them up, so the gym words become familiar.

There are no accounts and no ads (every demo video is checked for ads), and nothing about you is tracked. The app counts anonymous visits with Umami (no cookies, nothing that recognises you, and never your plan) so I can see whether it's useful. Your browser's Do Not Track setting turns even that off.

Ready-made plans

The Plans tab has plans to start from, like a first full-body plan at home, losing weight with bands and walks, first steps in a gym, building muscle with dumbbells or in a gym, a desk worker's posture plan, a mobility plan and my own week. They're built from published guidance (ACSM progression models, Schoenfeld's work on training volume, the WHO activity guidelines). Filter by goal, open one to see each day, and tap Start this plan to make it your week. Browsing never changes your week, and switching asks first.

Get your own plan (no code needed)

Tap + Create on the Plans tab and pick the AI chat you already use. It opens a new chat with a message that turns the AI into a coach: it asks about your goals, any aches, where you train (at home or in a gym) and how much time you have, one question at a time, then gives you a link. Tap the link and your plan opens in the app, with the same videos, coach voice and timers.

  • It's free. The AI runs on your own account; this site has no server.
  • Your plan lives in its link. Bookmark it or add it to your Home Screen. The app also remembers the last plan you opened on that phone.
  • Private. Your answers stay in your AI chat. The link holds only exercise names and numbers, and the part after # is never sent to any server.
  • Changing it later: on My week, tap Change or share this plan → Change it with AI. The AI gets your current plan and gives you a new link. Share sends the link to a friend, and it opens the same plan for them.
  • Your plans on the Plans tab keeps the plans you've made, each with its own card, so you can switch back anytime.
  • Cardio and sport become activity days (a walk, a run, your football match), with the warm-up before and the stretches after.
  • If an AI makes a mistake in the link, the app says what's wrong and gives you a message to paste back into the chat.

Some chats open with the message ready (ChatGPT, and Claude once you're signed in). For the rest, the app copies the message and you paste it in. If the chat shows your link as plain text rather than a link you can tap, copy it: back in the app, Create asks for it.

The AI can only choose from the app's exercise library, where every exercise has a checked demo video, cues that match it and a recorded coach voice. The library is growing.

Under the hood

If you'd rather run your own copy (your own exercises, videos and wording), fork this repo. There's no build step: it's plain HTML, CSS and JavaScript. The visit counting only runs on my address, so your copy counts nothing unless you put your own Umami ID in Analytics in app.js.

File What's in it
library.js Every exercise: name, cues, safety line, demo videos, default sets/reps; the warm-up, cool-down and activities
plan.js The plan link format, and the example plan the app opens with (EXAMPLE_PLAN)
speech.js Everything the coach says, and how names are pronounced (SPOKEN_NAMES)
prompt.js The message that turns an AI chat into a coach that writes plans
programs.js The ready-made plans on the Plans tab, and their photos (saved in photos/ by tools/photos.mjs)

The easiest way is to hand the job to an AI coding assistant such as Claude Code. CLAUDE.md already explains how the app is built and the rules that keep it good: one movement per exercise, cues that match the demo, ad-free videos, and wording that sounds natural out loud. docs/decisions.md records why each feature works the way it does, and .claude/skills/ has step-by-step recipes for adding a demo video and changing what the coach says.

A plan

A plan is one line, the same one the AIs write:

v1/t:Home-Strength/mon:Full-Body-A:boxsquat.3x10-12,sarow.3x10,planktaps.3x30s/wed:Brisk-Walk:walk.30m/sun:Stretch:couch.1x60s

Each day is mon…sun, a name, then exercises as id.SETSxREPS (or a range like 10-12), id.SETSxSECONDSs for holds, or one activity like walk.30m. Put yours in EXAMPLE_PLAN to make it the one the app opens with, or just open your-site/# followed by the line.

An exercise

rdl: {
  name: "Romanian Deadlift", sets: 3, reps: "8–10", unit: "reps", rest: 90,   // defaults; plans set their own
  equip: "dumbbells", type: "hinge", level: "intermediate",                  // what the AI sees
  easyOn: ["knees"], loads: ["lowerback"], easier: ["slbridge", "sumodl"],
  muscles: { main: ["hams", "glutes"], help: ["lowerback", "forearms", "adductors"] },
  key: "Hinge at the hips with soft knees",               // the Focus: the one thing that matters most
  cues: ["Stand tall with your chest up and core tight",    // in the order the demo shows them
         "Push your hips back as if touching a wall behind you", "..."],
  stop: "If you feel it in your lower back, stop before your back rounds.",
  videos: [{ id: "YouTube id", start: 5, end: 40 }]       // main demo first, then alternates
},

Holds use time: 30 (seconds) instead of reps. Add perSide: true for one side at a time, type: "stretch" for stretches, and voice: true to a video when someone talks in it.

The coach's voice

It works straight away: any phrase without a recording is spoken by the phone's built-in voice. For the natural voice you hear on the live site, record your phrases with the free, offline Kokoro model. Setup is in the header of tools/make_audio.py:

.venv/bin/python tools/make_audio.py --models <folder with the Kokoro model files>

It records only new or changed phrases (including every rep count and hold time a plan can ask for) and removes clips you no longer use.

Publish it for free

In your fork on GitHub, go to Settings → Pages → Source: GitHub Actions. The included workflow (.github/workflows/pages.yml) publishes main at https://<you>.github.io/<repo>/, and a staging branch, if you make one, at …/staging/ for trying changes on your phone first. Each release's files are stamped with its commit, so phones never mix old and new files.

Check it

  • Add ?selftest to your site's address (or run python3 -m http.server in the folder and open localhost:8000/?selftest). It runs every day's session in seconds on a simulated clock and checks the timing, the sound buttons, the wording, the plan links and whether the layout fits a phone. (Until you record your own voice clips, it will list the phrases without a recording.)
  • tests/e2e has deeper checks with real browsers and real YouTube, plus an ad scanner for demo videos (ad-scan.mjs). screenshots.mjs regenerates the images in this README. review.mjs takes every screen on desktop, iPhone portrait and landscape before you publish a visual change.

A note on safety

This is a player for a plan, not medical advice. The cues and "back off" lines come from my plan and the demo videos, and the AI is told to send anyone with warning signs (chest pain, dizziness, recent surgery, severe pain) to a doctor or physiotherapist first. If you have an injury, get your plan from a professional.

Demo videos

Every demo is the creator's own video, played through YouTube's embedded player (start and end points only; nothing is downloaded or edited). Thank you to these 60 channels:

The plan photos come from Unsplash (free to use under the Unsplash License) (copies are saved in photos/). Thank you to these photographers:

Changed the videos? node tools/credits.mjs rebuilds this list.

License

The code is MIT: use it, change it, share it. The demo videos are not part of this repo; they belong to their creators.


Built with Claude Code.

About

A simple, free workout coach that runs in your browser. Follow a ready-made plan or get one from an AI chat, with demo videos, coach audio and timers. No account, no ads. Fork it and make it your own.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages