{"id":21319737,"url":"https://github.com/blurfx/calendar-heatmap","last_synced_at":"2026-03-05T17:43:44.816Z","repository":{"id":57574925,"uuid":"354338041","full_name":"blurfx/calendar-heatmap","owner":"blurfx","description":"Calendar heatmap svg generator written in go","archived":false,"fork":false,"pushed_at":"2021-06-11T08:01:41.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T04:38:37.884Z","etag":null,"topics":["calendar","calendar-heatmap","codegen","codegenerator","contribution-graph","contributions-calendar","go","golang","heatmap","heatmap-visualization","svg","visualization"],"latest_commit_sha":null,"homepage":"","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/blurfx.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":"2021-04-03T16:19:06.000Z","updated_at":"2023-09-26T20:03:33.000Z","dependencies_parsed_at":"2022-09-18T06:20:33.325Z","dependency_job_id":null,"html_url":"https://github.com/blurfx/calendar-heatmap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/blurfx/calendar-heatmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fcalendar-heatmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fcalendar-heatmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fcalendar-heatmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fcalendar-heatmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blurfx","download_url":"https://codeload.github.com/blurfx/calendar-heatmap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fcalendar-heatmap/sbom","scorecard":{"id":245099,"data":{"date":"2025-08-11","repo":{"name":"github.com/blurfx/calendar-heatmap","commit":"8bf4582f1a1d4d6eb65dad1d15192c4d61917ece"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"Code-Review","score":0,"reason":"Found 0/5 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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":-1,"reason":"No tokens found","details":null,"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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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":"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:26:24.624Z","repository_id":57574925,"created_at":"2025-08-17T07:26:24.624Z","updated_at":"2025-08-17T07:26:24.624Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30139582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"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":["calendar","calendar-heatmap","codegen","codegenerator","contribution-graph","contributions-calendar","go","golang","heatmap","heatmap-visualization","svg","visualization"],"created_at":"2024-11-21T19:44:02.798Z","updated_at":"2026-03-05T17:43:44.786Z","avatar_url":"https://github.com/blurfx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calendar-Heatmap\n\nGenerate svg image of calendar heatmap like GitHub contribution graph.\n\n## Guide\n\n### Installation\n```\ngo get github.com/blurfx/calendar-heatmap\n```\n\n\n### Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/blurfx/calendar-heatmap\"\n)\n\nfunc main() {\n\tdata := make(map[heatmap.Date]int)\n\n\tdata[heatmap.Date{Year: 2021, Month: 1, Day: 1}] = 1\n\tdata[heatmap.Date{Year: 2021, Month: 2, Day: 21}] = 3\n\tdata[heatmap.Date{Year: 2021, Month: 3, Day: 17}] = 4\n\n\th := heatmap.New(nil)\n\tbuffer := h.Generate(\n\t\theatmap.Date{Year: 2021, Month: 1, Day: 1},\n\t\theatmap.Date{Year: 2021, Month: 3, Day: 31},\n\t\tdata,\n    )\n\n\tfmt.Println(buffer.String())\n\t// \u003csvg ...\u003e...\u003c/svg\u003e\n}\n```\n\n### Heatmap Customization\n\nYou can customize heat maps using the CalendarHeatmapConfig structure.\n\n#### Default Configs\n```go\n\u0026CalendarHeatmapConfig{\n\tColors:           []string{\"#EBEDF0\", \"#9BE9A8\", \"#40C463\", \"#30A14E\", \"#216E39\"},\n\tBlockSize:        11,\n\tBlockMargin:      2,\n\tBlockRoundness:   2,\n\tMonthLabels:      []string{\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"},\n\tMonthLabelHeight: 15,\n\tWeekdayLabels:    []string{\"\", \"Mon\", \"\", \"Wed\", \"\", \"Fri\", \"\"},\n}\n```\n\n#### Using your own configuration \n```go\nmyConfig := \u0026heatmap.CalendarHeatmapConfig{\n    // ...\n}\n\nh := heatmap.New(myConfig)\n```\n\n## Example Output\n![Generated SVG](https://raw.githubusercontent.com/blurfx/calendar-heatmap/static/demo.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblurfx%2Fcalendar-heatmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblurfx%2Fcalendar-heatmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblurfx%2Fcalendar-heatmap/lists"}