Full example

profile-graphics.yml
provider:
  type: github
  user: octocat
  include_private: false

charts: [streak, summary, langs, calendar]

output:
  dir: profile-graphics
  format: svg
  layout: separate
  raster_background: auto

calendar:
  mode: rolling
  timezone: Europe/Berlin
  locale: en

theme:
  mode: auto
  native: true
  dark_mode_pair: false

svg:
  frame: border
  frame_radius: 8
  frame_title: ""
  hide_title: false
  number_format: short
  animation: none
  accessibility: true

cards:
  langs:
    style: donut
    count: 6
    exclude: [HTML, CSS]
  summary:
    metrics: [stars, commits, prs, reviews]
  calendar:
    weeks: 52
    show_months: true

Option groups

Group Options
provider type, user, token, base_url, source, include_private, include_forks, exclude_repos, affiliations, merge
output dir, prefix, format, layout, columns, raster_background
calendar mode, year, timezone, locale
theme preset, custom, mode, native, dark_mode_pair, background, colors
svg frame, frame_radius, frame_title, hide_title, number_format, animation, animation_duration, accessibility
cards activity, langs, streak, summary, productive_time, punch_card, calendar, calendar_3d, profile_details, profile_card, trophy, repos, coding_time, coding_list, views

charts lists the cards to render, in that order. See Cards for every card and its options under cards.

calendar.timezone is an IANA name such as Europe/Berlin (default UTC). It decides which day an event belongs to, when a streak ends and which hour the productive-time card counts.

theme.background takes a color, transparent or a linear gradient such as 30,#e96443,#904e95; see Gradient background.

The review preset

review in charts expands to summary, streak, calendar, langs, punch-card and repos, in that order: a whole profile review in one word. List other cards before or after it; a card that appears twice is rendered once.

yaml
charts: [review, activity]

CLI flags and Action inputs

Most options can be set without editing YAML: pass them as CLI flags or as inputs of the GitHub Action. Flags and inputs override the config file. Lists such as charts are comma-separated. provider.merge, custom themes, color overrides and card sizes are YAML only.

Config path CLI flag Action input
provider.type --provider provider
provider.user --user user
provider.token --token token
provider.base_url --base-url base_url
provider.source --source source
provider.include_private --include-private include_private
provider.include_forks --include-forks include_forks
provider.exclude_repos --exclude-repos exclude_repos
provider.affiliations --affiliations affiliations
provider.scope --scope scope
provider.include_orgs --include-orgs include_orgs
provider.exclude_orgs --exclude-orgs exclude_orgs
provider.count_private --count-private count_private
provider.count_own_stars --count-own-stars count_own_stars
charts --charts charts
output.dir --output output
output.prefix --prefix prefix
output.format --format format
output.layout --layout layout
output.columns --dashboard-columns dashboard_columns
output.raster_background --raster-background raster_background
calendar.year --year year
calendar.mode --calendar-mode calendar_mode
calendar.timezone --timezone timezone
calendar.locale --locale locale
theme.preset --theme theme
theme.mode --theme-mode theme_mode
theme.native --native-theme native_theme
theme.dark_mode_pair --dark-mode-pair dark_mode_pair
theme.background --background background
svg.frame --frame frame
svg.frame_radius --frame-radius frame_radius
svg.frame_title --frame-title frame_title
svg.hide_title --hide-title hide_title
svg.animation --animation animation
svg.animation_duration --animation-duration animation_duration
svg.number_format --number-format number_format
svg.accessibility --accessibility accessibility
cards.activity.days --activity-days activity_days
cards.activity.show_grid --activity-grid activity_grid
cards.activity.show_points --activity-points activity_points
cards.activity.show_average --activity-average activity_average
cards.langs.count --langs-count langs_count
cards.langs.style --langs-style langs_style
cards.langs.exclude --langs-exclude langs_exclude
cards.summary.metrics --summary-metrics summary_metrics
cards.streak.mode --streak-mode streak_mode
cards.streak.exclude_days --exclude-days exclude_days
cards.streak.range --streak-range streak_range
cards.summary.show_rank --summary-rank summary_rank
cards.summary.rank_style --rank-style rank_style
cards.punch_card.week_start --week-start week_start
cards.productive_time.hour_format --hour-format hour_format
cards.calendar.weeks --calendar-weeks calendar_weeks
cards.calendar.show_months --calendar-months calendar_months
cards.profile_details.show_chart --profile-chart profile_chart
cards.profile_card.show_avatar --profile-avatar profile_avatar
cards.trophy.columns --trophy-columns trophy_columns
cards.trophy.max --trophy-max trophy_max
cards.repos.source --repos-source repos_source
cards.repos.count --repos-count repos_count
cards.calendar_3d.weeks --calendar-3d-weeks calendar_3d_weeks
cards.coding_time.days --coding-days coding_days
cards.coding_list.count --coding-count coding_count
cards.views.style --views-style views_style
cards.views.label --views-label views_label
cards.views.start --views-start views_start

