पूरा उदाहरण

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

विकल्प समूह

समूह विकल्प
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 रेंडर होने वाले कार्डों की सूची है, इसी क्रम में। हर कार्ड और cards के अंदर उसके विकल्पों के लिए कार्ड देखें।

calendar.timezone एक IANA नाम है, जैसे Europe/Berlin (डिफ़ॉल्ट UTC)। यह तय करता है कि कोई इवेंट किस दिन का है, स्ट्रीक कब ख़त्म होती है और उत्पादक समय कार्ड कौन सा घंटा गिनता है।

theme.background एक रंग, transparent या 30,#e96443,#904e95 जैसा लीनियर ग्रेडिएंट लेता है; ग्रेडिएंट बैकग्राउंड देखें।

review प्रीसेट

charts में review इसी क्रम में summary, streak, calendar, langs, punch-card और repos में फैलता है: एक शब्द में पूरी प्रोफ़ाइल की समीक्षा। दूसरे कार्ड इसके पहले या बाद में लिखें; दो बार आने वाला कार्ड एक बार रेंडर होता है।

yaml
charts: [review, activity]

CLI फ़्लैग और Action इनपुट

ज़्यादातर विकल्प YAML बदले बिना सेट किए जा सकते हैं: उन्हें CLI फ़्लैग या GitHub Action के इनपुट के रूप में दें। फ़्लैग और इनपुट कॉन्फ़िग फ़ाइल से ऊपर रहते हैं। charts जैसी सूचियाँ कॉमा से अलग होती हैं। provider.merge, कस्टम थीम, रंग ओवरराइड और कार्ड साइज़ सिर्फ़ YAML में सेट होते हैं।

कॉन्फ़िग पाथ CLI फ़्लैग Action इनपुट
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.mode तय करता है कि हर कार्ड किन तारीखों को कवर करे। current-year (डिफ़ॉल्ट) इस साल जनवरी से दिसंबर तक चलता है, last-year पिछले साल को कवर करता है, और rolling आज तक के आख़िरी बारह महीने दिखाता है, जैसे GitHub प्रोफ़ाइल का ग्राफ़। calendar.year एक साल चुनता है और मोड से ऊपर रहता है। कुल, स्ट्रीक और कैलेंडर कार्ड विंडो के हिसाब से चलते हैं, इसलिए rolling नए साल पर भी स्ट्रीक जारी रखता है।

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

कार्ड की भाषा

calendar.locale एक BCP 47 टैग है (डिफ़ॉल्ट en-US)। कार्ड लेबल 30 भाषाओं में अनुवादित हैं (अरबी, हिब्रू और फ़ारसी दाएँ से बाएँ बनती हैं); कोई दूसरा लोकेल अंग्रेज़ी लेबल रखता है। संख्याएँ, तारीखें, महीने, सप्ताह के दिन और अवधियाँ हमेशा आपके सेट किए लोकेल में Intl से फ़ॉर्मैट होती हैं।

अंग्रेज़ी

अंग्रेज़ी

yaml
calendar:
  locale: en
रूसी

रूसी

yaml
calendar:
  locale: ru
जर्मन

जर्मन

yaml
calendar:
  locale: de
स्पेनिश

स्पेनिश

yaml
calendar:
  locale: es
फ़्रेंच

फ़्रेंच

yaml
calendar:
  locale: fr
पुर्तगाली

पुर्तगाली

yaml
calendar:
  locale: pt
जापानी

जापानी

yaml
calendar:
  locale: ja
चीनी

चीनी

yaml
calendar:
  locale: zh

डार्क और लाइट जोड़ी

नेटिव ऑटो थीम के साथ हर SVG पहले से prefers-color-scheme से लाइट और डार्क के बीच बदलता है। dark_mode_pair: true इसकी जगह हर कार्ड की दो फ़ाइलें लिखता है, जैसे streak-light.svg और streak-dark.svg, <picture> एलिमेंट के लिए। यह सिर्फ़ नेटिव ऑटो थीम पर लागू होता है; प्रीसेट या कस्टम थीम हर कार्ड की एक फ़ाइल लिखती है।

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>

डैशबोर्ड

output.layout: dashboard, charts के हर कार्ड को हर कार्ड की अलग फ़ाइल की जगह एक तस्वीर, dashboard.svg (या PNG या WebP), में रखता है। output.columns तय करता है कि एक पंक्ति में कितने कार्ड हों, 1 से 4 (डिफ़ॉल्ट 2)।

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

output:
  layout: dashboard
  columns: 2

