https://github.com/colbywhite/weight-program-schema
An open-source JSON schema for defining weightlifting programs
https://github.com/colbywhite/weight-program-schema
Last synced: 3 months ago
JSON representation
An open-source JSON schema for defining weightlifting programs
- Host: GitHub
- URL: https://github.com/colbywhite/weight-program-schema
- Owner: colbywhite
- Created: 2017-05-28T20:24:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T03:54:45.000Z (almost 8 years ago)
- Last Synced: 2025-01-30T00:33:46.388Z (4 months ago)
- Language: TypeScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# weight-program-schema
An open-source JSON schema for defining workout programs.
The idea is that a common standard would enable websites/blogs to define
workouts in a format that can be read by multiple workout apps.# Usage
```
const WPS = require('weight-program-schema')
// The raw JSON schema definition:
console.log(WPS._schema)// A method for calculating a day-by-day schedule based on a given program definition
console.log(WPS.schedule_calculator(program))
```# Schema File
The schema is located at [`src/weight-program-schema.json`](src/weight-program-schema.json)
and uses the standard [JSON Schema](http://json-schema.org).# Schema Tests
`npm test`