{"id":13691259,"url":"https://github.com/hstsethi/dietcli","last_synced_at":"2025-10-05T20:32:43.022Z","repository":{"id":227395214,"uuid":"768982812","full_name":"hstsethi/dietcli","owner":"hstsethi","description":"A command line nutrition tracker written in C++","archived":false,"fork":false,"pushed_at":"2024-11-04T06:57:22.000Z","size":69,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-12T17:46:07.548Z","etag":null,"topics":["cli","command-line","cpp-project","cpp-projects","nutrition","nutrition-calculator","rapidjson"],"latest_commit_sha":null,"homepage":"","language":"C++","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/hstsethi.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":"2024-03-08T05:14:51.000Z","updated_at":"2024-11-04T06:57:25.000Z","dependencies_parsed_at":"2024-03-26T07:26:52.144Z","dependency_job_id":"bc020709-f3e1-4696-9e72-de689ebf4edc","html_url":"https://github.com/hstsethi/dietcli","commit_stats":null,"previous_names":["hstsethi/dietcli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstsethi%2Fdietcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstsethi%2Fdietcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstsethi%2Fdietcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstsethi%2Fdietcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hstsethi","download_url":"https://codeload.github.com/hstsethi/dietcli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224970198,"owners_count":17400292,"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":["cli","command-line","cpp-project","cpp-projects","nutrition","nutrition-calculator","rapidjson"],"created_at":"2024-08-02T17:00:42.556Z","updated_at":"2025-10-05T20:32:42.940Z","avatar_url":"https://github.com/hstsethi.png","language":"C++","readme":"DietCli is a blazingly fast, cross-platform, command line nutrition tracker written in C++.\n\nNote: Previously it was known as \"NutritionCLI\". However, that version used INI, was slow and buggy and hence is no longer supported. Though it's [source code](https://github.com/hstsethi/nutritioncli) is available for historical purposes.\n\n\"Blazingly fast\", is not just in name. See the benchmark at [Kaggle](https://www.kaggle.com/code/hstsethi/dietcli-benchmark) or run it yourself. Below are the results of the whole use, including printing and calculations, **not just parsing**.:\n\n```\nreal    0m0.003s\nuser    0m0.001s\nsys     0m0.002s\n```\n\n## Usage\n\nDownload the release or [build](build.md) it yourself.\n\nTo avoid clutter and promote a more structured, familiar approach of documentation. The documentation has been moved to man page. You can download the source and view it by `man ./dietcli.1` or read the [markdown version](docs/dietcli.md).\n\n\nTo generate a pie chart of calorie breakdown by macro nutrient, simply run `python visualize.py`. \n\n\n## Examples\n\n![img](pie-diet-cli-default.png)\n\n```\n\n$ ./dietcli macro my-custom-config.json\nProtein RDI amount : 50 Consumed amount : 20     Remaining : 30\nCarbs   RDI amount : 225        Consumed amount : 100     Remaining : 125\nFats    RDI amount : 70 Consumed amount : 10     Remaining : 60\nFiber   RDI amount : 30 Consumed amount : 20     Remaining : 10\n\n```\n\n```\n$ ./dietcli vit | awk '{print $1, $12}'\n\n# NutrientName, RemainingAmount\n\nA 200\nB12 1\nC 81\nD 18\nE 7\nK 3\n\n```\n\n# Acknowledgements\n\n- USDA for providing RDI of nutrients.\n\n- Tencent for RapidJSON library.\n\n","funding_links":[],"categories":["Open Source Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstsethi%2Fdietcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhstsethi%2Fdietcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstsethi%2Fdietcli/lists"}