Skip to main content

Author any session, from straight sets to Tabata

One schema and one field express every way people structure a session.

Who this is forApp developersEquipment & wearable engineers

Today

Your workout table grows a column every time a coach asks for something new — is_circuit, emom_interval, tabata_rounds, superset_group — most of them null on any given row. Every consumer has to know which columns matter for which kind of session, and a session type nobody planned for has nowhere to live.

With FDS

A workout is blocks of items, and how a block is executed is a single field: blocks[].mode. Straight sets, supersets, circuits, EMOM, AMRAP, Tabata and interval work are all the same document, differing only in mode and its modeParams. There is no per-style schema and no per-style field to leave null.

The same schema, three ways​

Here is a straight-set session — the baseline everything else departs from. Three identical sets of one exercise, prescribed by percentage of a one-rep max.

workout.straight.example.json
{
"schemaVersion": "1.2.0",
"workoutId": "00000000-0000-4000-8000-000000000001",
"canonical": {
"name": "Straight Sets",
"slug": "straight"
},
"classification": {
"workoutType": "strength"
},
"structure": {
"blocks": [
{
"id": "b1",
"mode": "sequential",
"items": [
{
"id": "i1",
"exercise": {
"id": "ex.backSquat",
"name": "Barbell Back Squat",
"fxi": "FXI=1.0S/m:hip.ext+kn.ext/o:standing/l:bar.straight@back"
},
"scheme": {
"pattern": "straight",
"sets": 3
},
"reps": {
"kind": "fixed",
"value": 5
},
"load": {
"method": "percent1RM",
"value": 80
},
"rest": {
"method": "fixed",
"appliesTo": "set",
"value": 3,
"unit": "min"
}
}
],
"role": "primary"
}
]
},
"metadata": {
"createdAt": "2026-08-09T00:00:00Z",
"updatedAt": "2026-08-09T00:00:00Z",
"status": "active",
"source": "vitness.core"
}
}

Three identical sets. mode: "sequential", and no modeParams are needed.

Backed by specification/schemas/workout/v1.2.0/workout.straight.example.json

Change nothing but the mode, and the same shape becomes an every-minute-on-the-minute conditioning piece. The clock now terminates each interval, which is why modeParams carries rounds and an interval.

workout.emom.example.json
{
"schemaVersion": "1.2.0",
"workoutId": "00000000-0000-4000-8000-000000000109",
"canonical": {
"name": "EMOM",
"slug": "emom"
},
"classification": {
"workoutType": "conditioning"
},
"structure": {
"blocks": [
{
"id": "b1",
"mode": "emom",
"items": [
{
"id": "i1",
"exercise": {
"id": "ex.thruster",
"name": "Thruster",
"fxi": "FXI=1.0S/m:el.ext+hip.ext+kn.ext+sh.flex/o:standing/l:?"
},
"reps": {
"kind": "fixed",
"value": 8
}
}
],
"role": "conditioning",
"modeParams": {
"rounds": 12,
"interval": {
"value": 1,
"unit": "min"
}
}
}
]
},
"metadata": {
"createdAt": "2026-08-09T00:00:00Z",
"updatedAt": "2026-08-09T00:00:00Z",
"status": "active",
"source": "vitness.core"
}
}

Every minute on the minute for twelve intervals. mode: "emom".

Backed by specification/schemas/workout/v1.2.0/workout.emom.example.json

And the same shape again, as a Tabata block — the mode simply changes what the consumer must do to traverse and terminate the block.

workout.tabata.example.json
{
"schemaVersion": "1.2.0",
"workoutId": "00000000-0000-4000-8000-000000000113",
"canonical": {
"name": "Tabata Intervals",
"slug": "tabata"
},
"classification": {
"workoutType": "conditioning"
},
"structure": {
"blocks": [
{
"id": "b1",
"mode": "tabata",
"items": [
{
"id": "i1",
"exercise": {
"id": "ex.airBike",
"name": "Air Bike",
"fxi": "FXI=1.0S/m:~hip.ext+kn.ext/o:seated/l:erg.cycle@feet/x:rc"
},
"reps": {
"kind": "time",
"value": 20,
"unit": "s"
}
}
],
"role": "conditioning",
"modeParams": {
"rounds": 8,
"work": {
"value": 20,
"unit": "s"
},
"rest": {
"value": 10,
"unit": "s"
}
}
}
]
},
"metadata": {
"createdAt": "2026-08-09T00:00:00Z",
"updatedAt": "2026-08-09T00:00:00Z",
"status": "active",
"source": "vitness.core"
}
}

Eight rounds of 20 seconds work, 10 seconds rest. mode: "tabata".

Backed by specification/schemas/workout/v1.2.0/workout.tabata.example.json

How it works​

mode decides three things a consumer cannot infer otherwise: how the block is traversed (all sets of item one before item two, or one set of each per pass), when it terminates (the work is done, or a clock expires), and which modeParams are meaningful. Everything else about the document is identical across the three examples above.

Grouping is a label, not a nesting: two items alternated in a superset carry groupLabel A1 and A2, and rest falls at the group boundary. An item's sets are given by a sets count or by a scheme, never both — the schema enforces it — so there is exactly one place to read how a set progresses.

The pay-off is that a consumer written once reads every session. Adding a new way to train does not add a schema, a table column, or a branch; it is a new value of one field, and a consumer that does not recognise it is told, by the standard, exactly what it must not assume.