Skip to content

mazassumnida/mazacofo

Repository files navigation

Mazacofo

Codeforces rating badge generator for Github Readme

Features

Automatic Updates

The application automatically updates Codeforces data every minute using a cron task.

Badge Styles

  • Regular: Full-size badge with detailed information
  • Mini: Compact badge showing only rating
  • Legendary Grandmaster: Special styling for top-tier users

Usage

[![CodeForces Profile](https://cf.leed.at?id={your handle})](https://codeforces.com/profile/{your handle})

See #api-endpoints for more options.

Screenshots

Newbie

newbie

Pupil

pupil

Specialist

specialist

Expert

expert

Candidate Master

cmaster

Master & International Master

master

imaster

Grandmaster & International GrandMaster

gmaster

igmaster

Legendary Grandmaster

lgmaster

Development

  1. Clone the repository:
git clone <repository-url>
cd mazacofo
  1. Install dependencies:
yarn
  1. Create a .env file with your database configuration:
PORT=2021

MAZA_ENV=development

MYSQL_HOST=localhost
MYSQL_USER=your_username
MYSQL_PW=your_password
MYSQL_DB=mazacofo
  1. Set up the database:
# Create the database
mysql -u your_username -p -e "CREATE DATABASE mazacofo;"

# Run migrations (if needed)
npm run migration:run
  1. Run development server
./maza run server

API Endpoints

GET /?id={handle}&mini={true|false}

Parameters:

  • id: Codeforces handle (required)
  • mini: Show mini badge (optional)

About

CodeForces 레이팅을 Github Readme에서 예쁘게 보여주는 프로젝트

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors