Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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-xamidi.vercel.app/api?[...stats-query...], for
    https://github-readme-stats-xamidi.vercel.app/api/top-langs/?[...languages-query...], for
    https://github-profile-trophy-xamidi.vercel.app/?[...trophies-query...], for
    [...trophies-query...] := username=xamidi&theme=radical&column=3&margin-w=9&margin-h=9&title=LongTimeUser,Experience,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%3DLongTimeUser%2CExperience%2CCommits


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

column=3&margin-w=9&margin-h=9&title=LongTimeUser,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).

To be more precise, I deployed my forks thereof due to bandwidth issues with the main deployments.

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

AltStyle によって変換されたページ (->オリジナル) /