Skip to content

wrkout/exercises.json

Repository files navigation

Exercises

Open Public Domain Exercise Dataset in JSON format

Motivation

I'm someone who is quite into their fitness, and have tried using many different fitness apps for building and tracking custom workouts.

Most of the apps l tried had a very small list of in-built exercises, requiring me to add custom ones to their system, or just not track the exercise within the app (defeating the purpose of the app).

My hope is that this repo changes that. l want to create a complete and extensive open dataset of exercises that sits within the public domain, with the idea that eventually all fitness tracking apps can use.

Contributions are wanted, as l know this will be too much to undertake by any one person, so please visit the contributing guidelines

Scripts

  1. npm run build:json - creates a JSON file with all exercises
  2. npm run build:psql - creates a SQL file for PostgreSQL to load all exercises in

Public JSON API Service

You can use the raw links served by GitHub, example:

$ curl https://raw.githubusercontent.com/wrkout/exercises.json/master/exercises/Barbell_Curl/exercise.json

Generate exercises.json

$ npm run build:json

This builds an exercises.json file which contains all exercises in a single file.

Generate exercises-psql.sql

$ npm run build:psql
$ npm run build:psql -- <table name>

This builds an exercises-psql.sql file which creates and inserts all exercises into a PostgreSQL database.

Maintainers

@olliejennings