Codeforces rating badge generator for Github Readme
The application automatically updates Codeforces data every minute using a cron task.
- Regular: Full-size badge with detailed information
- Mini: Compact badge showing only rating
- Legendary Grandmaster: Special styling for top-tier users
[](https://codeforces.com/profile/{your handle})See #api-endpoints for more options.
- Clone the repository:
git clone <repository-url>
cd mazacofo- Install dependencies:
yarn- Create a
.envfile with your database configuration:
PORT=2021
MAZA_ENV=development
MYSQL_HOST=localhost
MYSQL_USER=your_username
MYSQL_PW=your_password
MYSQL_DB=mazacofo- Set up the database:
# Create the database
mysql -u your_username -p -e "CREATE DATABASE mazacofo;"
# Run migrations (if needed)
npm run migration:run- Run development server
./maza run serverGET /?id={handle}&mini={true|false}
Parameters:
id: Codeforces handle (required)mini: Show mini badge (optional)









