{"id":50520961,"url":"https://github.com/4o4e/statimg","last_synced_at":"2026-06-03T04:01:33.551Z","repository":{"id":167644223,"uuid":"643266274","full_name":"4o4E/statimg","owner":"4o4E","description":"Offline PNG renderer for GitHub and Wakatime developer stats images.","archived":false,"fork":false,"pushed_at":"2026-05-19T17:25:48.000Z","size":235,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-19T20:47:29.941Z","etag":null,"topics":["contribution-graph","github-readme-stats","github-stats","heatmap","image-rendering","kotlin","ktor","skiko","wakatime"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4o4E.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-20T16:07:02.000Z","updated_at":"2026-05-19T17:25:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"2aea15f0-967e-417d-b7cf-3c52ae60fa46","html_url":"https://github.com/4o4E/statimg","commit_stats":null,"previous_names":["4o4e/github-readme-stats-render","4o4e/statimg"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/4o4E/statimg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4o4E%2Fstatimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4o4E%2Fstatimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4o4E%2Fstatimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4o4E%2Fstatimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4o4E","download_url":"https://codeload.github.com/4o4E/statimg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4o4E%2Fstatimg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33847265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"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":["contribution-graph","github-readme-stats","github-stats","heatmap","image-rendering","kotlin","ktor","skiko","wakatime"],"created_at":"2026-06-03T04:01:29.744Z","updated_at":"2026-06-03T04:01:33.545Z","avatar_url":"https://github.com/4o4E.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# statimg\n\n用于离线渲染 GitHub 和 Wakatime 等开发者状态图片，适合 QQBot 等不支持 SVG 的场景。\n\n[![Release](https://img.shields.io/github/v/release/4o4E/statimg?label=Release)](https://github.com/4o4E/statimg/releases/latest)\n[![Downloads](https://img.shields.io/github/downloads/4o4E/statimg/total?label=Download)](https://github.com/4o4E/statimg/releases)\n## http服务\n\n`http-server`模块供了一个简单的http server用于根据需求生成皮肤渲染图\n\n### 使用\n\n1. 安装11或更高版本的[java](https://adoptium.net/)\n2. 从[release](https://github.com/4o4E/statimg/releases/latest)下载对应操作系统的jar文件\n3. 在控制台中使用`java -jar http-server-${plateform}.jar`启动服务\n\n[示例配置文件](http-server-linux/config.template.yml)\n\n### api接口\n\n**api不会主动缓存渲染结果, 如有需要请自行缓存**\n\n#### 获取可用主题\n\nurl: `/wakatime/themes`\n\n**示例请求**\n\n```http request\nGET http://localhost:2345/wakatime/themes\n\n### [\"default_repocard\",\"transparent\",\"shadow_red\",\"shadow_green\",\"shadow_blue\",\"dark\",\"radical\",\"merko\",\"gruvbox\",\"gruvbox_light\",\"tokyonight\",\"onedark\",\"cobalt\",\"synthwave\",\"highcontrast\",\"dracula\",\"prussian\",\"monokai\",\"vue\",\"vue-dark\",\"shades-of-purple\",\"nightowl\",\"buefy\",\"blue-green\",\"algolia\",\"great-gatsby\",\"darcula\",\"bear\",\"solarized-dark\",\"solarized-light\",\"chartreuse-dark\",\"nord\",\"gotham\",\"material-palenight\",\"graywhite\",\"vision-friendly-dark\",\"ayu-mirage\",\"midnight-purple\",\"calm\",\"flag-india\",\"omni\",\"react\",\"jolly\",\"maroongold\",\"yeblu\",\"blueberry\",\"slateorange\",\"kacho_ga\",\"outrun\",\"ocean_dark\",\"city_lights\",\"github_dark\",\"github_dark_dimmed\",\"discord_old_blurple\",\"aura_dark\",\"panda\",\"noctis_minimus\",\"cobalt2\",\"swift\",\"aura\",\"apprentice\",\"moltack\",\"codeSTACKr\",\"rose_pine\",\"date_night\",\"one_dark_pro\",\"rose\",\"holi\"]\n```\n\n#### 获取wakatime 语言使用渲染图\n\nurl: `/wakatime/lang/{user}/{range}`\n\n| url参数 | 含义          | 示例                            |\n|-------|-------------|-------------------------------|\n| user  | wakatime用户名 | `404E`                        |\n| range | 时间范围        | `7d`/`30d`/`6m`/`30d`/`y`/`y` |\n\n**可用参数**\n\n| 请求参数  | 含义         | 默认值  | 可用值            |\n|-------|------------|------|----------------|\n| theme | 主题         | null | 参考config       |\n| all   | 是否显示所有lang | null | `true`/`false` |\n\n**示例请求**\n\n```http request\nGET http://localhost:2345/wakatime/lang/404E/7d?theme=dark\n```\n\n#### 获取wakatime 编辑器使用渲染图\n\nurl: `/wakatime/editor/{user}/{range}`\n\n| url参数 | 含义          | 示例                            |\n|-------|-------------|-------------------------------|\n| user  | wakatime用户名 | `404E`                        |\n| range | 时间范围        | `7d`/`30d`/`6m`/`30d`/`y`/`y` |\n\n**可用参数**\n\n| 请求参数  | 含义         | 默认值  | 可用值            |\n|-------|------------|------|----------------|\n| theme | 主题         | null | 参考config       |\n\n**示例请求**\n\n```http request\nGET http://localhost:2345/wakatime/editor/404E/7d?theme=dark\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4o4e%2Fstatimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4o4e%2Fstatimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4o4e%2Fstatimg/lists"}