🏆 Add dynamically generated AtCoder Stat Trophies to your readme.
DEMO
demo.mp4
- Generate trophy icons using the statistics API related to AtCoder.
- Enable to add the generated trophies to your readme in HTML or Markdown format.
Add the following code to your readme. When pasting the code into your profile's readme, change the ?username=
value to your AtCoder's username.
[![AtCoder Trophies](https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp)](https://github.com/KATO-Hiro/AtCoderTrophies)
Add an optional parameter of the theme. More details
In the following sample, monokai
is applied.
[![AtCoder Trophies](https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=monokai)](https://github.com/KATO-Hiro/AtCoderTrophies)
The ranks are SSS
, SS
, S
, AAA
, AA
, A
, B
, C
, UNKNOWN
and SECRET
.
Rank | Description |
---|---|
SSS, SS, S | You are at a hard to reach rank. You can brag. |
AAA, AA, A | You will reach this rank if you do your best. Let's aim here first. |
B, C | You are currently making good process. Let's aim a bit higher. |
UNKNOWN | You have not taken action yet. Let's act first. |
SECRET | This rank is very rare. The trophy will not be displayed until certain conditions are met. |
The conditions for earning it are secret, but you can find out the conditions by reading this repository code.
There are still few secret trophies. Therefore, if you come up with interesting conditions, I am waiting for contributions.
- Trophy name.
- Current rank.
- Title based on rank.
- Earned points.
- Process bar that shows the points needed to get from your current rank to the next rank.
You can filter the display by specifying the titles of the trophy.
In the following sample, CPlusPlus
is selected.
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&title=CPlusPlus
If you want to specify multiple titles.
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&title=AC,CPlusPlus
You can filter the display by specifying the ranks.
Available values: SECRET SSS SS S AAA AA A B C
In the following sample, rank AAA
is selected.
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&rank=AAA
If you want to specify multiple ranks.
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&rank=AAA,AA,A
You can specify the maximum size of rows and columns. Trophies will be hidden if they exceed the range of both rows and columns.
Available value: number type
Default: row=3 column=7
Restrict only row:
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&row=2
Restrict only column:
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&column=2
Restrict row & column:
The following sample shows the case of two rows and three columns.
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&row=2&column=3
List of available themes.
theme |
---|
alduin |
algolia |
apprentice |
buddhism |
chalk |
darkdimmed |
darkhub |
darklover |
discord |
dracula |
flat |
gitdimmed |
gruvbox |
juicyfresh |
matrix |
monokai |
nord |
oldie |
onedark |
onestar |
radical |
tokyonight |
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=alduin
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=algolia
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=apprentice
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=buddhism
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=chalk
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=darkdimmed
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=darkhub
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=darklover
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=discord
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=dracula
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=flat
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=gitdimmed
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=gruvbox
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=juicyfresh
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=matrix
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=monokai
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=nord
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=oldie
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=onedark
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=onestar
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=radical
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=tokyonight
You can put a margin in the width between trophies.
Available value: number type
Default: margin_w=0
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&margin_w=15
You can put a margin in the height between trophies.
Available value: number type
Default: margin_h=0
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&margin_h=15
The following sample shows a case where the width and height margins are 15.
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&margin_w=15&margin_h=15
You can turn the background transparent.
Available value: boolean type (true or false)
Default: no_bg=false
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&no_bg=true
You can hide the frames around the trophies.
Available value: boolean type (true or false)
Default: no_frame=false
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&no_frame=true
AtCoder Problems API / Datasets
Readme Driven Development; RDDarchive.org