Skip to content

kerolloz/aktive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aktive 🟩 fastify Railway

Aktive is a simple web service. It returns a badge (or JSON) that shows your rank among other GitHub users from your country according to your GitHub contributions.

Note

Aktive depends on the data provided by ashkulz/committers.top.
So please make sure that your name appears on your country list here committers.top.

Docs

Note

You can also check the Swagger API documentation for more details.

Endpoints

Base URL: https://aktive.kerolloz.dev

GET /

Redirects to this repository.


GET /:country/:username

  • Returns a shields.io badge (SVG image) with your rank.
Parameters
  • country - The country you live in (make sure it's visible on your profile).
  • username - Your GitHub username.
Query Parameters
  • style - Set the style of the badge. Can be one of flat, flat-square, for-the-badge, or plastic. Defaults to flat.
  • label - Set the left-hand-side text. Defaults to Most Active GitHub User Rank.
  • color - Set the background of the right part (hex, rgb, rgba, hsl, hsla and css named colors supported). Defaults to brightgreen.
  • labelColor - Set the background of the left part (hex, rgb, rgba, hsl, hsla and css named colors supported). Defaults to grey.
  • rnkPrefix - Set prefix to display before the rank value. Defaults to "" empty string.
  • rnkSuffix - Set suffix to display after the rank value. Defaults to "" empty string.
Examples

![badge](https://aktive.kerolloz.dev/egypt/kerolloz)
badge

![badge](https://aktive.kerolloz.dev/egypt/kerolloz?style=flat-square&color=blue)
badge

![badge](https://aktive.kerolloz.dev/egypt/kerolloz?label=Most%20Active%20GitHub%20User%20In%20Egypt&labelColor=white&rnkPrefix=Rank%20)
badge

![badge](https://aktive.kerolloz.dev/egypt/kerolloz?label=&color=cyan&style=for-the-badge&rnkPrefix=Ranked%20&rnkSuffix=%20In%20Egypt)
badge


GET /rank/:country/:username

Try it
  • Returns a JSON object with your rank.

Same parameters as GET /:country/:username

Example
$ curl https://aktive.kerolloz.dev/rank/egypt/kerolloz

{
    "rank": "108th"
}