Skip to content

Instantly share code, notes, and snippets.

@jdrzejb
Created February 12, 2026 09:29
Show Gist options
  • Select an option

  • Save jdrzejb/24070d42a3c0b76a2986bcc84ea70d4b to your computer and use it in GitHub Desktop.

Select an option

Save jdrzejb/24070d42a3c0b76a2986bcc84ea70d4b to your computer and use it in GitHub Desktop.
{
"id": "prog_abc123",
"title": "8-Week Transformation",
"description": "Complete fitness and nutrition program",
"creatorId": "creator_xyz",
"creators": ["creator_xyz"],
"createdAt": "2024-01-15T10:00:00Z",
"published": true,
"price": 4999,
"weeks": [
{
"id": "week_1",
"weekNumber": 1,
"title": "Foundation Week",
"days": [
{
"id": "day_1_1",
"dayNumber": 1,
"title": "Full Body + Meal Prep",
"content": [
{
"id": "workout_001",
"type": 1,
"title": "Full Body Strength",
"difficulty": 2,
"duration": 45,
"equipment": ["dumbbells", "bench"],
"exercises": [
{
"id": "ex_001",
"type": 1,
"name": "Dumbbell Squats",
"sets": 4,
"reps": "10-12",
"restSeconds": 60,
"videos": [
{
"id": "vid_ex_001",
"title": "Squat Form Guide",
"videoUrl": "https://cdn.example.com/squat-form.mp4",
"duration": "2:30",
"chapters": [
{ "title": "Setup", "timestamp": 0 },
{ "title": "Movement", "startTime": "0:45" },
{ "title": "Common Mistakes", "timestamp": 90 }
]
}
]
},
{
"id": "ex_002",
"type": 3,
"name": "Core Circuit",
"rounds": 3,
"restBetweenRounds": 60,
"exercises": [
{
"id": "ex_002a",
"type": 1,
"name": "Plank",
"duration": "30",
"videos": [
{
"id": "vid_plank",
"url": "https://cdn.example.com/plank.mp4",
"duration": 45
}
]
},
{
"id": "ex_002b",
"type": 1,
"name": "Mountain Climbers",
"reps": 20
},
{
"id": "ex_002c",
"type": 1,
"title": "Russian Twists",
"reps": 30,
"attachments": [
{
"id": "pdf_twist_guide",
"type": 3,
"title": "Twist Technique Guide",
"fileUrl": "https://cdn.example.com/twist-guide.pdf",
"pageCount": 2
}
]
}
]
},
{
"id": "ex_003",
"type": 5,
"name": "Treadmill Cooldown",
"distance": 1.5,
"incline": 1,
"duration": "8:00",
"intervals": [
{ "type": "walk", "duration": 120 },
{ "type": "jog", "durationSeconds": "180" },
{ "type": 1, "duration": 120 }
]
}
],
"createdAt": "2024-01-10T08:00:00Z",
"creatorId": "creator_xyz"
},
{
"id": "nutrition_001",
"type": 2,
"title": "Weekly Meal Prep",
"calories": 2200,
"macros": { "p": 180, "c": 220, "f": 70 },
"servings": 5,
"ingredients": [
{
"id": "recipe_001",
"type": 2,
"name": "Grilled Chicken Breast",
"prepTime": 10,
"cookTime": "25",
"calories": 350,
"macros": { "p": 45, "c": 2, "f": 8 },
"ingredients": [
{
"id": "ing_001",
"type": 1,
"name": "Chicken Breast",
"amount": 200,
"unit": "g",
"calories": 330
},
{
"id": "ing_002",
"type": 1,
"name": "Olive Oil",
"amount": 1,
"unit": "tbsp"
}
],
"instructions": ["Season", "Heat pan", "Cook 6-7 min per side"],
"videos": [
{
"id": "vid_chicken",
"title": "How to Grill Chicken",
"videoUrl": "https://cdn.example.com/chicken-tutorial.mp4",
"videoDuration": 180,
"thumbnailUrl": "https://cdn.example.com/chicken-thumb.jpg"
}
]
},
{
"id": "ing_003",
"type": 1,
"name": "Brown Rice",
"amount": 150,
"unit": "g"
}
],
"createdAt": "2024-01-10T08:30:00Z",
"creatorId": "creator_xyz"
},
{
"id": "video_standalone",
"type": 4,
"title": "Welcome to Week 1",
"videoUrl": "https://cdn.example.com/welcome.mp4",
"duration": 300,
"thumbnailUrl": "https://cdn.example.com/welcome-thumb.jpg"
},
{
"id": "pdf_001",
"type": 3,
"title": "Week 1 Overview",
"fileUrl": "https://cdn.example.com/week1-overview.pdf",
"pageCount": 4
}
]
},
{
"id": "day_1_2",
"dayNumber": 2,
"content": [
{
"id": "workout_002",
"type": 1,
"name": "HIIT Cardio",
"difficulty": "advanced",
"duration": "20:00",
"exercises": [
{
"id": "ex_010",
"type": 8,
"name": "HIIT Block",
"rounds": 4,
"workSeconds": 40,
"restBetweenRounds": 20,
"exercises": [
{
"id": "ex_010a",
"type": 1,
"name": "Burpees",
"videos": [{ "id": "v1", "url": "https://cdn.example.com/burpees.mp4", "duration": 30 }]
},
{ "id": "ex_010b", "type": 1, "name": "Jump Squats" }
]
},
{
"id": "ex_011",
"type": 9,
"title": "Tabata Finisher",
"rounds": 8,
"workSeconds": 20,
"restBetweenRounds": 10,
"exercises": [
{ "id": "ex_011a", "type": 1, "name": "Mountain Climbers" },
{ "id": "ex_011b", "type": 1, "title": "Plank Jacks" }
]
}
],
"attachments": [
{
"id": "video_warmup",
"type": 4,
"title": "HIIT Warmup Routine",
"videoUrl": "https://cdn.example.com/warmup.mp4",
"videoDuration": "5:00"
}
],
"createdAt": "2024-01-10T09:00:00Z"
}
]
}
]
}
],
"content": [
{
"id": "bonus_pdf",
"type": 3,
"name": "Program FAQ",
"fileUrl": "https://cdn.example.com/faq.pdf",
"pageCount": 8
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment