Scripts2026年5月17日·1 分钟阅读

GitHub Readme Stats — Dynamic Stats Cards for Your Profile

Generate dynamically rendered GitHub statistics cards for your README profile using GitHub API data and SVG rendering.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Stage only · 29/100Stage only
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Stage only
信任
信任等级:Established
入口
GitHub Readme Stats Overview
通用 CLI 安装命令
npx tokrepo install ef145652-51ea-11f1-9bc6-00163e2b0d79

Introduction

GitHub Readme Stats renders live statistics about your GitHub activity as embeddable SVG cards. It pulls data from the GitHub GraphQL API and generates visually appealing widgets showing stars, commits, PRs, issues, and language breakdowns directly in any Markdown file.

What GitHub Readme Stats Does

  • Generates real-time stats cards (total stars, commits, PRs, issues, contributions)
  • Renders top-languages cards with multiple layout options (compact, donut, pie)
  • Provides repository pin cards for showcasing specific projects
  • Supports WakaTime integration for coding activity tracking
  • Offers streak stats for contribution consistency visualization

Architecture Overview

The project runs as a Vercel serverless function. Each request hits a Node.js handler that authenticates with the GitHub GraphQL API using a personal access token, fetches user statistics, applies theme and layout parameters, then returns a dynamically rendered SVG image with appropriate cache headers.

Self-Hosting & Configuration

  • Deploy to Vercel with one click using the provided deploy button
  • Set GITHUB_TOKEN environment variable for API authentication
  • Configure PAT_1 for higher rate limits on self-hosted instances
  • Customize cache duration via the cache_seconds query parameter
  • Support for multiple GitHub tokens via comma-separated PAT values

Key Features

  • 30+ built-in themes (radical, merko, gruvbox, tokyonight, etc.)
  • Fully customizable colors, borders, icons, and card dimensions
  • Automatic language exclusion and card hiding options
  • Internationalization with 40+ locale translations
  • Responsive SVG output that works in any Markdown renderer

Comparison with Similar Tools

  • GitHub Profile Trophy — focuses on achievement trophies rather than stats
  • Metrics (lowlighter) — more comprehensive but heavier setup with GitHub Actions
  • Socialify — project-level social cards, not user statistics
  • Repobeats — analytics for individual repositories, not user profiles

FAQ

Q: Why does my stats card show incorrect commit counts? A: By default only public commits count. Add count_private=true parameter or enable private contributions in GitHub settings.

Q: Can I use this without deploying my own instance? A: Yes, the default Vercel deployment at github-readme-stats.vercel.app is free to use with query parameters.

Q: How do I hide specific languages from the top-langs card? A: Use the hide parameter: ?hide=html,css,jupyter%20notebook to exclude languages.

Q: What is the rate limit for the default instance? A: The shared instance handles thousands of requests per hour with aggressive SVG caching.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产