Calendar window

calendar.mode sets the dates every card covers. current-year (the default) runs from January to December of this year, last-year covers the previous year, and rolling shows the last twelve months ending today, like the graph on a GitHub profile. calendar.year picks one year and takes priority over the mode. Totals, streaks and the calendar card follow the window, so rolling keeps a streak alive across New Year.

yaml
calendar:
  mode: rolling
  # year: 2025 picks one calendar year instead
  timezone: Europe/Berlin

Card language

calendar.locale is a BCP 47 tag (default en-US). Card labels are translated into 30 languages (Arabic, Hebrew and Persian are drawn right to left); any other locale keeps English labels. Numbers, dates, months, weekdays and durations are always formatted with Intl in the locale you set.

English

English

yaml
calendar:
  locale: en
Russian

Russian

yaml
calendar:
  locale: ru
German

German

yaml
calendar:
  locale: de
Spanish

Spanish

yaml
calendar:
  locale: es
French

French

yaml
calendar:
  locale: fr
Portuguese

Portuguese

yaml
calendar:
  locale: pt
Japanese

Japanese

yaml
calendar:
  locale: ja
Chinese

Chinese

yaml
calendar:
  locale: zh

Dark and light pair

With the native auto theme every SVG already switches between light and dark through prefers-color-scheme. dark_mode_pair: true writes two files per card instead, such as streak-light.svg and streak-dark.svg, for a <picture> element. It only applies to the native auto theme; a preset or a custom theme writes one file per card.

yaml
theme:
  mode: auto
  native: true
  dark_mode_pair: true
README.md
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="profile-graphics/streak-dark.svg" />
  <img alt="Streak" src="profile-graphics/streak-light.svg" />
</picture>

Dashboard

output.layout: dashboard places every card from charts into one image, dashboard.svg (or PNG or WebP), instead of one file per card. output.columns sets how many cards go in a row, from 1 to 4 (default 2).

yaml
charts: [streak, summary, langs, calendar]

output:
  layout: dashboard
  columns: 2

Frames and titles

svg.frame decides what surrounds each card. frame_radius rounds the corners (0 to 40, default 8).

Border

Border

The default: a thin border in the color of empty calendar cells.

yaml
svg:
  frame: border
  frame_radius: 8
Window

Window

A window bar with traffic lights and an optional centered title.

yaml
svg:
  frame: window
  frame_title: "{user}"
No frame

No frame

Only the background, for cards that sit inside your own layout.

yaml
svg:
  frame: none

frame_title adds a title above the card (up to 120 characters). These placeholders are filled from your stats, with numbers in the calendar locale:

Placeholder Value
{user} Username
{name} Display name, or the username when there is none
{year} Year of the calendar window
{total} Contributions in the window
{active_days} Days with at least one contribution
{streak} Current streak in days
{longest_streak} Longest streak in days
{best_day} Most contributions on a single day
{best_date} Date of that day
{stars} Stars on your repositories
{commits} Commits in the window
{followers} Followers
{top_language} Most used language

Titles, numbers and animation

svg.hide_title: true hides the heading on every card that has one. Per card, title replaces the heading and hide_title hides it; see Card titles.

svg.number_format decides how the cards write counts: short (the default) abbreviates them in the card locale, such as 1.2K, and long writes them in full, such as 1,247.

svg.animation adds an entrance animation to SVG cards: fade fades the content in, and rise also lifts it by a few pixels. animation_duration sets its length in seconds (0.2 to 5, default 0.8). Visitors whose system asks for reduced motion see the card without it, and PNG and WebP files never move. The default is none.

yaml
svg:
  hide_title: true
  number_format: long
  animation: rise
  animation_duration: 0.8

Share one config with profile-snake

extends points to another YAML or JSON file, relative to the current one. It is read first and the current file is merged on top: nested sections merge key by key, lists and values replace. Keep the shared provider, calendar and theme in one profile.yml and extend it from both profile-graphics.yml and profile-snake.yml.

profile.yml
provider:
  user: octocat
calendar:
  mode: rolling
  timezone: Europe/Berlin
theme:
  preset: tokyo-night
profile-graphics.yml
extends: ./profile.yml
charts: [streak, summary, langs]

Keys that one tool does not know, such as snake or charts, are ignored by the other. Up to 8 files can extend each other; a cycle or a missing file stops with a config error. The playground and the web component read a single config and do not follow extends.

Editor support

Add this line at the top of the file to get completion and validation in editors that understand the YAML language server; profile-graphics init writes it for you. profile-graphics schema prints the path of the schema bundled with the package.

yaml
# yaml-language-server: $schema=https://unpkg.com/profile-graphics/profile-graphics.schema.json
provider:
  user: octocat