Migrate
profile-graphics migrate reads the card URLs you already have and writes a matching config, so the cards come from your own CI instead of a shared server.
Convert your README
Point the command at your README with --readme, or pass card URLs as arguments. It prints each URL with the card it became and lists the ones it skipped, then prints the config or writes it to --output. For example, the README below becomes the config after it.
npx profile-graphics migrate --readme README.md --output profile-graphics.yml
npx profile-graphics migrate "https://github-readme-stats.vercel.app/api?username=octocat"




# yaml-language-server: $schema=https://unpkg.com/profile-graphics/profile-graphics.schema.json
provider:
type: github
user: octocat
charts:
- summary
- langs
- streak
- trophy
theme:
preset: tokyo-night
svg:
frame: none
cards:
langs:
style: donut-compact
count: 8
trophy:
columns: 4
max: 8
Then add the workflow from the Quickstart and replace the old image URLs with the generated files.
Supported cards
| Service | URL contains | Cards |
|---|---|---|
| github-readme-stats |
/api
|
summary
|
| github-readme-stats |
/api/top-langs
|
langs
|
| github-readme-stats |
/api/wakatime
|
coding-languages
|
| github-readme-streak-stats |
streak-stats
|
streak
|
| github-profile-trophy |
github-profile-trophy
|
trophy
|
| github-readme-activity-graph |
activity-graph
|
activity
|
| github-profile-summary-cards |
profile-details, productive-time, stats, repos-per-language, most-commit-language
|
profile-details, productive-time, summary, langs
|
Option mapping
| Their option | profile-graphics |
|---|---|
username, user
|
provider.user
|
theme
|
theme.preset
|
hide_border=true
|
svg.frame: none
|
locale
|
calendar.locale
|
layout
|
cards.langs.style
|
langs_count
|
cards.langs.count
|
hide
|
cards.langs.exclude
|
column, row
|
cards.trophy.columns, cards.trophy.max
|
days
|
cards.activity.days
|
Theme names are matched to the 43 presets, including aliases such as tokyonight, onedark, gruvbox, dark and highcontrast. layout=compact becomes the donut-compact style, and donut, donut-vertical and pie become donut.
Drop-in URLs for self-hosting
If you run your own card server (profile-graphics serve or the profile-graphics/server handler), you can keep the old image URLs and only swap the domain: the server answers the paths and query parameters of github-readme-stats and github-readme-streak-stats with the same mapping that migrate uses.



| Path | Card |
|---|---|
/api
|
summary
|
/api/top-langs
|
langs
|
/api/pin
|
repo-card
|
/api/wakatime
|
wakatime
|
/streak, /?user=
|
streak
|
| Their parameter | profile-graphics |
|---|---|
username, user
|
provider.user
|
hide, show
|
cards.summary.metrics
|
hide_rank, rank_icon
|
cards.summary.show_rank, rank_style
|
include_all_commits
|
provider.commits_scope: all
|
count_private
|
provider.count_private
|
commits_year
|
calendar.year
|
number_format, short_numbers
|
svg.number_format
|
custom_title, hide_title
|
cards.<card>.title, hide_title
|
card_width, card_height
|
cards.<card>.width, height
|
hide_border, border_radius
|
svg.frame: none, svg.frame_radius
|
disable_animations
|
svg.animation: none
|
theme, locale
|
theme.preset, calendar.locale
|
title_color, icon_color
|
theme.colors.chart.accent, accent2
|
text_color, bg_color, border_color
|
theme.colors.text, background, border
|
layout, langs_count, hide
|
cards.langs.style, count, exclude
|
exclude_repo
|
provider.exclude_repos
|
repo, show_owner, description_lines_count
|
cards.repo_card.repo, show_owner, description_lines
|
layout, langs_count, display_format
|
cards.wakatime.layout, limit, display_format
|
hide, range, hide_progress
|
cards.wakatime.hide, range, layout: list
|
mode, exclude_days, date_format
|
cards.streak.mode, exclude_days, date_format
|
hide_total_contributions, hide_current_streak, hide_longest_streak
|
cards.streak.show
|
type
|
output.format
|
background, border
|
theme.colors.background, border
|
ring, fire, currStreakNum, sideNums, currStreakLabel, sideLabels, dates, stroke
|
cards.streak.colors
|
- Unknown parameters are ignored, and so are
show_icons,line_height,text_bold,number_precision,size_weight,count_weightandstats_format. An invalid value gets400with a message that names the parameter. - A theme without a matching preset falls back to the default theme; colors are hex values with or without
#, andbg_coloralso takes a gradient such as30,e96443,904e95. - Cards are drawn for GitHub with the server token. A query never changes the token, the API host, the data source or the output:
api_domainis not supported, and/api/wakatimeshows the account of the server'sWAKATIME_API_KEY. type=jsonof streak-stats is not supported;/github/<user>.jsonreturns the stats as JSON.
Differences
- A theme without a matching preset is dropped, and the config falls back to the native auto theme.
- Custom colors, titles and other options of those services are not carried over; set them with
theme.colors,svg.frame_titleandcards. - The first username found wins; without one the config says
your-username. - The config always uses
provider: github; change it for GitLab or Codeberg.