{"id":42233063,"url":"https://github.com/haozibi/leetcode-badge","last_synced_at":"2026-01-27T03:12:16.413Z","repository":{"id":48930747,"uuid":"198809399","full_name":"haozibi/leetcode-badge","owner":"haozibi","description":"LeetCode badges (LeetCode 徽标)","archived":false,"fork":false,"pushed_at":"2024-04-13T06:03:45.000Z","size":2871,"stargazers_count":31,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T04:22:34.211Z","etag":null,"topics":["badge","badges","calendar","calendarheatmap","go","golang","heatmap","leetcode","leetcode-cn"],"latest_commit_sha":null,"homepage":"https://leetcode-badge.haozibi.dev","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/haozibi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-25T10:21:36.000Z","updated_at":"2024-01-24T11:44:31.000Z","dependencies_parsed_at":"2024-03-28T07:25:08.752Z","dependency_job_id":"37303fb8-3688-40da-9564-01d2fe828dcc","html_url":"https://github.com/haozibi/leetcode-badge","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/haozibi/leetcode-badge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozibi%2Fleetcode-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozibi%2Fleetcode-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozibi%2Fleetcode-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozibi%2Fleetcode-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haozibi","download_url":"https://codeload.github.com/haozibi/leetcode-badge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haozibi%2Fleetcode-badge/sbom","scorecard":{"id":455110,"data":{"date":"2025-08-11","repo":{"name":"github.com/haozibi/leetcode-badge","commit":"da2b99469bc6aeab59ed21661ab3019795841a66"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/29 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":-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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:3","Warn: containerImage not pinned by hash: Dockerfile:28: pin your Docker image by updating alpine:3.16 to alpine:3.16@sha256:452e7292acee0ee16c332324d7de05fa2c99f9994ecc9f0779c602916a672ae4","Info:   0 out of   3 containerImage 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-1572 / GHSA-qgc7-mgm3-q253","Warn: Project is vulnerable to: GO-2023-1990 / GHSA-j3p8-6mrq-6g7h","Warn: Project is vulnerable to: GO-2023-1989 / GHSA-x92r-3vfx-4cv3","Warn: Project is vulnerable to: GO-2024-2937 / GHSA-9phm-fm57-rhg8","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"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-19T09:21:38.000Z","repository_id":48930747,"created_at":"2025-08-19T09:21:38.000Z","updated_at":"2025-08-19T09:21:38.000Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28798680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"online","status_checked_at":"2026-01-27T02:00:07.755Z","response_time":168,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["badge","badges","calendar","calendarheatmap","go","golang","heatmap","leetcode","leetcode-cn"],"created_at":"2026-01-27T03:12:15.782Z","updated_at":"2026-01-27T03:12:16.401Z","avatar_url":"https://github.com/haozibi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](logo.png)\n\n[![CircleCI](https://circleci.com/gh/haozibi/leetcode-badge/tree/master.svg?style=svg)](https://circleci.com/gh/haozibi/leetcode-badge/tree/master) [![](https://img.shields.io/badge/Github-leetcode--badge-blueviolet)](https://github.com/haozibi/leetcode-badge) [![Go Report Card](https://goreportcard.com/badge/github.com/haozibi/leetcode-badge)](https://goreportcard.com/report/github.com/haozibi/leetcode-badge) [![](https://leetcode-badge.haozibi.dev/v1cn/haozibi.svg)](https://leetcode.cn/haozibi) [![](https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg)](https://leetcode.cn/haozibi) [![](https://leetcode-badge.haozibi.dev/v1cn/solved/haozibi.svg)](https://leetcode.cn/haozibi) [![](https://leetcode-badge.haozibi.dev/v1cn/solved-rate/haozibi.svg)](https://leetcode.cn/haozibi) [![](https://leetcode-badge.haozibi.dev/v1cn/accepted/haozibi.svg)](https://leetcode.cn/haozibi) [![](https://leetcode-badge.haozibi.dev/v1cn/accepted-rate/haozibi.svg)](https://leetcode.cn/haozibi)\n\n![](https://leetcode-badge.haozibi.dev/v1cn/chart/submission-calendar/stormsunshine.svg?type=past-year)\n![](https://leetcode-badge.haozibi.dev/v1cn/chart/submission-calendar/stormsunshine.svg?type=past-year\u0026color=yellow)\n![](https://leetcode-badge.haozibi.dev/v1cn/chart/submission-calendar/stormsunshine.svg?type=past-year\u0026color=blue)\n\n![](https://leetcode-badge.haozibi.dev/v1cn/card/question-process/haozibi.svg)\n![](https://leetcode-badge.haozibi.dev/v1cn/card/contest-ranking/haozibi.svg)\n\n\n# leetcode 徽标 \n\n\n\u003c!-- @import \"[TOC]\" {cmd=\"toc\" depthFrom=1 depthTo=6 orderedList=false} --\u003e\n\n\u003c!-- code_chunk_output --\u003e\n\n- [leetcode 徽标](#leetcode-徽标)\n  - [快速开始](#快速开始)\n  - [徽标](#徽标)\n  - [图表](#图表)\n  - [卡片](#卡片)\n  - [致谢](#致谢)\n  - [JetBrains 开源证书支持](#jetbrains-开源证书支持)\n\n\u003c!-- /code_chunk_output --\u003e\n\n\n## 快速开始\n\n1. 获取 `{LeetCode_ID}`，根据 LeetCode 获取自己的`{LeetCode_ID}`。例如 [https://leetcode.com/haozibi](https://leetcode.com/haozibi) 的 `{LeetCode_ID}` 为 **haozibi**\n2. 替换 `{LeetCode_ID}`，根据自己的需求替换下面 URL 中的 `{LeetCode_ID}`\n\n## 徽标\n\n\u003cdetails\u003e\u003csummary\u003e用户名\u003c/summary\u003e\n\u003cp\u003e\n\n### 用户名\n\n- ![](https://leetcode-badge.haozibi.dev/v1cn/haozibi.svg)\n- LeetCode: `https://leetcode-badge.haozibi.dev/v1/{LeetCode_ID}.svg`\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/{LeetCode_ID}.svg`\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003e排名\u003c/summary\u003e\n\u003cp\u003e\n\n### 排名\n\n- ![](https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg)\n- LeetCode: `https://leetcode-badge.haozibi.dev/v1/ranking/{LeetCode_ID}.svg`\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/ranking/{LeetCode_ID}.svg`\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e通过题目数/总题目数\u003c/summary\u003e\n\u003cp\u003e\n\n### 通过题目数/总题目数\n\n- ![](https://leetcode-badge.haozibi.dev/v1cn/solved/haozibi.svg)\n- LeetCode: `https://leetcode-badge.haozibi.dev/v1/solved/{LeetCode_ID}.svg`\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/solved/{LeetCode_ID}.svg`\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e通过题目数/总题目数 比例\u003c/summary\u003e\n\u003cp\u003e\n\n### 通过题目数/总题目数 比例\n\n- ![](https://leetcode-badge.haozibi.dev/v1cn/solved-rate/haozibi.svg)\n- LeetCode: `https://leetcode-badge.haozibi.dev/v1/solved-rate/{LeetCode_ID}.svg`\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/solved-rate/{LeetCode_ID}.svg`\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e通过提交/总提交\u003c/summary\u003e\n\u003cp\u003e\n\n### 通过提交/总提交\n\n- ![](https://leetcode-badge.haozibi.dev/v1cn/accepted/haozibi.svg)\n- LeetCode: `https://leetcode-badge.haozibi.dev/v1/accepted/{LeetCode_ID}.svg`\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/accepted/{LeetCode_ID}.svg`\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e通过提交/总提交 比例\u003c/summary\u003e\n\u003cp\u003e\n\n### 通过提交/总提交 比例\n\n- ![](https://leetcode-badge.haozibi.dev/v1cn/accepted-rate/haozibi.svg)\n- LeetCode: `https://leetcode-badge.haozibi.dev/v1/accepted-rate/{LeetCode_ID}.svg`\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/accepted-rate/{LeetCode_ID}.svg`\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e自定义\u003c/summary\u003e\n\u003cp\u003e\n\n### 自定义\n\n此项目依托 [shields.io](https://shields.io)，支持所有 shields 的 Query 参数\n\n例如：\n\n- ![](https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?logo=leetcode) `https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?logo=leetcode`\n- ![](https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?color=ff5983\u0026logo=leetcode) `https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?color=ff5983\u0026logo=leetcode`\n- ![](https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?style=for-the-badge\u0026color=ff5983\u0026logo=leetcode) `https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?style=for-the-badge\u0026color=ff5983\u0026logo=leetcode`\n\n更多 logo 可以查看 [simpleicons.org](https://simpleicons.org/) 或者 [https://github.com/simple-icons/simple-icons/blob/develop/slugs.md](https://github.com/simple-icons/simple-icons/blob/develop/slugs.md)\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n## 图表\n\n\u003cdetails\u003e\u003csummary\u003e做题记录\u003c/summary\u003e\n\u003cp\u003e\n\n### 做题记录\n\n![](https://leetcode-badge.haozibi.dev/v1cn/chart/submission-calendar/haozibi.svg)\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/chart/submission-calendar/{LeetCode_ID}.svg?type=past-year\u0026color=yellow`\n\n参数\n\n- type: 范围\n  - 默认: 今年\n  - past-year: 过去一年\n- color: 颜色\n  - green(默认)\n  - yellow\n  - blue\n\n注意事项:\n\n1. 暂时只支持中国区\n2. 只有开启了 LeetCode 的 **`设置-通知与隐私-显示我的提交记录`** 选项才支持此功能\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e排名记录图表\u003c/summary\u003e\n\u003cp\u003e\n\n### 排名记录图表\n\n![](https://leetcode-badge.haozibi.dev/v1cn/chart/ranking/haozibi.svg)\n\n- LeetCode: `https://leetcode-badge.haozibi.dev/v1/chart/ranking/{LeetCode_ID}.svg`\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/chart/ranking/{LeetCode_ID}.svg`\n\n支持 `day` 参数，指定查询天数，最大查询日期为 30 天\n\n例如: 查询之前 15 天的数据，https://leetcode-badge.haozibi.dev/v1cn/chart/ranking/haozibi.svg?day=15\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e答题数量图表\u003c/summary\u003e\n\u003cp\u003e\n\n### 答题数量图表\n\n![](https://leetcode-badge.haozibi.dev/v1cn/chart/solved/haozibi.svg)\n\n- LeetCode: `https://leetcode-badge.haozibi.dev/v1/chart/solved/{LeetCode_ID}.svg`\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/chart/solved/{LeetCode_ID}.svg`\n\n支持 `day` 参数，指定查询天数，最大查询日期为 30 天\n\n例如: 查询之前 15 天的数据，https://leetcode-badge.haozibi.dev/v1cn/chart/solved/haozibi.svg?day=15\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n\n## 卡片\n\n*还需要对模版做美化*\n\n展示支持多种语言，参数 `?lang=en`\n\n- zh: 中文(默认值)\n- en: 英文\n\n\u003cdetails\u003e\u003csummary\u003e做题进度\u003c/summary\u003e\n\u003cp\u003e\n\n### 做题进度\n\n**只有中国区**\n\n![](https://leetcode-badge.haozibi.dev/v1cn/card/question-process/haozibi.svg)\n\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/card/question-process/{LeetCode_ID}.svg?lang=en`\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e竞赛信息\u003c/summary\u003e\n\u003cp\u003e\n\n### 竞赛信息\n\n**只有中国区**\n\n![](https://leetcode-badge.haozibi.dev/v1cn/card/contest-ranking/haozibi.svg)\n\n- LeetCodeCN: `https://leetcode-badge.haozibi.dev/v1cn/card/contest-ranking/{LeetCode_ID}.svg`\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n## 致谢\n\n- [Picas](https://github.com/djyde/Picas): logo 生成\n- [shields.io](https://shields.io): badge 生成\n\n## JetBrains 开源证书支持\n\n[![](static/jetbrains.svg)](https://www.jetbrains.com/?from=leetcode-badge)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaozibi%2Fleetcode-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaozibi%2Fleetcode-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaozibi%2Fleetcode-badge/lists"}