Exercise catalog, media assets, and multilingual instruction database for the SparkyFitness ecosystem.
Contains 1,908 canonical exercises with comprehensive biomechanical metadata, equipment taxonomy, muscle engagement targets, and localized instructions across 9 languages.
Search and filter every exercise by muscle, equipment, level and more, play its video and read its steps in 9 languages: https://codewithcj.github.io/SparkyFitnessExerciseLibrary/. Every exercise has a Suggest an edit button, and the Contribute page builds a new exercise for you. To run the site locally, run pnpm install in docs/, then pnpm docs:dev from the repository root.
Demonstrations generated with the SparkyFitness character and gym. Muscle highlights: red/orange for primary, yellow for secondary, blue for stabilizers. Click a preview to open the full MP4.
![]() Ab Wheel Rollout 9:16 MP4 · 16:9 MP4 |
![]() Band Squat MP4 |
exercises/<id>_<slug>/— One folder per exercise (for examplesf-core-oth-0002_ab_wheel_rollout) containingexercise.jsonand its media (.mp4,.webp).locales/<lang>/exercises.json— Translation dictionaries synced with Weblate (en,es,fr,it,tr,zh,hi,pl,ko).taxonomy/— Standard muscle (muscles.json), equipment (equipment.json), and modality (modalities.json) lists, plus the catalog ID codes (catalog-codes.json).schema/— JSON schema validation rules (exercise.schema.json).dist/exercises.json— Consolidated catalog (1,908 exercises) compiled by the build script and rebuilt automatically after every merge.
Use pnpm exercises to inspect and search the catalog from your terminal:
# 1. Quick overview (lists first 25 exercises)
pnpm exercises
# 2. Search by name, keyword, or alias
pnpm exercises "bench press"
pnpm exercises "squat"
pnpm exercises "deadlift"
# 3. Filter by muscle group
pnpm exercises --muscle chest
pnpm exercises --muscle biceps
pnpm exercises --muscle quadriceps
# 4. Filter by equipment
pnpm exercises --equipment dumbbell
pnpm exercises --equipment kettlebells
pnpm exercises --equipment cable
# 5. Show catalog statistics & breakdowns
pnpm exercises --stats
# 6. List all 1,908 exercises without pagination
pnpm exercises --allThe Ab Wheel Rollout from the sample videos above:
exercises/sf-core-oth-0002_ab_wheel_rollout/
├── exercise.json
├── sf-core-oth-0002_ab_wheel_rollout_m_9_16.mp4 # vertical video
├── sf-core-oth-0002_ab_wheel_rollout_m_9_16.webp # vertical animated preview
├── sf-core-oth-0002_ab_wheel_rollout_m_16_9.mp4 # horizontal video
├── sf-core-oth-0002_ab_wheel_rollout_m_16_9.webp # horizontal animated preview
└── sf-core-oth-0002_ab_wheel_rollout_m_thumb.webp # static card thumbnail
exercise.json:
{
"$schema": "../../schema/exercise.schema.json",
"id": "sf-core-oth-0002",
"slug": "ab_wheel_rollout",
"name": "Ab Wheel Rollout",
"aliases": [
"Wheel Rollerout",
"Ab Roller Rollout",
"Kneeling Ab Wheel Rollout"
],
"taxonomy": {
"modality": "weight_reps",
"category": "waist",
"body_part": "waist",
"mechanic": "isolation",
"force": null,
"level": "intermediate",
"equipment": "other",
"primary_muscles": [
"abdominals"
],
"secondary_muscles": [
"lower back"
]
},
"biomechanics": {
"laterality": "bilateral",
"movement_plane": "sagittal",
"default_tempo": "2-0-2-0",
"demonstration_reps": 2
},
"steps": [
"Kneel on the floor and place the wheel roller in front of you.",
"Place your hands on the handles of the wheel roller and extend your arms straight out in front of you.",
"Engage your core muscles and slowly roll the wheel forward, keeping your back straight and your abs tight.",
"Continue rolling forward until your body is fully extended and your arms are overhead.",
"Pause for a moment, then slowly roll the wheel back towards your knees, maintaining control and keeping your abs engaged.",
"Repeat for the desired number of repetitions."
],
"coaching_cues": [
"Do not let your lower back sag or hyperextend at full extension",
"Keep tension in your glutes and core throughout the entire range of motion",
"Pull back using your abdominals and lats, not by sitting back onto your heels"
],
"media": {
"thumbnail_timestamp": 3
}
}The media block is optional; here it only picks the thumbnail frame (thumbnail_timestamp, in seconds). The build finds the media files by their names and writes this into dist/exercises.json:
"media": {
"video_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_9_16.mp4",
"video_vertical_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_9_16.mp4",
"video_horizontal_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_16_9.mp4",
"animation_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_9_16.webp",
"animation_vertical_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_9_16.webp",
"animation_horizontal_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_16_9.webp",
"thumbnail_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_thumb.webp",
"image_path": null,
"male": {
"video_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_9_16.mp4",
"video_vertical_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_9_16.mp4",
"video_horizontal_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_16_9.mp4",
"animation_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_9_16.webp",
"animation_vertical_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_9_16.webp",
"animation_horizontal_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_16_9.webp",
"thumbnail_path": "exercises/sf-core-oth-0002_ab_wheel_rollout/sf-core-oth-0002_ab_wheel_rollout_m_thumb.webp",
"image_path": null
}
}The flat keys are the default set (male, or female when that is all there is). male and female list each model's own files and are only present when that model has media.
Media files are auto-discovered by filename convention inside each exercise folder:
| Asset Type | File Naming Convention | Description |
|---|---|---|
| Vertical Video (9:16) | <folder>_<m|f>_9_16.mp4 |
720×1280 portrait loop (ideal for mobile full-screen / tutorial) |
| Horizontal Video (16:9) | <folder>_<m|f>_16_9.mp4 |
1280×720 widescreen (ideal for web, desktop & compact logger) |
| Animated Preview | <folder>_<m|f>_9_16.webp / <folder>_<m|f>_16_9.webp |
Looping preview of the video with the same name (~160–460 KB) |
| Thumbnail Image | <folder>_<m|f>_thumb.webp (or .jpg, .png) |
Card thumbnail image (~15–40 KB) |
<folder> is the exercise's folder name, for example sf-core-oth-0002_ab_wheel_rollout. m or f says whether the male or the female SparkyFitness model demonstrates the exercise. Every file in an exercise folder must follow this pattern; pnpm validate rejects other names.
- Codec: H.264 (
libx264) - Audio: Silent (
-an) for smooth seamless looping - Optimization: Web-ready
+faststart - Target Size: ~0.5 MB to 1.5 MB (hard cap 2.5 MB)
- Duration: 5 to 15 seconds (shows 1–2 complete repetitions)
- Metadata:
pnpm mediawrites the exercise ID, name, model and license into each MP4's title, comment and copyright tags, so a video can still be identified if it is renamed or copied out of its folder
Besides our own files, an exercise can link one YouTube video in its media block. The link is a single address that carries the whole clip, so nothing else has to be kept in sync:
"media": { "youtube_url": "https://youtu.be/dQw4w9WgXcQ?t=62&end=121" }t is where the exercise starts and end is where it stops, in seconds, so this plays 1:02 to 2:01 of a longer video. A plain browser only honours the start; the browse site and the apps read both. Only link videos you have the right to link, and the owner must allow embedding. The exercise generator builds the link from a pasted address and start and end times. In dist/exercises.json the link is published as media.youtube_url, with its parts in media.youtube (id, start, end).
Whenever you add or update raw video files, run the automated media optimizer:
# 1. Automatically compress oversized videos, strip audio, and generate missing .webp previews
pnpm media
# 2. Extract 4 candidate thumbnail frames across the rep cycle to pick the best action frame
pnpm media candidates sf-core-oth-0002
# 3. Force re-encoding of all media
pnpm media force-all(To choose the thumbnail frame yourself, add "media": { "thumbnail_timestamp": 3.0 } to exercise.json. It is the only thing the media block can hold. It applies when the thumbnail is created, so to change an existing thumbnail, delete <folder>_<m|f>_thumb.webp and run pnpm media again.)
exercise.json enforces canonical taxonomy values matching the SparkyFitness ecosystem:
- Modality (
taxonomy.modality):
weight_reps·bodyweight_reps·reps_only·weight_duration·weight_distance·duration·duration_distance - Equipment (
taxonomy.equipment):
barbell·dumbbell·kettlebells·cable·machine·bands·body only·medicine ball·exercise ball·foam roll·e-z curl bar·other - Muscles (
primary_muscles/secondary_muscles):
abdominals·abductors·adductors·biceps·calves·chest·forearms·glutes·hamstrings·lats·lower back·middle back·neck·quadriceps·shoulders·traps·triceps - Mechanic & Force:
mechanic:compound·isolation(or empty)
force:push·pull·static(or empty)
level:beginner·intermediate·expert
(See the taxonomy/ folder for complete schema definitions).
Easiest way: use the exercise generator. It builds exercise.json, works out the ID, folder and media file names, checks them with the same rules as pnpm validate, and opens the file on GitHub so you can send it as a pull request without installing anything.
Or follow these step-by-step instructions to add a new exercise by hand:
Every exercise gets a catalog ID of the form sf-<body>-<equip>-<number>, all lowercase, for example sf-arms-db-0007.
-
Body code: the first primary muscle decides it (
taxonomy.categorycardiois alwayscard).Code Muscles chestchest backlats, middle back, lower back, traps shldshoulders, neck armsbiceps, triceps, forearms legsquadriceps, hamstrings, glutes, calves, abductors, adductors coreabdominals cardcardio / conditioning -
Equipment code: taken from
taxonomy.equipment.Code Equipment Code Equipment bbbarbell bndbands dbdumbbell balmedicine ball, exercise ball kbkettlebells eze-z curl bar bwbody only cblcable mchmachine othother, foam roll -
Number: the next free 4-digit number in that body/equipment pair. List what exists with
pnpm exercises sf-arms-db-and take the next one. -
An ID never changes once it is published, even if the exercise is later reclassified. Apps and translations rely on it. The codes in
taxonomy/catalog-codes.jsonare the single source of the rules. -
Expected Naming Convention Format:
- Folder Name:
exercises/<id>_<slug>/(e.g.,exercises/sf-legs-bnd-0035_band_lateral_walk/). id: The catalog ID only ("sf-legs-bnd-0035").slug: Lowercase snake_case, at most 50 characters ("band_lateral_walk").name: Clean Title Case display name ("Band Lateral Walk").
- Folder Name:
-
Word Order Standards:
- Weighted / Machine exercises:
[Equipment] [Angle/Grip] [Movement](e.g. Barbell Bench Press, Dumbbell Incline Bench Press, Cable Triceps Pushdown, Band Squat). - Bodyweight / Calisthenics:
[Movement](e.g. Push-up, Pull-up, Air Bike, Plank). - Search Synonyms: Put common variations or inverted word orders into the
aliasesarray (e.g.aliases: ["Incline Barbell Bench Press"]).
- Weighted / Machine exercises:
-
Check whether the exercise already exists with
pnpm exercises "<name>".
- Copy an existing
exercise.json(like the Ab Wheel Rollout example above). - Fill in the canonical taxonomy, biomechanics, and clear English
steps(which serve as the source of truth for translations). - You do not need to write a
"media"block — media files are auto-discovered from the folder.
- Drop your video (
.mp4) into the exercise folder following the naming convention:<folder>_m_9_16.mp4for vertical video, or<folder>_m_16_9.mp4for horizontal video (or both!). Usefinstead ofmfor the female model.
- Run the media optimizer commands:
This re-encodes any video over 1.5 MB (the 2.5 MB cap is a hard limit), mutes audio (
# Optimize only missing or unoptimized media across all exercises: pnpm media # Force re-encode all exercises: pnpm media force-all # Force re-encode only one specific exercise: pnpm media force sf-core-oth-0002 # Preview candidate thumbnail frames to pick the best action frame timestamp: pnpm media candidates sf-core-oth-0002
-an), adds+faststart, and generates:<folder>_m_thumb.webp: Lightweight static card thumbnail (360x640 / 640x360, ~15–25 KB).<folder>_m_9_16.webp/<folder>_m_16_9.webp: Full-duration animated WebP preview loops (~160–460 KB) with 24-bit true color for smooth mobile & web playback and compact offline caching.
Before opening the PR, run:
pnpm validate # Must pass with zero errorsYou do not need to run pnpm build or commit dist/ or locales/: after your PR is merged, a workflow rebuilds and commits them. Run pnpm build only to try the result locally (for example with pnpm exercises or pnpm docs:dev).
Videos live in the exercise folder and are committed like any other file. In your pull request, include:
- ✅
exercises/<folder>/exercise.json - ✅ The compressed MP4 video(s) in the same folder:
<folder>_m_9_16.mp4(vertical, recommended) and optionally<folder>_m_16_9.mp4(horizontal), at most 2.5 MB each. Usefinstead ofmfor a female model. - ✅ The thumbnail and animated previews that
pnpm mediacreates from them:<folder>_m_thumb.webp,<folder>_m_9_16.webpand<folder>_m_16_9.webp. Editing on github.com? Skip these: after the merge, a workflow creates them from your video.
If you are using generative AI to produce new 3D anatomy exercise demonstration videos:
- Image-to-Video Prompt Guide — When creating video demonstrations from 2D reference images or diagrams.
- Video-to-Video Prompt Guide — When transforming existing raw exercise footage into consistent SparkyFitness branded demonstrations.
pnpm exercises # Interactive exercise inspector & search CLI (e.g. pnpm exercises "bench press")
pnpm validate # Validates catalog IDs, folder and media names, taxonomy, and video codec/sizes
pnpm build # Compiles dist/exercises.json with auto-discovered media & syncs Weblate
pnpm media # In-place video compression and auto-generation of WebP previews
pnpm docs:dev # Runs the browse site locally (run pnpm install in docs/ first)
pnpm docs:build # Builds the browse site into docs/.vitepress/distSparkyFitness imports dist/exercises.json from a tagged release of this repository. Apps should pin a release tag rather than read main, and key exercises by their id, which never changes. folder gives the exercise's directory, and every media path is relative to the repository root.
Each release carries exercises.json (the catalog), locales.zip (all translations), the LICENSE and NOTICE.md that must travel with them, and SHA256SUMS.txt. Versions follow the effect on apps: major for ID or schema changes, minor for new exercises, media or fields, patch for fixes.
See CONTRIBUTING.md and the Code of Conduct. AI tools and developers: read AGENTS.md first.
If you hold rights to an image, video or text in this library, or you appear in one of the videos, and you want it removed, open an issue titled "Removal request" with the exercise ID and file name, or message the maintainer (@CodeWithCJ) on GitHub. We will take the media out of the repository and the next release. Media from other sources lists its source in sources.media in the exercise's exercise.json, so it can be found and removed quickly.
Free for personal, educational and other non-commercial use; commercial use needs written permission. This covers the exercise data, translations, images and videos as well as the code. The SparkyFitness name, logo and character are not licensed for branding your own work. See LICENSE.
Parts of the exercise data were adapted from open-source datasets under permissive licenses. The notices they require are in NOTICE.md. The only third-party media are the 25 exercise videos by Your Move, used under their free-video terms (commercial use with credit; not for resale or redistribution as a standalone video library). They stay under those terms, not this library's license, and each is credited in its exercise's sources.media and in media.credits of dist/exercises.json. Apps that show them must show the credit "Exercise video by Your Move". No other third-party media is included, and none may be added without a license.

