/wakatime-api

Custom Github badge for WakaTime

Primary LanguageJavaScript

Custom WakaTime API Dynamic JSON Badge

Why?

WakaTime already provides you with badges, but I wanted to add custom text to the badge and access my other data for future use. That's why I created this custom API. Feel free to use it to make your own badges!

Usage

  1. Get Your API Token: Obtain your API token from WakaTime.
  2. Host the Code: Download and host this code on Railway or any other hosting platform.
  3. Set Environment Variable: Add an environment variable ACCESS_TOKEN with your WakaTime API token.

Creating Custom Badges

  1. Go to shields.io: Navigate to shields.io.
  2. Dynamic JSON Badge: Select "Dynamic JSON Badge".
  3. Insert API Link: Use your API link in the URL query.
  4. Label and JSONPath: Add a label name and use JSONPath to extract the data you want from the API.

Examples

Dynamic JSON Badge Dynamic JSON Badge Dynamic JSON Badge

Now you can create customized badges with personalized text and data directly from your WakaTime API!