{"id":13466641,"url":"https://github.com/songquanpeng/stats-cards","last_synced_at":"2025-05-16T07:07:30.094Z","repository":{"id":41159449,"uuid":"334889062","full_name":"songquanpeng/stats-cards","owner":"songquanpeng","description":"在 README 中展示你在知乎，GitHub，B 站，LeetCode，掘金，CSDN，牛客等网站的数据，也可用于服务状态监控. Show your LeetCode \u0026 GitHub stats in GitHub Profile.","archived":false,"fork":false,"pushed_at":"2025-02-03T14:01:05.000Z","size":123,"stargazers_count":318,"open_issues_count":10,"forks_count":49,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T18:18:42.039Z","etag":null,"topics":["badge","bilibili","csdn","juejin","leetcode","nowcoder","profile-readme","readme-stats","zhihu"],"latest_commit_sha":null,"homepage":"https://stats.justsong.cn/","language":"JavaScript","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/songquanpeng.png","metadata":{"files":{"readme":"README.en.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":"2021-02-01T09:01:19.000Z","updated_at":"2025-04-05T12:46:25.000Z","dependencies_parsed_at":"2024-01-13T18:00:22.216Z","dependency_job_id":"a15a32fc-e96a-4a82-8b7e-2eaea6ab46b3","html_url":"https://github.com/songquanpeng/stats-cards","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Fstats-cards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Fstats-cards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Fstats-cards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Fstats-cards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/songquanpeng","download_url":"https://codeload.github.com/songquanpeng/stats-cards/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485065,"owners_count":22078767,"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":["badge","bilibili","csdn","juejin","leetcode","nowcoder","profile-readme","readme-stats","zhihu"],"created_at":"2024-07-31T15:00:47.615Z","updated_at":"2025-05-16T07:07:30.008Z","avatar_url":"https://github.com/songquanpeng.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"right\"\u003e\n    \u003ca href=\"./README.md\"\u003e中文\u003c/a\u003e | \u003cstrong\u003eEnglish\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# Stats Cards\n\n_✨ Show your LeetCode \u0026 GitHub stats in GitHub Profile. ✨_\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://raw.githubusercontent.com/songquanpeng/stats-cards/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/songquanpeng/stats-cards?color=brightgreen\" alt=\"license\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/songquanpeng/stats-cards/releases/latest\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/songquanpeng/stats-cards?color=brightgreen\u0026include_prereleases\" alt=\"release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://stats.justsong.cn/\"\u003e\n    \u003cimg src=\"https://stats.justsong.cn/api/website/?url=https://stats.justsong.cn/\" alt=\"release\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#Description\"\u003eDescription\u003c/a\u003e\n  ·\n  \u003ca href=\"#Demonstration\"\u003eDemonstration\u003c/a\u003e\n  ·\n  \u003ca href=\"https://stats.justsong.cn/reward.html\"\u003eReward\u003c/a\u003e\n  ·\n  \u003ca href=\"https://github.com/songquanpeng/stats-cards/issues\"\u003eFeedback\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n\n### Supported Websites\n\nCurrently, we support the following websites, PR is welcomed:\n\n- [x] Zhihu\n- [x] Bilibili\n- [x] LeetCode\n- [x] LeetCode (China Version)\n- [x] Juejin（By [@jiweiyuan](https://github.com/jiweiyuan)）\n- [x] NowCoder\n- [x] CSDN\n- [x] GitHub\n- [x] Steam\n- [ ] NetEase Music\n- [x] Custom Website Monitoring\n\n### Supported Themes\n\nWe support multiple themes.\n\nMultiple themes are supported, just add `\u0026theme=\u003ctheme_name\u003e` after the url. For example:\n`https://stats.justsong.cn/api/leetcode/?username=quanpeng\u0026theme=dark`\n\n\u003cp\u003e\n  \u003cimg src=\"https://stats.justsong.cn/api/leetcode/?username=quanpeng\u0026theme=light\" alt=\"JustSong's LeetCode Stats\" width=\"49%\" /\u003e\n  \u003cimg src=\"https://stats.justsong.cn/api/leetcode/?username=quanpeng\u0026theme=dark\" alt=\"JustSong's LeetCode Stats\" width=\"49%\" /\u003e \n\u003c/p\u003e\n\nTheme list: `light`、`dark`、`merko`、`gruvbox`、`gruvbox_light`、`tokyonight`、`onedark`...\n\nFor a complete list of themes see [common/theme.js](./common/theme.js)\n, or see [theme list of github-readme-stats](https://github.com/anuraghazra/github-readme-stats/tree/master/themes).\n\n### Supported Languages\n\nThe default language is English. If you want to change it to Chinese, just add `\u0026lang=zh-CN` after the url, for example:\n\u003cp\u003e\n  \u003cimg src=\"https://stats.justsong.cn/api/juejin?id=1556564194374926\u0026lang=zh-CN\" alt=\"掘金酱的掘金数据\" width=\"49%\" /\u003e\n  \u003cimg src=\"https://stats.justsong.cn/api/bilibili/?id=483246073\u0026lang=zh-CN\" alt=\"蓝天的 B 站数据\" width=\"49%\" /\u003e \n\u003c/p\u003e\n\nFor the support of other languages, PR is always welcomed.\n\n## Demonstration\n\n### Custom Website Monitoring\n\nCustom website monitoring：`https://stats.justsong.cn/api/website/?url=https://github.com/\u0026style=flat\u0026logo=github`\n\nWhere style and logo are optional, for specific values please refer\nto [shield.io](https://shields.io/category/monitoring#:~:text=PREFIX%3E%26suffix%3D%3CSUFFIX%3E-,Styles,-The%20following%20styles)\n.\n\n\u003e Note that monitoring is not real-time, it is affected by the set cache time\n\n![GitHub monitoring](https://stats.justsong.cn/api/website/?url=https://github.com/\u0026style=flat)\n![Google monitoring](https://stats.justsong.cn/api/website/?url=https://www.google.com/\u0026style=flat)\n![Zhihu monitoring](https://stats.justsong.cn/api/website/?url=https://www.zhihu.com/\u0026style=flat)\n\n### Website Stats Display\n\nGitHub: `https://stats.justsong.cn/api/github?username=songquanpeng`\n\n![My GitHub Stats](https://stats.justsong.cn/api/github?username=songquanpeng)\n\nZhihu: `https://stats.justsong.cn/api/zhihu?username=excited-vczh`\n\n![vczh's Zhihu Stats](https://stats.justsong.cn/api/zhihu?username=excited-vczh)\n\nBilibili：`https://stats.justsong.cn/api/bilibili/?id=666`\n\n![id 为 666 的用户的 B 站数据](https://stats.justsong.cn/api/bilibili/?id=666)\n\nLeetCode: `https://stats.justsong.cn/api/leetcode/?username=quanpeng`\n\n![我的 LeetCode 数据](https://stats.justsong.cn/api/leetcode/?username=quanpeng)\n\nLeetCode (China Version): `https://stats.justsong.cn/api/leetcode?username=quanpeng\u0026cn=true`\n\n![力扣数据](https://stats.justsong.cn/api/leetcode?username=quanpeng\u0026cn=true)\n\nJuejin: `https://stats.justsong.cn/api/juejin?id=1556564194374926`\n\n![掘金数据](https://stats.justsong.cn/api/juejin?id=1556564194374926)\n\nCSDN: `https://stats.justsong.cn/api/csdn?id=vczh`\n\n![CSDN 数据](https://stats.justsong.cn/api/csdn?id=vczh)\n\nNowcoder: `https://stats.justsong.cn/api/nowcoder?id=6484283`\n\n![牛客数据](https://stats.justsong.cn/api/nowcoder?id=6484283)\n\nSteam: `https://stats.justsong.cn/api/steam`\n\n![Steam数据](https://stats.justsong.cn/api/steam)\n\n## Deployment\n\nYou can deploy through Vercel, or deploy to your own server.\n\n### Environment Variables\n\nWhen deploying, there are some environment variables that can be set, all of which are optional:\n\n1. `BILIBILI_SESSDATA`: Bilibili's `SESSDATA` cookie.\n2. `GITHUB_TOKEN`: GitHub token.\n3. `STEAM_ID`: Steam personal ID, use browser to login Steam, then click personal profile, the id behind the profiles in the URL is the STEAM_ID\n4. `STEAM_API_TOKEN`: According the link to get the token，https://steamcommunity.com/dev/apikey\n5. `CACHE_TIME`: cache time, the unit is second, default value is  `6000`, namely 100 minutes.\n6. `MAX_CACHE_ITEMS`: maximum cache items, default value is `1024`.\n7. `PORT`: service port number, default value is `3000`.\n\n### Deploy to Vercel\n\n1. fork this repo。\n2. Import your repo on [Vercel](https://vercel.com/new).\n3. Set the above environment variables.。\n\n### Deploy to Your Own Server\n\nSteps:\n\n```shell\ngit clone https://github.com/songquanpeng/stats-cards.git\ncd stats-cards\nnpm i\nnode ./app.js\n# or\npm2 start ./app.js --name stats-cards\n```\n\nSet environment variables: `ENV_NAME=value cmd`\n\n+ For example: `PORT=3000 node ./app.js`\n\n## Others\n\n1. [Idea reference \u0026 theme reference](https://github.com/anuraghazra/github-readme-stats)\n2. If any crawler fails, please file an issue in time!\n3. The card itself has a shadow effect, but some blog themes will automatically add a shadow effect to the image, which\n   will cause a double shadow. The solution is to use the img tag and CSS to remove the shadow effect provided by the\n   blog theme. For\n   example: `\u003cimg src=\"https://stats.justsong.cn/api/leetcode?username=username\u0026cn=true\" style=\"box-shadow:none !important\"\u003e`\n4. Click to [check who is using this](https://github.com/search?q=extension%3Amd+%22stats.justsong.cn%22\u0026type=Code).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongquanpeng%2Fstats-cards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongquanpeng%2Fstats-cards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongquanpeng%2Fstats-cards/lists"}