+
Skip to content

Combine your dynamically generated GitHub stats and favourite trophies for a prettier display on your profile page.

License

Notifications You must be signed in to change notification settings

xamidi/github-stats-combinator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@xamidi/github-stats-combinator

This tool combines three scalable vector graphics (SVG) images from three sources

  1. https://github-readme-stats.vercel.app/api?[…stats-query…]
    of @anuraghazra/github-readme-stats
  2. https://github-readme-stats.vercel.app/api/top-langs?[…languages-query…]
    of @anuraghazra/github-readme-stats
  3. https://github-profile-trophy.vercel.app/?[…trophies-query…]
    of @ryo-ma/github-profile-trophy

via a single query https://github-stats-combinator.vercel.app/api?[…query…], for

[…query…] := stats=UrlEncode([…stats-query…])&languages=UrlEncode([…languages-query…])&trophies=UrlEncode([…trophies-query…])

where UrlEncode maps strings to their URL-encoded variant.

For example,

sample.svg

was combined from

  1. https://github-readme-stats.vercel.app/api?[…stats-query…], for
    […stats-query…] := username=xamidi&show_icons=true&theme=radical&include_all_commits=true&hide_border=true
    
  2. https://github-readme-stats.vercel.app/api/top-langs/?[…languages-query…], for
    […languages-query…] := username=xamidi&layout=donut-vertical&theme=radical&langs_count=4&hide_border=true
    
  3. https://github-profile-trophy.vercel.app/?[…trophies-query…], for
    […trophies-query…] := username=xamidi&theme=radical&column=3&margin-w=9&margin-h=9&title=MultiLanguage,LongTimeUser,Commits
    

via https://github-stats-combinator.vercel.app/api?[…query…], for

[…query…] := stats=username%3Dxamidi%26show_icons%3Dtrue%26theme%3Dradical%26include_all_commits%3Dtrue%26hide_border%3Dtrue&languages=username%3Dxamidi%26layout%3Ddonut-vertical%26theme%3Dradical%26langs_count%3D4%26hide_border%3Dtrue&trophies=username%3Dxamidi%26theme%3Dradical%26column%3D3%26margin-w%3D9%26margin-h%3D9%26title%3DMultiLanguage%2CLongTimeUser%2CCommits

 
I recommend to request images that fit the predefined container dimensions, such as via

column=3&margin-w=9&margin-h=9&title=MultiLanguage,Experience,Commits

for […trophies-query…], and to query the SVG from your username/username repository's README.md like

<p align="center">
<img width="776" height="352" alt="[username's GitHub stats - refresh to load image]" src="https://github-stats-combinator.vercel.app/api?[…query…]">
</p>

in order to handle cases where the github-stats-combinator.vercel.app deployment went into "light sleep" due to inactivity (see issue #1).

About

Combine your dynamically generated GitHub stats and favourite trophies for a prettier display on your profile page.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载