🏆 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.
[](https://github.com/KATO-Hiro/AtCoderTrophies)Add an optional parameter of the theme. More details
In the following sample, monokai is applied.
[](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=CPlusPlusIf you want to specify multiple titles.
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&title=AC,CPlusPlusYou 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=AAAIf you want to specify multiple ranks.
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&rank=AAA,AA,AYou 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=2Restrict only column:
https://atcoder-trophies.vercel.app/api/v1/atcoder?username=chokudai&column=2Restrict 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=3List 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=alduinhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=algoliahttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=apprenticehttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=buddhismhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=chalkhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=darkdimmedhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=darkhubhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=darkloverhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=discordhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=draculahttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=flathttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=gitdimmedhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=gruvboxhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=juicyfreshhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=matrixhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=monokaihttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=nordhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=oldiehttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=onedarkhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=onestarhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=radicalhttps://atcoder-trophies.vercel.app/api/v1/atcoder?username=semiexp&theme=tokyonightYou 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































