Set up

  1. Copy your secret API key from your WakaTime account settings.
  2. Store it as a repository secret named WAKATIME_API_KEY.
  3. Merge a wakatime source into your provider and add the coding cards to charts.
  4. Pass the secret to the Action as an environment variable.
profile-graphics.yml
provider:
  type: github
  user: octocat
  merge:
    - type: wakatime
      user: octocat

charts: [streak, langs, coding-time, coding-languages]
.github/workflows/profile-graphics.yml
- uses: mikhailkhorokhorin/profile-graphics@v1
  env:
    WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
  with:
    publish_branch: output
The API key reads all of your coding activity. Keep it in WAKATIME_API_KEY or a CI secret and never commit it to profile-graphics.yml.

Coding cards

All five cards use the calendar window and calendar.timezone. Try them without a key: profile-graphics demo renders them from demo data.

Coding time

Coding time

Total time in the window, the average of active days and the best day, above bars for the last days days (7 to 90).

yaml
charts: [coding-time]
Languages

Languages

Languages ranked by coding time. coding_list.count shows 1 to 10 rows on all four list cards.

yaml
charts: [coding-languages]
Editors

Editors

Editors and IDEs ranked by coding time.

yaml
charts: [coding-editors]
Operating systems

Operating systems

Operating systems ranked by coding time.

yaml
charts: [coding-os]
Projects

Projects

Projects ranked by coding time.

yaml
charts: [coding-projects]
shell
profile-graphics demo --charts coding-time,coding-languages,coding-editors --output dist/demo

Merge with GitHub or GitLab

In provider.merge a WakaTime source only contributes coding time. Contributions, streaks, languages and the other cards keep coming from your main provider, so coding hours never inflate the contribution calendar. The name and avatar also come from the main provider.

WakaTime as the only source

With type: wakatime as the main provider, every started hour of coding on a day counts as one contribution, so the streak, calendar and activity cards follow your coding time, and the languages card ranks languages by time. The name and avatar come from your WakaTime profile.

yaml
provider:
  type: wakatime
  user: your-name

charts: [coding-time, streak, calendar, coding-projects]

calendar:
  mode: rolling

Wakapi and compatible servers

Wakapi and other servers with a WakaTime-compatible API work through base_url, which for Wakapi ends in /api/compat/wakatime/v1. Put the server's API key in WAKATIME_API_KEY or token.

yaml
provider:
  type: wakatime
  user: your-name
  base_url: https://wakapi.dev/api/compat/wakatime/v1

Limits

The key decides whose data is read; user only names the cards. Summaries are requested for the whole calendar window, day by day in calendar.timezone. Free WakaTime plans keep only a short recent history, so older days come back empty and a long window may be refused. The coding-time bars need at most the last 90 days.