CP-Badges

As the kehsihba19/CP-Badges’s server was dead, i decided to host this API myself using deta micros.

This repo helps you to create your custom profile badges with Max rating in Codechef, Codeforces and many more.

Endpoints

https://cp-badges.deta.dev/codeforces/<user_name>
https://cp-badges.deta.dev/codechef/<user_name>
https://cp-badges.deta.dev/atcoder/<user_name>
https://cp-badges.deta.dev/topcoder/<user_name>
https://cp-badges.deta.dev/yukicoder/<user_name>
https://cp-badges.deta.dev/uri/<user_name>
https://cp-badges.deta.dev/leetcode/<user_name>
https://cp-badges.deta.dev/leetcode-cn/<user_name>

Usage

[![Badge](https://cp-badges.deta.dev/codechef/gennady.korotkevich)]

This corresponds to

Badge

You can also show the logo along with the website name and rating by including the query parameter with the URL ?logo=true

For example

[![Badge](https://cp-badges.deta.dev/codechef/gennady.korotkevich?logo=true)]

This corresponds to

Badge

You can add custom links also to the badge for reference :

[![Badge](https://cp-badges.deta.dev/codechef/gennady.korotkevich)]
(https://www.codechef.com/users/gennady.korotkevich)

This will add a link to the badge

Badge

Fun Fact

The colour of the badge changes as your maximum rating changes according to the website policy.

Some examples are –

Badge
Badge
Badge

Badge
Badge
Badge

Badge
Badge
Badge

Badge
Badge
Badge

Badge
Badge
Badge

Badge
Badge
Badge

Badge

Badge

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

GitHub

View Github