Guida rapida
Scegli l’integrazione adatta a dove vuoi generare le schede.
- Genera le schede in CI o in locale.
- Pubblica i file in un branch, un artefatto o una cartella pubblica.
- Incorpora i file pubblicati nel README del tuo profilo.
GitHub Action
Questo workflow genera quattro schede ogni giorno e ne fa il commit nel branch output tramite publish_branch, sostituendo il commit precedente così il repository resta leggero. Ogni opzione di configurazione è anche un input dell’Action, e il riepilogo del job mostra anteprime con snippet per il README.
.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
Incorporare nel README
Sostituisci <user> con il tuo nome utente GitHub. Usa un’immagine per scheda, oppure layout: dashboard per un’unica immagine.
README.md




GitLab CI
Salva un token con gli scope read_user e read_api come variabile di CI GITLAB_TOKEN.
.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
Scrivi una configurazione iniziale, genera in locale, prova i temi senza token o visualizza in anteprima una configurazione.
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