পূর্ণ উদাহরণ

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 হলো Europe/Berlin-এর মতো একটি IANA নাম (ডিফল্ট 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 দুটি থেকেই সেটি extend করুন।

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টি ফাইল একে অপরকে extend করতে পারে; চক্র বা হারানো ফাইল কনফিগ ত্রুটিতে থামে। প্লেগ্রাউন্ড ও ওয়েব কম্পোনেন্ট একটিমাত্র কনফিগ পড়ে এবং 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