{"id":42750822,"url":"https://github.com/bool64/stats","last_synced_at":"2026-01-29T19:33:31.136Z","repository":{"id":45235357,"uuid":"286560103","full_name":"bool64/stats","owner":"bool64","description":"Contextualized Stats Tracker for Go","archived":false,"fork":false,"pushed_at":"2021-12-29T10:55:14.000Z","size":58,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T08:28:26.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bool64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-10T19:19:46.000Z","updated_at":"2024-01-27T17:53:23.000Z","dependencies_parsed_at":"2022-08-04T13:00:29.867Z","dependency_job_id":null,"html_url":"https://github.com/bool64/stats","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bool64/stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bool64%2Fstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bool64%2Fstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bool64%2Fstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bool64%2Fstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bool64","download_url":"https://codeload.github.com/bool64/stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bool64%2Fstats/sbom","scorecard":{"id":247868,"data":{"date":"2025-08-11","repo":{"name":"github.com/bool64/stats","commit":"e614bc9406f15d7fc78ebc2c4e6e4d216602a334"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":"Maintained","score":0,"reason":"0 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":"Code-Review","score":0,"reason":"Found 0/9 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/bench.yml:1","Warn: no topLevel permission defined: .github/workflows/cloc.yml:1","Warn: no topLevel permission defined: .github/workflows/golangci-lint.yml:1","Warn: no topLevel permission defined: .github/workflows/gorelease.yml:1","Warn: no topLevel permission defined: .github/workflows/test-unit.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":"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/bench.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/bench.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bench.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/bench.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bench.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/bench.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bench.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/bench.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bench.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/bench.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bench.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/bench.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/bench.yml:96: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/bench.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cloc.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/cloc.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cloc.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/cloc.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cloc.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/cloc.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/golangci-lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/golangci-lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gorelease.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/gorelease.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gorelease.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/gorelease.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gorelease.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/gorelease.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gorelease.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/gorelease.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-unit.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/test-unit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-unit.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/test-unit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-unit.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/test-unit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-unit.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/test-unit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-unit.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/test-unit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-unit.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/test-unit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-unit.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/bool64/stats/test-unit.yml/master?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/gorelease.yml:36","Info:   0 out of  17 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned","Info:   0 out of   1 goCommand 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":"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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"}},{"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"}}]},"last_synced_at":"2025-08-17T07:56:00.109Z","repository_id":45235357,"created_at":"2025-08-17T07:56:00.109Z","updated_at":"2025-08-17T07:56:00.109Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28883091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T19:23:39.025Z","status":"ssl_error","status_checked_at":"2026-01-29T19:22:11.631Z","response_time":59,"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":[],"created_at":"2026-01-29T19:33:31.073Z","updated_at":"2026-01-29T19:33:31.130Z","avatar_url":"https://github.com/bool64.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contextualized Stats Tracker for Go\n\nThis library provides context-driven stats tracker.\n\n[![Build Status](https://github.com/bool64/stats/workflows/test/badge.svg)](https://github.com/bool64/stats/actions?query=branch%3Amaster+workflow%3Atest)\n[![Coverage Status](https://codecov.io/gh/bool64/stats/branch/master/graph/badge.svg)](https://codecov.io/gh/bool64/stats)\n[![GoDevDoc](https://img.shields.io/badge/dev-doc-00ADD8?logo=go)](https://pkg.go.dev/github.com/bool64/stats)\n[![time tracker](https://wakatime.com/badge/github/bool64/stats.svg)](https://wakatime.com/badge/github/bool64/stats)\n![Code lines](https://sloc.xyz/github/bool64/stats/?category=code)\n![Comments](https://sloc.xyz/github/bool64/stats/?category=comments)\n\n## Features\n\n* Loosely coupled with underlying implementation.\n* Context-driven labels control.\n* Zero allocation implementation for [Prometheus client](https://github.com/bool64/prom-stats).\n* A simple interface with variadic number of key-value pairs for labels.\n* Easily mockable interface free from 3rd party dependencies.\n\n## Example\n\n```go\n// Bring your own Prometheus registry.\nregistry := prometheus.NewRegistry()\ntr := prom.Tracker{\n    Registry: registry,\n}\n\n// Add custom Prometheus configuration where necessary.\ntr.DeclareHistogram(\"my_latency_seconds\", prometheus.HistogramOpts{\n    Buckets: []float64{1e-4, 1e-3, 1e-2, 1e-1, 1, 10, 100},\n})\n\nctx := context.Background()\n\n// Add labels to context.\nctx = stats.AddKeysAndValues(ctx, \"ctx-label\", \"ctx-value0\")\n\n// Override label values.\nctx = stats.AddKeysAndValues(ctx, \"ctx-label\", \"ctx-value1\")\n\n// Collect stats with last mile labels.\ntr.Add(ctx, \"my_count\", 1,\n    \"some-label\", \"some-value\",\n)\n\ntr.Add(ctx, \"my_latency_seconds\", 1.23)\n\ntr.Set(ctx, \"temperature\", 33.3)\n```\n\n## Versioning\n\nThis project adheres to [Semantic Versioning](https://semver.org/#semantic-versioning-200).\n\nBefore version `1.0.0`, breaking changes are tagged with `MINOR` bump, features and fixes are tagged with `PATCH` bump.\nAfter version `1.0.0`, breaking changes are tagged with `MAJOR` bump.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbool64%2Fstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbool64%2Fstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbool64%2Fstats/lists"}