फ़्रेम और शीर्षक

svg.frame तय करता है कि हर कार्ड के चारों ओर क्या हो। frame_radius कोनों को गोल करता है (0 से 40, डिफ़ॉल्ट 8)।

बॉर्डर

बॉर्डर

डिफ़ॉल्ट: ख़ाली कैलेंडर सेल के रंग का पतला बॉर्डर।

yaml
svg:
  frame: border
  frame_radius: 8
विंडो

विंडो

ट्रैफ़िक लाइट और वैकल्पिक बीच वाले शीर्षक के साथ विंडो बार।

yaml
svg:
  frame: window
  frame_title: "{user}"
बिना फ़्रेम

बिना फ़्रेम

सिर्फ़ बैकग्राउंड, उन कार्डों के लिए जो आपके अपने लेआउट के अंदर रहते हैं।

yaml
svg:
  frame: none

frame_title कार्ड के ऊपर शीर्षक जोड़ता है (120 अक्षरों तक)। ये प्लेसहोल्डर आपके आँकड़ों से भरे जाते हैं, संख्याएँ कैलेंडर लोकेल में:

प्लेसहोल्डर मान
{user} यूज़रनेम
{name} डिस्प्ले नाम, न हो तो यूज़रनेम
{year} कैलेंडर विंडो का साल
{total} विंडो में योगदान
{active_days} कम से कम एक योगदान वाले दिन
{streak} मौजूदा स्ट्रीक दिनों में
{longest_streak} सबसे लंबी स्ट्रीक दिनों में
{best_day} एक दिन में सबसे ज़्यादा योगदान
{best_date} उस दिन की तारीख
{stars} आपकी रिपॉज़िटरी पर स्टार
{commits} विंडो में कमिट
{followers} फ़ॉलोअर
{top_language} सबसे ज़्यादा इस्तेमाल भाषा

शीर्षक, संख्याएँ और एनिमेशन

svg.hide_title: true शीर्षक वाले हर कार्ड का शीर्षक छिपाता है। हर कार्ड के लिए title शीर्षक बदलता है और hide_title उसे छिपाता है; कार्ड शीर्षक देखें।

svg.number_format तय करता है कि कार्ड गिनती कैसे लिखें: short (डिफ़ॉल्ट) उन्हें कार्ड लोकेल में छोटा करता है, जैसे 1.2K, और long पूरा लिखता है, जैसे 1,247।

svg.animation SVG कार्डों में एंट्री एनिमेशन जोड़ता है: fade सामग्री को फ़ेड करके लाता है, और rise उसे कुछ पिक्सेल ऊपर भी उठाता है। animation_duration उसकी अवधि सेकंड में तय करता है (0.2 से 5, डिफ़ॉल्ट 0.8)। जिन विज़िटर का सिस्टम कम मोशन माँगता है उन्हें कार्ड बिना एनिमेशन दिखता है, और PNG और WebP फ़ाइलें कभी नहीं हिलतीं। डिफ़ॉल्ट none है।

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

profile-snake के साथ एक कॉन्फ़िग साझा करें

extends मौजूदा फ़ाइल के सापेक्ष किसी दूसरी YAML या JSON फ़ाइल की ओर इशारा करता है। उसे पहले पढ़ा जाता है और मौजूदा फ़ाइल उसके ऊपर मिलाई जाती है: नेस्टेड सेक्शन एक-एक की करके मिलते हैं, सूचियाँ और मान बदल दिए जाते हैं। साझा provider, calendar और theme को एक profile.yml में रखें और उसे profile-graphics.yml और 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]

जो कुंजियाँ एक टूल नहीं जानता, जैसे snake या charts, उन्हें दूसरा टूल अनदेखा करता है। ज़्यादा से ज़्यादा 8 फ़ाइलें एक-दूसरे को एक्सटेंड कर सकती हैं; कोई चक्र या ग़ायब फ़ाइल कॉन्फ़िग त्रुटि के साथ रुक जाती है। प्लेग्राउंड और वेब कंपोनेंट एक ही कॉन्फ़िग पढ़ते हैं और extends का पालन नहीं करते।

एडिटर सपोर्ट

YAML language server समझने वाले एडिटर में ऑटो-कम्प्लीशन और जाँच पाने के लिए फ़ाइल के ऊपर यह पंक्ति जोड़ें; profile-graphics init इसे आपके लिए लिख देता है। profile-graphics schema पैकेज के साथ आने वाले स्कीमा का पाथ दिखाता है।

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