Overview

Provider Token Self-hosted Notes
GitHub Required: GITHUB_TOKEN or a personal access token Yes GraphQL for the calendar, totals and repositories; public events for active hours and the weekly rhythm.
GitLab Optional GITLAB_TOKEN Yes Builds the calendar from user events, and reads merge requests, issues and projects.
Forgejo Optional FORGEJO_TOKEN Yes Reads the activity heatmap, profile and repositories; Codeberg by default.
WakaTime Required: WAKATIME_API_KEY Yes Coding time for the coding cards; works with Wakapi.
File None No JSON or CSV from a local path or a URL.

GitHub

GitHub always needs a token, from token or the GITHUB_TOKEN variable. In the Action the workflow token is used automatically; a personal access token with read:user also sees private contributions and followers, and profile-graphics doctor tells the two apart. Stars, languages and the repositories card come from your own repositories that are not forks, up to 1,000 of them; the repository scope changes which ones. include_private: true also counts private repositories the token can read. For GitHub Enterprise Server set base_url to the server address; queries go to /api/graphql and /api/v3.

yaml
provider:
  type: github
  user: octocat
  include_private: true
  # base_url: https://github.example.com for GitHub Enterprise Server

GitLab

Works with gitlab.com and self-hosted servers through base_url. Public profiles work without a token; a token with read_user and read_api also sees private activity. GitLab has no contribution calendar API, so events are counted per day in calendar.timezone. Commits come from push events, reviews from approvals, and merge request and issue totals from the ones you authored in the window. Languages come from your 20 most starred projects. GitLab may prune events older than about three years.

yaml
provider:
  type: gitlab
  user: username
  base_url: https://gitlab.example.com

calendar:
  timezone: Europe/Berlin

Forgejo and Codeberg

type: forgejo reads Codeberg by default. Set base_url for another Forgejo server. Public profiles need no token: the calendar comes from the activity heatmap, which covers about the last year, and languages from your 20 most starred repositories. Pull request and issue totals need FORGEJO_TOKEN and stay at zero without it. Forgejo has no commit total.

yaml
provider:
  type: forgejo
  user: username
  base_url: https://codeberg.org

WakaTime and Wakapi

type: wakatime reads daily coding time with the API key from token or WAKATIME_API_KEY, and self-hosted Wakapi works through base_url. It feeds the five coding cards and is usually merged into a GitHub or GitLab profile. See WakaTime for the setup.

Stats files

type: file reads stats from source, a local path or an HTTP(S) URL. Use it for Bitbucket, internal servers or any tool that can export dates.

yaml
provider:
  type: file
  user: username
  source: stats.json
stats.json
{
  "name": "Your Name",
  "followers": 12,
  "stars": 340,
  "commits": 812,
  "languages": { "TypeScript": 5400, "Go": 1200 },
  "days": { "2026-01-02": 3, "2026-01-03": 1 }
}

The file can be CSV lines of date,count (a comma, semicolon or tab between them), a JSON array of { date, count }, a JSON object mapping dates to counts, or an object with days or contributions and optional name, followers, repos, stars, commits, prs, issues, reviews, languages and hours (24 numbers, one per hour). Only dates inside the calendar window are counted.

Merge several sources

provider.merge adds up to eight sources to the main provider: other platforms, accounts or servers. Contributions per day, totals, followers, repositories and active hours are summed, calendar levels are recalculated and languages are combined; the name and avatar come from the main provider. A WakaTime source only adds coding time for the coding cards. Each source reads its own token variable (GITHUB_TOKEN, GITLAB_TOKEN, FORGEJO_TOKEN, WAKATIME_API_KEY) unless it sets token. Merging is configured in YAML only.

yaml
provider:
  type: github
  user: octocat
  merge:
    - type: gitlab
      user: octocat
    - type: forgejo
      user: octocat
      base_url: https://git.example.com
    - type: wakatime
      user: octocat

Repository scope

Stars, languages, the repository count and the repos card all read the same set of repositories. Forks stay out unless include_forks: true. exclude_repos drops repositories by glob pattern: * matches any characters and ? a single one, never across /, and a pattern matches either owner/name or the name alone, ignoring case. Both work on GitHub, GitLab and Forgejo. affiliations is GitHub only: owner (the default) counts your own repositories, organization_member adds those of your organizations, and collaborator those you were added to as a collaborator.

yaml
provider:
  type: github
  user: octocat
  include_forks: false
  exclude_repos: [dotfiles, "*-archive", octo-org/legacy-*]
  affiliations: [owner, organization_member]

All-time history

Every provider reads the calendar window. With range: all-time on the streak card and streak in charts, GitHub also loads every year you have contributions in, one GraphQL query per year, so the total and both streaks cover your whole history. GitLab, Forgejo and stats files keep the calendar window; merged sources add the days of their window.

yaml
charts: [streak]

cards:
  streak:
    range: all-time

GitHub has no API for activity by hour, so the productive-time and weekly-rhythm cards read the public events API. It returns at most 300 public events from the past 90 days: private work and older activity do not show on these two cards. GitLab counts your events in the calendar window, and Forgejo reads its activity heatmap.

Errors and retries

Requests that time out, hit a rate limit or get a server error are retried twice with a short pause, and a Retry-After of up to 60 seconds is honored. Rate-limit errors include the reset time when the provider sends it. Every error carries one of these codes; the Action adds a hint for each, and profile-graphics serve turns them into HTTP statuses.

Code Meaning
INVALID_USER The provider does not know this account (HTTP 404).
PRIVATE_PROFILE The provider refused the token or the profile (HTTP 403).
RATE_LIMIT The rate limit is used up (HTTP 429, or 403 with no requests left).
NETWORK_TIMEOUT The provider did not answer in time, even after retries.
PROVIDER_ERROR Any other API error, such as a missing token or a GraphQL error.
CONFIG_ERROR The config or a file source is invalid.
OUTPUT_ERROR The files could not be written, or sharp is missing for PNG and WebP.