Quickstart
Pick the integration that matches where you want to generate the cards.
- Generate the cards in CI or locally.
- Publish the files to a branch, an artifact or a public directory.
- Embed the published files in your profile README.
GitHub Action
This workflow renders four cards every day and commits them to the output branch through publish_branch, replacing the previous commit so the repository stays small. Every config option is also an Action input, and the job summary shows previews with README snippets.
.github/workflows/profile-graphics.yml
name: Generate profile graphics
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: mikhailkhorokhorin/profile-graphics@v1
with:
user: ${{ github.repository_owner }}
token: ${{ secrets.GITHUB_TOKEN }}
charts: streak,summary,langs,calendar
publish_branch: output
README embed
Replace <user> with your GitHub username. Use one image per card, or layout: dashboard for a single image.
README.md




GitLab CI
Store a token with read_user and read_api scopes as the GITLAB_TOKEN CI variable.
.gitlab-ci.yml
stages:
- generate
generate-profile-graphics:
image: node:22
stage: generate
script:
- npm install -g profile-graphics
- profile-graphics generate --provider gitlab --user "$GITLAB_USER_LOGIN" --token "$GITLAB_TOKEN" --output public/cards
artifacts:
paths:
- public/cards
CLI
Write a starter config, generate locally, try themes without a token or preview a config.
shell
npm install -g profile-graphics
profile-graphics init --user octocat
profile-graphics generate --user octocat --token "$GITHUB_TOKEN" --charts streak,langs --output dist
profile-graphics demo --theme tokyo-night --output dist/demo
profile-graphics preview --config profile-graphics.yml --demo