क्विकस्टार्ट
वह इंटीग्रेशन चुनें जो उस जगह से मेल खाए जहाँ आप कार्ड बनाना चाहते हैं।
- CI में या लोकल कार्ड बनाएँ।
- फ़ाइलों को किसी ब्रांच, आर्टिफ़ैक्ट या सार्वजनिक डायरेक्टरी में पब्लिश करें।
- पब्लिश की गई फ़ाइलों को अपनी प्रोफ़ाइल README में एम्बेड करें।
GitHub Action
यह वर्कफ़्लो हर दिन चार कार्ड रेंडर करता है और उन्हें publish_branch से output ब्रांच पर कमिट करता है, पिछला कमिट बदलकर ताकि रिपॉज़िटरी छोटी रहे। हर कॉन्फ़िग विकल्प एक Action इनपुट भी है, और जॉब सारांश 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
README में एम्बेड
<user> को अपने GitHub यूज़रनेम से बदलें। हर कार्ड के लिए एक तस्वीर इस्तेमाल करें, या एक तस्वीर के लिए layout: dashboard।
README.md




GitLab CI
read_user और read_api स्कोप वाला टोकन GITLAB_TOKEN CI वेरिएबल के रूप में सहेजें।
.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
शुरुआती कॉन्फ़िग लिखें, लोकल बनाएँ, बिना टोकन थीम आज़माएँ या कॉन्फ़िग का प्रीव्यू देखें।
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