English | 简体中文
This project is based on the core code of anuraghazra/github-readme-stats, adapted for deployment on Tencent EdgeOne Pages.
The original project is deployed on Vercel. This version is specifically optimized for EdgeOne Pages Node Functions environment, providing the same API interfaces and features.
You can deploy via Tencent EdgeOne Pages with one click.
Click the button below to deploy:
See Tencent EdgeOne Pages Documentation for more details.
Note: You need to set the
PAT_1environment variable. See Environment Variables. After changing environment variables, you need to trigger a new deployment for the changes to take effect.
This project requires the following environment variables to be configured in EdgeOne Pages:
PAT_1: GitHub Personal Access Token
PAT_1, PAT_2, PAT_3, etc.) to increase rate limitsPREFERRED_ORIGIN: Custom domain prefix
https://github-readme-stats.mintimate.cnNote: EdgeOne Pages loads environment variables after deployment. After changing environment variables, you need to trigger a new deployment for the changes to take effect.
EdgeOne Pages entry nodes do not support per-request caching, and card API requests will go directly to the origin by default. It is recommended to add another layer of CDN (such as EdgeOne CDN / Cloudflare) in front of your custom domain to cache static responses, reducing GitHub API rate pressure (and request count limits).
For example: I use EdgeOne site acceleration with EdgeOne Pages to achieve caching:

Corresponding cache rules:

Generate new token -> Generate new token (classic)reporead:userPAT_1 equal to this token value in EdgeOne Pages environment variables)PAT_1 to the GitHub Token obtained in the previous step in the project's environment variablesPREFERRED_ORIGIN environment variable to customize the URL prefix displayed on the homepageAfter deployment, visit your EdgeOne Pages domain to see the usage documentation. The API interfaces are fully compatible with the original project.
/api - GitHub Stats Card/api/top-langs - Top Languages Card/api/pin - Repository Pin Card/api/gist - Gist Card/api/wakatime - WakaTime Stats CardFor detailed parameters, please refer to the original project documentation.
Copy the following code to your README file (replace with your domain and username):


For more styling and parameter configurations (environment variables), please refer to the original project documentation.
This project is open-sourced under the MIT license based on the original project. See LICENSE file for details.