All Projects → ryo-ma → Github Profile Trophy

ryo-ma / Github Profile Trophy

Licence: mit
🏆 Add dynamically generated GitHub Trophy on your readme

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Github Profile Trophy

Github Profile Readme Generator
GitHub profile readme generator allows you to create nice and simple GitHub profile readme files that will be included in your profile previews.
Stars: ✭ 374 (-58.17%)
Mutual labels:  readme
The Documentation Compendium
📢 Various README templates & tips on writing high-quality documentation that people want to read.
Stars: ✭ 4,306 (+381.66%)
Mutual labels:  readme
Grip
Preview GitHub README.md files locally before committing them.
Stars: ✭ 5,454 (+510.07%)
Mutual labels:  readme
Waka Readme
Wakatime Weekly Metrics on your Profile Readme.
Stars: ✭ 386 (-56.82%)
Mutual labels:  readme
Make A Readme
📄 Because nobody can read your mind (yet)
Stars: ✭ 426 (-52.35%)
Mutual labels:  readme
Badgen
Fast handcraft svg badge generator.
Stars: ✭ 464 (-48.1%)
Mutual labels:  readme
Frankenstein
Correct README Redirects
Stars: ✭ 305 (-65.88%)
Mutual labels:  readme
Golang Anything Recommend
🔥 让阅读变成一件有意义的事。Golang好文推荐;收录平时阅读到的一些Go相关写的比较好、质量较高的干货文章.
Stars: ✭ 749 (-16.22%)
Mutual labels:  readme
Markdownview Android
MarkdownView is an Android webview with the capability of loading Markdown text or file and display it as HTML, it extends Android webview.
Stars: ✭ 432 (-51.68%)
Mutual labels:  readme
Markup
Determines which markup library to use to render a content file (e.g. README) on GitHub
Stars: ✭ 5,319 (+494.97%)
Mutual labels:  readme
Standard Readme
A standard style for README files
Stars: ✭ 4,412 (+393.51%)
Mutual labels:  readme
Awesome Readme Templates
A collection of awesome readme templates to display on your github profile.
Stars: ✭ 423 (-52.68%)
Mutual labels:  readme
Storybook Readme
React Storybook addon to render README files in github style
Stars: ✭ 511 (-42.84%)
Mutual labels:  readme
Github Markdown Toc.go
Easy TOC creation for GitHub README.md (in go)
Stars: ✭ 387 (-56.71%)
Mutual labels:  readme
Readme
README文件语法解读,即Github Flavored Markdown语法介绍
Stars: ✭ 5,812 (+550.11%)
Mutual labels:  readme
Github Activity Readme
Updates README with the recent GitHub activity of a user
Stars: ✭ 354 (-60.4%)
Mutual labels:  readme
Creative Profile Readme
A Collection of GitHub Profiles with awesome readme
Stars: ✭ 449 (-49.78%)
Mutual labels:  readme
Zalando Howto Open Source
Open Source guidance from Zalando, Europe's largest online fashion platform
Stars: ✭ 767 (-14.21%)
Mutual labels:  readme
Awesome bot
✅ Validate links in awesome projects
Stars: ✭ 697 (-22.04%)
Mutual labels:  readme
Markdown Magic
💫 Automatically format markdown files, sync external docs/src code & make better docs
Stars: ✭ 551 (-38.37%)
Mutual labels:  readme

Github Profile Trophy

🏆 Add dynamically generated GitHub Trophy on your readme

Quick Start

Add following code to your readme.
Change the ?username= value to your GitHub's username.

[![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy)

Use theme

Add optional parameter of theme.

[![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy)

More detail

About Rank

Ranks are SSS SS S AAA AA A B C UNKNOWN SECRET.

Rank Description
SSS, SS, S You are at a hard to reach rank. You can brag.
AAA, AA, A You can reach the rank if you do your best. Let's aim here first.
B, C You are in a growing process.
UNKOWN You have not yet taken action. Let's act first.
SECRET The rank is very rare. The trophy will not be displayed until the conditions are met.

Secret Rank

The acquisition condition is secret, but you can know the condition by reading this code.

There are still few secret trophies.
Therefore, if you come up with interesting conditions, I am waiting for contributions.

About Display details

  1. Title name of aggregation target.
  2. Current Rank.
  3. Title according to rank.
  4. Target aggregation result.
  5. Next Rank Bar. The road from the current rank to the next rank.

Optional Request Parameters

Filter by titles

You can filter the display by specifying the titles of trophy.

https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Followers

If You want to specify multiple titles.

https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Stars,Followers

Filter by ranks

You can filter the display by specifying the ranks.
Available values: SECRET SSS SS S AAA AA A B C

https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S

If you want to specify multiple ranks.

https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S,AAA

Specify the maximum row & column size

You can specify the maximum row and column size.
Trophy will be hidden if it exceeds the range of both row and column.

Available value: number type
Default: column=6 row=3

Restrict only row

https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2

Restrict only column

https://github-profile-trophy.vercel.app/?username=ryo-ma&column=2

Restrict row & column

https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2&column=3

Apply theme

Available themes.

theme
flat
onedark
gruvbox
dracula
monokai
chalk
nord
alduin
darkhub
juicyfresh

flat

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=flat

onedark

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark

gruvbox

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gruvbox

dracula

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dracula

monokai

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=monokai

chalk

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=chalk

nord

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=nord

alduin

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=alduin

darkhub

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=darkhub

juicyfresh

https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=juicyfresh

Margin Width

You can put a margin in the width between trophies.
Available value: number type
Default: margin-w=0

https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-w=15

Margin Height

You can put a margin in the height between trophies.
Available value: number type
Default: margin-h=0

https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-h=15

Example layout

https://github-profile-trophy.vercel.app/?username=ryo-ma&column=3&margin-w=15&margin-h=15

Transparent background

You can turn the background transparent.
Available value: boolean type (true or false)
Default: no-bg=false

https://github-profile-trophy.vercel.app/?username=ryo-ma&no-bg=true

Hide frames

You can hide the frames around the trophies.
Available value: boolean type (true or false)
Default: no-frame=false

https://github-profile-trophy.vercel.app/?username=ryo-ma&no-frame=true

Contribution Guide

Environment

  • Deno >= v1.3.0
  • typescript == 3.9.7
  • Vercel
  • GitHub API v4

Local Run

Create .env file to project root directory, and write your GitHub token to the .env file. Please select the authority of repo when creating token.

GITHUB_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Run local server.

deno run --allow-net --allow-read --allow-env debug.ts

Open localhost from your browser.

http://localhost:8080/?username=ryo-ma

Editor config

Read the .editorconfig

Run deno lint

If you want to contribute to my project, you should check the lint with the following command.

deno lint --unstable
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].