{"id":20951393,"url":"https://github.com/lgug2z/tdee","last_synced_at":"2025-09-19T23:13:27.016Z","repository":{"id":104319648,"uuid":"102354457","full_name":"LGUG2Z/tdee","owner":"LGUG2Z","description":"Calculate your total daily energy expenditure","archived":false,"fork":false,"pushed_at":"2017-09-04T11:50:09.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T22:48:51.491Z","etag":null,"topics":["calories","fitness","food","health"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LGUG2Z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-04T11:31:19.000Z","updated_at":"2023-07-25T14:11:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7b56c4a-4c38-445f-8bef-44a2db551fbe","html_url":"https://github.com/LGUG2Z/tdee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LGUG2Z%2Ftdee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LGUG2Z%2Ftdee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LGUG2Z%2Ftdee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LGUG2Z%2Ftdee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LGUG2Z","download_url":"https://codeload.github.com/LGUG2Z/tdee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243347584,"owners_count":20276213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calories","fitness","food","health"],"created_at":"2024-11-19T00:58:39.432Z","updated_at":"2025-09-19T23:13:21.953Z","avatar_url":"https://github.com/LGUG2Z.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tdee\ntdee is a simple command line tool to calculate your total daily energy expenditure.\n\n## Requirements\n* [Go](https://github.com/golang/go)\n\n## Install\nThe latest version of bfm can be installed using `go get`.\n\n```\ngo get -u github.com/LGUG2Z/tdee\n```\n\nMake sure `$GOPATH` is set correctly that and that `$GOPATH/bin` is in your `$PATH`.\n\nThe `tdee` executable will be installed under the `$GOPATH/bin` directory.\n\n## Overview\n`tdee` calculates your total daily energy expenditure by averaging the \nbasal metabolic rate estimates given by three of the most commonly \nused formulas: Mifflin-St. Jeor, the original Harris-Benedict formula \nand the revised Harris-Benedict formula.\n\n\nThe raw output of this tool is designed to be piped to [gainit](https://github.com/lgug2z/gainit)\nand [loseit](https://github.com/lgug2z/loseit) to calculate a surplus for bulking or a deficit for cutting.\n\n## Usage\nCertain information is required for this tool to be able to calculate an estimate of\nyour total daily energy expenditure: height, weight, age, sex and a lifestyle modifier.\nHeight and weight can be given in either cm/kg or ft/lb by using either the `--metric`\nor `--imperial` flags. The `--height`, `--weight`, `--age` and `--sex` flags are used\nto input the required information.\n\nValid lifestyle modifiers are:\n```\n1.2   : Sedentary\n1.375 : Lightly Active\n1.55  : Moderately Active\n1.7   : Very Active\n1.9   : Extremely Active\n```\n\nValid sex options are:\n```\nmale\nfemale\n```\n\n## Examples\n\nBasic use:\n```\n❯ tdee --metric \\\n       --height 172 \\\n       --weight 63.7 \\\n       --age 29 \\\n       --sex male \\\n       --lifestyle 1.375\n       \n2191 kcal\n```\n\nRaw numerical output:\n```\n❯ tdee --metric \\\n       --height 172 \\\n       --weight 63.7 \\\n       --age 29 \\\n       --sex male \\\n       --lifestyle 1.375 \\\n       --raw\n       \n2191\n```\n\nRaw numerical output piped to `gainit`\n```\n❯ tdee --metric \\\n       --height 172 \\\n       --weight 63.7 \\\n       --age 29 \\\n       --sex male \\\n       --lifestyle 1.375 \\\n       --raw \\\n       | xargs gainit --gain 0.5 --kg\n       \n2741 kcal\n```\n\nRaw numerical output piped to `loseit`\n```\n❯ tdee --metric \\\n       --height 172 \\\n       --weight 63.7 \\\n       --age 29 \\\n       --sex male \\\n       --lifestyle 1.375 \\\n       --raw \\\n       | xargs loseit --lose 0.4 --kg\n       \n1751 kcal\n```\n\n## Scripting\nGiven that weight is the only variable that is likely to change regularly, these tools can\nbe scripted in order to be less verbose:\n\n```bash\n# Add this function to your shell rc\ngain() {\n  tdee --metric \\\n    --height 172 \\\n    --weight $1 \\\n    --age 29 \\\n    --sex male \\\n    --lifestyle 1.375 \\\n    --raw \\\n    | xargs gainit --gain 0.3 --kg\n}\n\n# Use it\n❯ gain 63.7\n\n2521 kcal\n```\n\n```bash\n# Add this function to your shell rc\nshred() {\n  tdee --metric \\\n    --height 172 \\\n    --weight $1 \\\n    --age 29 \\\n    --sex male \\\n    --lifestyle 1.375 \\\n    --raw \\\n    | xargs loseit --lose 0.5 --kg\n}\n\n# Use it\n❯ shred 70.6\n\n1758 kcal\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgug2z%2Ftdee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flgug2z%2Ftdee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgug2z%2Ftdee/lists"}