node package manager


Generate a random CrossFit Workout Of the Day


wod is a node.js module to generate a CrossFit Workout Of the Day (WOD)

Get a random WOD from 16 WODs categories:

  • Weightlifting
  • Endurance
  • Bodyweight
  • AMRAP...

Based on the awesome 5.071 unique WODs of THEWODSHOP. This is not sponsored, supported, or affiliated with THEWODSHOP.

You can install wod and its dependencies with npm:

npm install wod.

var wod = require('wod');	

// Generate a random WOD from all workouts
	if (err) console.log(err);
	var random_wod = workouts[0];

// Generate a list of random WODs from input categories
var wodsCat = ['weightlifting','bodyweight','emotm'];
	if (err) console.log(err);
	for(var i=0;i<workouts.length;i++)
wod.random([categories], callback);


  • categories, optional, array containing list of WODs categories
  • callback with error return and WODs results.

Callback receives (error, response).

To run the tests under node you will need mocha and should installed (it's listed as a devDependencies so npm install from the checkout should be enough), then do

$ npm test

wod is currently maintained by Yassine Azzout.

MIT license