{"id":37747049,"url":"https://github.com/jrmycanady/gocronometer","last_synced_at":"2026-01-16T14:18:07.725Z","repository":{"id":38892668,"uuid":"269516627","full_name":"jrmycanady/gocronometer","owner":"jrmycanady","description":"gocronometer is a go module that provides API access to the export methods of Cronometer.com","archived":false,"fork":false,"pushed_at":"2025-10-26T16:56:39.000Z","size":62,"stargazers_count":89,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T18:29:44.638Z","etag":null,"topics":["api","cronometer","export","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrmycanady.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-06-05T02:54:09.000Z","updated_at":"2025-10-26T16:56:29.000Z","dependencies_parsed_at":"2024-04-19T13:43:33.098Z","dependency_job_id":"7e5cced0-8f69-4f4e-9b88-563d1cfb29ee","html_url":"https://github.com/jrmycanady/gocronometer","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/jrmycanady/gocronometer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmycanady%2Fgocronometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmycanady%2Fgocronometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmycanady%2Fgocronometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmycanady%2Fgocronometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrmycanady","download_url":"https://codeload.github.com/jrmycanady/gocronometer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmycanady%2Fgocronometer/sbom","scorecard":{"id":536907,"data":{"date":"2025-08-11","repo":{"name":"github.com/jrmycanady/gocronometer","commit":"a166ef797b2337ec8f89312b143fc7160d7a47c9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/api_test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/jrmycanady/gocronometer/api_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/api_test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/jrmycanady/gocronometer/api_test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/api_test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: GNU General Public License v2.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T07:12:45.400Z","repository_id":38892668,"created_at":"2025-08-20T07:12:45.400Z","updated_at":"2025-08-20T07:12:45.400Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","cronometer","export","go","golang"],"created_at":"2026-01-16T14:18:05.976Z","updated_at":"2026-01-16T14:18:07.719Z","avatar_url":"https://github.com/jrmycanady.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gocronometer\ngocronometer is an GPLv2 licensed Go module that provides a client for exporting data from \n[Cronometer](https://cronometer.com). It utilizes the export features to retrieve the CSV data from the unpublished API.\n\n**NOTE:** This module utilizes the same API the SPA uses. For that reason it should only be used by single users wanting \nto export their personal data for backup or other reasons. It should never be used for integrations that the enterprise \nplan would cover. The library is licensed under the GPLv2 to help prevent the unacceptable usage.\n\n## Basic Example\n```go\n// Create the client.\nc := gocronometer.NewClient(nil)\n\n// Login to cronometer.\nerr := c.Login(context.Background(), username, password)\nif err != nil {\n    t.Fatalf(\"failed to login with valid creds: %s\", err)\n}\n\n// Retrieve the export data.\nrawCSVData, err = c.ExportServings(context.Background(), time.Date(2020, 06, 01, 0, 0, 0, 0, time.UTC), time.Date(2020, 06, 04, 0, 0, 0, 0, time.UTC))\nif err != nil {\n    t.Fatalf(\"failed to retrieve servings: %s\", err)\n}\n\nfmt.Println(rawCSVData)\n```\n\n## Exports Supported\n\nThe following exports are supported. The standard output is the raw CSV data from the API. The data can be parsed\nusing the helper parse functions.\n\n| func                   | description                                                      |\n|------------------------|------------------------------------------------------------------|\n| ExportDailyNutrition() | Exports daily nutrition information for the date range provided. |\n| ExportServings()       | Exports servings for the date range provided.                    |\n| ExportExercises()      | Exports exercises for the date range provided.                   |\n| ExportBiometrics()     | Exports biometrics for the date range provided.                  |\n| ExportNotes()          | Exports notes for the date range provided.                       |\n\n## Parsing Data\n\nThe raw CSV data returned by the export functions can be parsed using the associated parse functions.\n\n| func                  | parsed data                            |\n|-----------------------|----------------------------------------|\n| ParseServingsExport() | ExportDailyNutrition(), ExportServings |\n| ParseExerciseExport() | ExportExercises()                      |\n| ParseBiometric()      | RecordsExport()                        |\n\n## API Magic Values\n\nThis library mimics the GWT HTTP requests to perform the export of data. The GWT API exposed by Cronometer is not \ndesigned to be accessed from anything besides their deployed GWT application. For that reason, there are several values \nthat can only be obtained from loading the application itself. These values change over time with application updates,\nand the library must use those new values.\n\nThe library includes the values as of the last push of the library. The new values can be provided to the client via\nthe ClientOptions parameter of the NewClient function.\n\n### Magic Values\n\n|Name|Location|Changes|\n|----|------|------|\n|GWTContentType|Retrieve from request header.|false|\n|GWTModuleBase|Retrieve from request header.|false|\n|GWTPermutation|Retrieve from request header.|true|\n|GWTHeader|Retrieve from GWT request body.|true|\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrmycanady%2Fgocronometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrmycanady%2Fgocronometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrmycanady%2Fgocronometer/lists"}