WakaTime
WakaTime and Wakapi track how long you code, in which languages, editors and projects. profile-graphics turns that into five cards next to your GitHub or GitLab stats.
Set up
- Copy your secret API key from your WakaTime account settings.
- Store it as a repository secret named
WAKATIME_API_KEY. - Merge a
wakatimesource into your provider and add the coding cards tocharts. - Pass the secret to the Action as an environment variable.
provider:
type: github
user: octocat
merge:
- type: wakatime
user: octocat
charts: [streak, langs, coding-time, coding-languages]
- uses: mikhailkhorokhorin/profile-graphics@v1
env:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
with:
publish_branch: output
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
Total time in the window, the average of active days and the best day, above bars for the last days days (7 to 90).
charts: [coding-time]
Languages
Languages ranked by coding time. coding_list.count shows 1 to 10 rows on all four list cards.
charts: [coding-languages]
Editors
Editors and IDEs ranked by coding time.
charts: [coding-editors]
Operating systems
Operating systems ranked by coding time.
charts: [coding-os]
Projects
Projects ranked by coding time.
charts: [coding-projects]
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.
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.
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.