An open API service indexing awesome lists of open source software.

https://github.com/nicconike/wakatime-leaderboards

Display your Wakatime Leaderboards Stats in your GitHub profile
https://github.com/nicconike/wakatime-leaderboards

coding coding-activity leaderboard public-leaderboards wakatime wakatime-api wakatime-leaderboard wakatime-stats

Last synced: about 2 months ago
JSON representation

Display your Wakatime Leaderboards Stats in your GitHub profile

Awesome Lists containing this project

README

          

# Wakatime-Leaderboards📶
[![Wakatime Leaderboards](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/wakatime.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/wakatime.yml)
[![Release](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/release.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/release.yml)
[![Bandit](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/bandit.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/bandit.yml)
[![CodeQL & Pylint](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/codeql.yml/badge.svg)](https://github.com/Nicconike/Wakatime-Leaderboards/actions/workflows/codeql.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Nicconike_Wakatime-Leaderboards&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Nicconike_Wakatime-Leaderboards)
[![codecov](https://codecov.io/gh/Nicconike/Wakatime-Leaderboards/graph/badge.svg?token=CX701AOW5Y)](https://codecov.io/gh/Nicconike/Wakatime-Leaderboards)
![Docker Image Size](https://img.shields.io/docker/image-size/nicconike/wakatime-leaderboards?logo=docker&label=Docker%20Image)
![Docker Pulls](https://img.shields.io/docker/pulls/nicconike/wakatime-leaderboards?logo=docker&label=Docker%20Pulls)
![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fgithub.com%2FNicconike%2FWakatime-Leaderboards%2Fblob%2Fmaster%2Fpyproject.toml%3Fraw%3Dtrue)
![Pylint](https://img.shields.io/badge/Pylint-9.95-greenyellow?logo=python)
![GitHub License](https://img.shields.io/github/license/nicconike/Wakatime-Leaderboards)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/Nicconike/Wakatime-Leaderboards/badge)](https://scorecard.dev/viewer/?uri=github.com/Nicconike/Wakatime-Leaderboards)
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/10748/badge)](https://www.bestpractices.dev/projects/10748)
[![wakatime](https://wakatime.com/badge/user/018e538b-3f55-4e8e-95fa-6c3225418eed/project/0caf06ca-663f-49f6-a95a-6282a945d92b.svg)](https://wakatime.com/badge/user/018e538b-3f55-4e8e-95fa-6c3225418eed/project/0caf06ca-663f-49f6-a95a-6282a945d92b)
[![Visitor Badge](https://badges.pufler.dev/visits/nicconike/Wakatime-Leaderboards)](https://badges.pufler.dev)

> ### Automated WakaTime Leaderboards for your GitHub Profile

***
## Prerequisites
1. **Wakatime API Key:** API key is required to fetch your account details. Get your API key from [here](https://wakatime.com/api-key).
2. **Markdown Comments:** Update the markdown file by adding the comments where your Wakatime Leaderboard Stats will be embedded to. Refer [here](#Update-Readme) to learn more.

> [!NOTE]
> **Coding Activity:** Total hours coded over the last 7 days from Yesterday, using default 15 minute timeout, only shows coding activity from known languages.
>
> **Public Leaderboards:** You will appear in the public leaderboards only if your weekly coded hours is around 10 hrs *(Changes from time to time)*.
>
> **Not in the Leaderboards?** You can follow their [Guidelines](https://wakatime.com/faq#missing-from-leaderboard) on how to show up in the Leaderboards.

***

## Example

### Wakatime Leaderboards (Worldwide)

#### Public Leaderboards (Weekly)

| Ranked | Hours Coded | Daily Avg |
| ------ | ----------- | --------- |
| 2999 | 26 hrs 53 mins | 3 hrs 50 mins |

#### Top Language (PowerShell)

| Ranked | Hours Coded | Daily Avg |
| ------ | ----------- | --------- |
| 1 | 17 hrs 27 mins | 2 hrs 29 mins |

***
## Update README
Add below comment in your markdown file for Wakatime Leaderboards Stats
```md

```
***
## Setup with Example
After completing the steps mentioned in the [Prerequisites](#Prerequisites), you have to save all the mentioned keys(except markdown comments) like Wakatime API Key as Secrets in your Github repo's settings.

> Repo Settings -> Security -> Secrets and Variables -> Actions -> Add in Repository Secrets

If you are new to **Github Secrets** then you can checkout this official doc [here](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions).

**Sample Workflow File**

`wakatime.yml`

```yaml
name: Wakatime Leaderboards

on:
schedule:
# Runs every Monday at 12AM IST (UTC+5:30)
- cron: "30 18 * * 0"
workflow_dispatch:
push:
branches: master

jobs:
update-readme:
name: Wakatime Leaderboards
runs-on: ubuntu-latest
steps:
- name: Run Wakatime Leaderboards
uses: nicconike/wakatime-leaderboards@master
with:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
```
***
## Contributions

Star⭐ and Fork🍴 the Repo to start with your feature request(or bug) and experiment with the project to implement whatever Idea you might have and sent the Pull Request through 🤙

Please refer [Contributing.md](https://github.com/Nicconike/Wakatime-Leaderboards/blob/master/.github/CONTRIBUTING.md) to get to know how to contribute to this project.
And thank you for considering to contribute.
***