[ FOR DEVELOPERS OF TRAINING APPLICATIONS ]

Workout description in.
Structured JSON out.

WorkoutSmith turns workouts written the way coaches and athletes write them into validated Structured Workout Format (SWF) JSON that your app can store, render, or sync to a device.

[ EXAMPLE ]
[ INPUT ]

10 min warmup, then 4x6min at 90-95% FTP with 4 min easy spin between. 10 min cooldown.

[ SWF ]
Download
{
  "version": "0.4.0",
  "title": "4x6min FTP Intervals",
  "sport": "cycling",
  "content": [
    {
      "type": "section",
      "phase": "warmup",
      "content": [
        {
          "type": "step",
          "effort": "work",
          "volume": {
            "type": "constant",
            "quantity": "duration",
            "value": 600
          }
        }
      ]
    },
    {
      "type": "section",
      "phase": "main",
      "content": [
        {
          "type": "repeat",
          "count": 4,
          "content": [
            {
              "type": "step",
              "effort": "work",
              "volume": {
                "type": "constant",
                "quantity": "duration",
                "value": 360
              },
              "intensity": {
                "type": "range",
                "quantity": "power",
                "min": {
                  "percent": 90,
                  "of": "ftp"
                },
                "max": {
                  "percent": 95,
                  "of": "ftp"
                }
              }
            },
            {
              "type": "step",
              "effort": "rest",
              "volume": {
                "type": "constant",
                "quantity": "duration",
                "value": 240
              }
            }
          ]
        }
      ]
    },
    {
      "type": "section",
      "phase": "cooldown",
      "content": [
        {
          "type": "step",
          "effort": "work",
          "volume": {
            "type": "constant",
            "quantity": "duration",
            "value": 600
          }
        }
      ]
    }
  ]
}
[ INPUT ]

15' easy, 5 x 1km @ 4:00/km w/ 90s jog recovery, 10' cool down

[ SWF ]
Download
{
  "version": "0.4.0",
  "title": "5x1km",
  "sport": "running",
  "content": [
    {
      "type": "section",
      "phase": "warmup",
      "content": [
        {
          "type": "step",
          "effort": "work",
          "volume": {
            "type": "constant",
            "quantity": "duration",
            "value": 900
          }
        }
      ]
    },
    {
      "type": "section",
      "phase": "main",
      "content": [
        {
          "type": "repeat",
          "count": 5,
          "content": [
            {
              "type": "step",
              "effort": "work",
              "volume": {
                "type": "constant",
                "quantity": "distance",
                "value": 1000
              },
              "intensity": {
                "type": "constant",
                "quantity": "speed",
                "value": 4.1667
              }
            },
            {
              "type": "step",
              "effort": "rest",
              "volume": {
                "type": "constant",
                "quantity": "duration",
                "value": 90
              }
            }
          ]
        }
      ]
    },
    {
      "type": "section",
      "phase": "cooldown",
      "content": [
        {
          "type": "step",
          "effort": "work",
          "volume": {
            "type": "constant",
            "quantity": "duration",
            "value": 600
          }
        }
      ]
    }
  ]
}
[ INPUT ]

Warm up 400 free. Main set 8x100 hard, 20s rest. Cool down 200 easy. 25m pool.

[ SWF ]
Download
{
  "version": "0.4.0",
  "title": "8x100 Hard",
  "sport": "swimming",
  "pool_length": 25,
  "content": [
    {
      "type": "section",
      "phase": "warmup",
      "content": [
        {
          "type": "step",
          "effort": "work",
          "note": "free",
          "volume": {
            "type": "constant",
            "quantity": "distance",
            "value": 400
          }
        }
      ]
    },
    {
      "type": "section",
      "phase": "main",
      "content": [
        {
          "type": "repeat",
          "count": 8,
          "content": [
            {
              "type": "step",
              "effort": "work",
              "note": "hard",
              "volume": {
                "type": "constant",
                "quantity": "distance",
                "value": 100
              }
            },
            {
              "type": "step",
              "effort": "rest",
              "volume": {
                "type": "constant",
                "quantity": "duration",
                "value": 20
              }
            }
          ]
        }
      ]
    },
    {
      "type": "section",
      "phase": "cooldown",
      "content": [
        {
          "type": "step",
          "effort": "work",
          "note": "easy",
          "volume": {
            "type": "constant",
            "quantity": "distance",
            "value": 200
          }
        }
      ]
    }
  ]
}
[ WHO ]
Developers building training platforms, coaching tools and device integrations.
[ IN ]
Free-text workouts with shorthand, mixed units and paces. Cycling, running, swimming.
[ OUT ]
One SWF document, schema-validated on every request. 90% FTP stays 90% FTP; paces and distances are converted exactly, never guessed.