{"id":17716936,"url":"https://github.com/zmh-program/code-statistic","last_synced_at":"2025-07-10T14:30:48.118Z","repository":{"id":93504594,"uuid":"600054701","full_name":"zmh-program/code-statistic","owner":"zmh-program","description":"⚡ Dynamically generate your github stat cards! Contains User Card, Repo Card, Contributor Card, Release Card, Issue Card and PR Card! Support dark mode, API calling, waiting for you to explore! ⚡ 动态生成你的 GitHub 统计卡片！包含用户卡片，仓库卡片，Contributor 卡片，Relase 卡片，Issue 卡片，PR 卡片！支持暗黑模式，API 调用，更多等你探索！","archived":false,"fork":false,"pushed_at":"2024-02-29T03:03:45.000Z","size":1209,"stargazers_count":80,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-02-29T04:22:35.353Z","etag":null,"topics":["contributor-card","github-stats","golang","iris","issue-card","php","pr-card","repo-card","svg-card","user-card","vue"],"latest_commit_sha":null,"homepage":"https://stats.deeptrain.net","language":"PHP","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/zmh-program.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":"2023-02-10T13:35:50.000Z","updated_at":"2024-02-25T03:36:44.000Z","dependencies_parsed_at":"2024-10-25T17:05:23.003Z","dependency_job_id":"fc41072e-1ef2-4c36-849a-e126b6c90d06","html_url":"https://github.com/zmh-program/code-statistic","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/zmh-program/code-statistic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmh-program%2Fcode-statistic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmh-program%2Fcode-statistic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmh-program%2Fcode-statistic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmh-program%2Fcode-statistic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmh-program","download_url":"https://codeload.github.com/zmh-program/code-statistic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmh-program%2Fcode-statistic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264590771,"owners_count":23633638,"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":["contributor-card","github-stats","golang","iris","issue-card","php","pr-card","repo-card","svg-card","user-card","vue"],"created_at":"2024-10-25T14:01:14.656Z","updated_at":"2025-07-10T14:30:47.738Z","avatar_url":"https://github.com/zmh-program.png","language":"PHP","readme":"\u003cdiv align=\"center\"\u003e \n\n[\u003cimg src=\"docs/icon.png\" alt=\"Code Statistic\" width=\"64\" height=\"64\" style=\"transform: translateY(50px);\"\u003e](https://stats.deeptrain.net)\n# [Code Statistic](https://stats.deeptrain.net)\n\n#### ⚡ Dynamically generate your github statistic card!\n\n![License](https://img.shields.io/github/license/zmh-program/code-statistic?style=flat-square)\n![GitHub release](https://img.shields.io/github/v/release/zmh-program/code-statistic?style=flat-square)\n![GitHub stars](https://img.shields.io/github/stars/zmh-program/code-statistic?style=flat-square)\n\u003cbr\u003e\n\u003c/div\u003e\n\n## 🍊 User Card\nHey, want to generate quickly? Have a look at our [website](https://stats.deeptrain.net/)!\n\nThe user card is used to count the languages of all projects under the user and generate statistics, calculate total stars earned, forks acquired, followers, watchers, number of open issues, etc.\n```markdown\n[![zmh-program's Github Stats](https://stats.deeptrain.net/user/zmh-program/)](https://github.com/zmh-program/code-statistic)\n```\n[![zmh-program's Github Stats](https://stats.deeptrain.net/user/zmh-program/)](https://github.com/zmh-program/code-statistic)\n\n\u003e **Note**\n\u003e currently only your own repositories as statistics, do not support the repositories **contributed** to others, do not support **private** repositories, excluding **fork** repositories.\n\u003e\n\u003e We will count all repository data such as stars, forks, open issues and output the statistic.\n\n\n## 🍉 Repository Card\nThe repository card are used to show the language analysis of the project, stars, forks, license, repository size, etc.\n\n```markdown\n[![Deeptrain's Github Stats](https://stats.deeptrain.net/repo/zmh-program/chatnio)](https://github.com/zmh-program/code-statistic)\n```\n[![Deeptrain's Github Stats](https://stats.deeptrain.net/repo/zmh-program/chatnio)](https://github.com/zmh-program/code-statistic)\n\n\u003e **Warning**\n\u003e by default, we can't get the data of private repo, please use your own [token](https://github.com/settings/tokens/new) to deploy. Don't forget to check the box to access your private repositories!\n\n## 🍎 Contributor Card\nThe contributor card is used to count the contributors in a project and will be ranked by the number of `commits`.\n```markdown\n[![Web ChatGPT QQ Bot's Contributors](https://stats.deeptrain.net/contributor/zmh-program/web-chatgpt-qq-bot)](https://github.com/zmh-program/code-statistic)\n```\n[![Web ChatGPT QQ Bot's Contributors](https://stats.deeptrain.net/contributor/zmh-program/web-chatgpt-qq-bot)](https://github.com/zmh-program/code-statistic)\n\n\nThe param `column` is the number of contributors in each row. The minimum is **4** and the default is **6**.\nAdd `\u0026column=` to customize the number of columns.\n\n## 🍇 Release Card\nThe release card is used to display information about the release, such as branch, tag name, time and description, etc.\n```markdown\n[![Deeptrain's Latest Release](https://stats.deeptrain.net/release/zmh-program/code-statistic)](https://github.com/zmh-program/code-statistic)\n```\n[![Deeptrain's Latest Release](https://stats.deeptrain.net/release/zmh-program/code-statistic)](https://github.com/zmh-program/code-statistic)\n\nShow previous release versions by setting the parameter `tag`. Customize the release tag by adding `\u0026tag=`. The default is **latest**.\n\n## 🍋 Issue Card\nThe issue card is used to show the status of the issue, title, time, communication, etc.\n```markdown\n[![Vue's Issue #13013](https://stats.deeptrain.net/issue/vuejs/vue/13013)](https://github.com/zmh-program/code-statistic)\n```\n[![Vue's Issue #13013](https://stats.deeptrain.net/issue/vuejs/vue/13013)](https://github.com/zmh-program/code-statistic)\n\n## 🍓 Pull Request Card\nThe pull request card is used to show the status of the pull request, branches, title, time, migrations, etc.\n```markdown\n[![Code Statistic's PR #1](https://stats.deeptrain.net/pull/zmh-program/code-statistic/1)](https://github.com/zmh-program/code-statistic)\n```\n[![Code Statistic's PR #1](https://stats.deeptrain.net/pull/zmh-program/code-statistic/1)](https://github.com/zmh-program/code-statistic)\n\n## 🥝 Dark Theme\nVery easy, just add `?theme=dark` after it in any kind of card!\n```markdown\n[![web-chatgpt-qq-bot's Github Stats](https://stats.deeptrain.net/repo/zmh-program/web-chatgpt-qq-bot/?theme=dark)](https://github.com/zmh-program/code-statistic)\n```\n[![web-chatgpt-qq-bot's Github Stats](https://stats.deeptrain.net/repo/zmh-program/web-chatgpt-qq-bot/?theme=dark)](https://github.com/zmh-program/code-statistic)\n\n\n## 👨‍💻 API\n1. User\n    \u003e `GET` `https://stats.deeptrain.net/api/user/{user}`\n    \u003e \n    \u003e Example response:\n    \u003e ```json\n    \u003e {\n    \u003e   \"username\": \"zmh-program\",\n    \u003e   \"org\": false,\n    \u003e   \"location\": \"Shandong, China\",\n    \u003e   \"repos\": 24,\n    \u003e   \"stars\": \"0.3k\",\n    \u003e   \"watchers\": \"0.3k\",\n    \u003e   \"followers\": \"45\",\n    \u003e   \"forks\": \"10\",\n    \u003e   \"issues\": \"2\",\n    \u003e   \"languages\": [\n    \u003e     {\n    \u003e       \"color\": \"#3572A5\",\n    \u003e       \"lang\": \"Python\",\n    \u003e       \"percent\": 35.30345154490841,\n    \u003e       \"text\": \"Python 35% (525.1k)\",\n    \u003e       \"value\": 525070\n    \u003e     }, \n    \u003e     ...\n    \u003e   ]\n    \u003e }\n    \u003e ```\n    \u003e Error response:\n    \u003e ```json\n    \u003e {\n    \u003e  \"message\": \"user not found\"\n    \u003e }\n    \u003e ```                  \n    \u003cbr\u003e\n\n2. Repo \n    \u003e  `GET` `https://stats.deeptrain.net/api/repo/{user}/{repo}`\n    \u003e \n    \u003e Example response:\n    \u003e ```json\n    \u003e {\n    \u003e   \"username\": \"zmh-program\",\n    \u003e   \"license\": \"MIT\",\n    \u003e   \"repo\": \"code-statistic\",\n    \u003e   \"stars\": \"26\",\n    \u003e   \"watchers\": \"26\",\n    \u003e   \"color\": \"#a91e50\",\n    \u003e   \"forks\": \"1\",\n    \u003e   \"issues\": \"0\",\n    \u003e   \"size\": \"1.0 MiB\",\n    \u003e   \"languages\": [\n    \u003e     {\n    \u003e       \"color\": \"#3178c6\",\n    \u003e       \"lang\": \"TypeScript\",\n    \u003e       \"percent\": 42.76333789329686,\n    \u003e       \"text\": \"TypeScript 43% (21.9k)\",\n    \u003e       \"value\": 21882\n    \u003e     }, \n    \u003e     ...\n    \u003e   ]\n    \u003e }\n    \u003e ```\n    \u003e Error response:\n    \u003e ```json\n    \u003e {\n    \u003e   \"message\": \"repo not found\"\n    \u003e }\n    \u003e ```\n\n3. Contributor\n   \u003e `GET` `https://stats.deeptrain.net/api/contributor/{user}/{repo}`\n   \u003e\n   \u003e Example response:\n   \u003e ```json\n   \u003e {\n   \u003e   \"color\": \"#d2cece\",\n   \u003e    \"contributors\": [{\n   \u003e        \"avatar\": \"https://avatars.githubusercontent.com/u/112773885?v=4\",\n   \u003e        \"commits\": 18,\n   \u003e        \"image\": \"iVBORw0KGgoAAAANSUhEUgAA…uxEC+HwAAAAAElFTkSuQmCC\",\n   \u003e        \"username\": \"zmh-program\"\n   \u003e    }],\n   \u003e    \"repo\": \"zmh-program\",\n   \u003e    \"username\": \"zmh-program\"\n   \u003e }\n   \u003e ```\n   \u003e Error response:\n   \u003e ```json\n    \u003e {\n    \u003e   \"message\": \"repo not found\"\n    \u003e }\n    \u003e ```\n\n4. Release\n   \u003e `GET` `https://stats.deeptrain.net/api/release/{user}/{repo}/{tag|latest}`\n   \u003e\n   \u003e Example response:\n   \u003e ```json\n   \u003e {\n   \u003e   \"assets\": [\n   \u003e     {\n   \u003e       \"name\": \"install.sh\",\n   \u003e       \"size\": \"1.6k\",\n   \u003e       \"type\": \"application/x-sh\"\n   \u003e     },\n   \u003e     {\n   \u003e       \"name\": \"package.zip\",\n   \u003e       \"size\": \"791.5k\",\n   \u003e       \"type\": \"application/zip\"\n   \u003e     }\n   \u003e   ],\n   \u003e   \"author\": {\n   \u003e     \"avatar\": \"https://avatars.githubusercontent.com/u/112773885?v=4\",\n   \u003e     \"image\": \"iVBORw0KGgoAAAANSUhEUgAA…uxEC+HwAAAAAElFTkSuQmCC\",\n   \u003e     \"type\": \"User\",\n   \u003e     \"username\": \"zmh-program\"\n   \u003e   },\n   \u003e   \"branch\": \"main\",\n   \u003e   \"color\": \"#41b883\",\n   \u003e   \"date\": \"2023-05-23T15:17:52Z\",\n   \u003e   \"draft\": false,\n   \u003e   \"name\": \"1.6\",\n   \u003e   \"prerelease\": false,\n   \u003e   \"repo\": \"web-chatgpt-qq-bot\",\n   \u003e   \"tag\": \"1.6\",\n   \u003e   \"text\": \"here is release description...\",\n   \u003e   \"username\": \"zmh-program\"\n   \u003e }\n   \u003e ```\n   \u003e Error response:\n   \u003e ```json\n    \u003e {\n    \u003e   \"message\": \"release not found\"\n    \u003e }\n    \u003e ```\n\n5. Issue\n   \u003e `GET` `https://stats.deeptrain.net/api/issue/{user}/{repo}/{id}`\n   \u003e\n   \u003e Example response:\n   \u003e ```json\n   \u003e {\n   \u003e   \"color\": \"#f1e05a\",\n   \u003e   \"comments\": 1,\n   \u003e   \"date\": \"2022-01-18T21:10:09Z\",\n   \u003e   \"description\": \"...\",\n   \u003e   \"id\": 12,\n   \u003e   \"labels\": [],\n   \u003e   \"opener\": {\n   \u003e     \"avatar\": \"https://avatars.githubusercontent.com/u/63081316?v=4\",\n   \u003e     \"image\": \"iVBORw0KGgoAAAANSUhEUgAA…0cg9hQAAAAASUVORK5CYII=\",\n   \u003e     \"type\": \"User\",\n   \u003e     \"username\": \"mollthecoder\"\n   \u003e   },\n   \u003e   \"reactions\": 0,\n   \u003e   \"repo\": \"extensions\",\n   \u003e   \"state\": \"closed\",\n   \u003e   \"title\": \"Create dictionaries.js\",\n   \u003e   \"username\": \"turbowarp\"\n   \u003e }\n   \u003e ```\n   \u003e Error response:\n   \u003e ```json\n    \u003e {\n    \u003e   \"message\": \"issue not found\"\n    \u003e }\n    \u003e ```\n\n6. Pull Request\n   \u003e `GET` `https://stats.deeptrain.net/api/pull/{user}/{repo}/{id}`\n   \u003e\n   \u003e Example response:\n   \u003e ```json\n   \u003e {\n   \u003e   \"additions\": \"72\",\n   \u003e   \"changed_files\": 1,\n   \u003e   \"color\": \"#f1e05a\",\n   \u003e   \"comments\": 1,\n   \u003e   \"commits\": 1,\n   \u003e   \"creator\": {\n   \u003e     \"avatar\": \"https://avatars.githubusercontent.com/u/63081316?v=4\",\n   \u003e     \"image\": \"iVBORw0KGgoAAAANSUhEUgAA…0cg9hQAAAAASUVORK5CYII=\",\n   \u003e     \"type\": \"User\",\n   \u003e     \"username\": \"mollthecoder\"\n   \u003e   },\n   \u003e   \"date\": \"2022-01-18T21:10:09Z\",\n   \u003e   \"deletions\": \"0\",\n   \u003e   \"description\": \"...\",\n   \u003e   \"id\": 12,\n   \u003e   \"labels\": [],\n   \u003e   \"migration\": {\n   \u003e     \"base\": \"TurboWarp:master\",\n   \u003e     \"head\": \"mollthecoder:patch-1\"\n   \u003e   },\n   \u003e   \"repo\": \"extensions\",\n   \u003e   \"state\": \"closed\",\n   \u003e   \"title\": \"Create dictionaries.js\",\n   \u003e   \"username\": \"turbowarp\"\n   \u003e }\n   \u003e ```\n   \u003e Error response:\n   \u003e ```json\n    \u003e {\n    \u003e   \"message\": \"pull requst not found\"\n    \u003e }\n    \u003e ```\n\n\n## Changelog\n- v1 `Express + EJS`\n- v2 `Nuxt + Element` \n- v3 `Golang + PHP + Vue3 + TDesign`\n","funding_links":[],"categories":["[![Repography logo](https://images.repography.com/logo.svg)](https://repography.com) / Recent activity [![Time period](https://images.repography.com/36880020/rzashakeri/beautify-github-profile/recent-activity/CmQSK3ak2SSwribbfXqdbMPoQcGy1awsc85hRH2sxJw/4wCZHZGWri7bcZix3qeaaDJhLSAhtj56XFkR8XOz4HI_badge.svg)](https://repography.com)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmh-program%2Fcode-statistic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmh-program%2Fcode-statistic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmh-program%2Fcode-statistic/lists"}