Post

Github Profile [2]: GitHub Stats

0

Prerequisites


[1] Github-Profile-1-README.md

Top Languages Card


Your most frequently used languages. This language card shows language results only from public repositories. To include languages in private repos, you need to do deploy your own instance using your own GitHub API token.

To use ‘Top Language Card’, please copy and paste the code below into your markdown and change the ?username= value to your GitHub username.

1
<img align="center" src="https://github-readme-stats.vercel.app/api/top-langs/?username=rebedy"/>

You can exclude some repos or hide certain languages by specifying them.

# of languages

And you also can control how many numbers of languages you want to display with the &langs_count= option to increase or decrease the number of languages shown on the card.

Card Layout

You can use the &layout= option to change the card design.

There are compact , donut , donut-vertical , pie layout.

Or you also can hide progress bars then the layout will set to compact automatically.

Themes

There are inbuilt themes and you can use them with &theme={theme_name} parameter.

All inbuilt themes:  Available themes 

Final example

1
<img align="center" src="https://github-readme-stats.vercel.app/api/top-langs/?username=rebedy&layout=donut-vertical&theme=shadow_green&hide_border=true&no-bg=true&no-frame=true&show_icons=true&langs_count=8"/>

GitHub Readme Streak Stats


Copy and paste line below into your markdown and replace the value after ?user= with your GitHub username.

1
<img src="https://github-readme-streak-stats.herokuapp.com?user=rebedy" />

Options

There are optional fields besides the user field which is mandatory.

ParameterDetailsExample
hide_borderMake the border transparent (Default: false)true or false
border_radiusSet the roundness of the edges (Default: 4.5)Number 0 (sharp corners) to 248 (ellipse)
backgroundBackground color (eg. f2f2f235,d22,00f)hex code without #css color or
gradient (angle,start_color,...,end_color)  
borderBorder colorhex code w/o # or css color
strokeStroke line color between sectionshex code w/o # or css color
ringColor of the ring around the current streakhex code w/o # or css color
fireColor of the fire in the ringhex code w/o # or css color
currStreakNumCurrent streak number colorhex code w/o # or css color
sideNumsTotal and longest streak # colorhex code w/o # or css color
currStreakLabelCurrent streak label colorhex code w/o # or css color
sideLabelsTotal and longest streak labelshex code w/o # or css color
datesDate range text colorhex code w/o # or css color
excludeDaysLabelExcluded days of the week text colorhex code w/o # or css color
date_formatDate format pattern or empty for locale format📅 Date Formats
localeLocale for labels and numbers (Default: en)ISO 639-1 code - 🗪 Locales
typeOutput format (Default: svg)Current options: svgpng or json
modeStreak mode (Default: daily)daily or weekly (once per Sun-Sat week)
exclude_daysList of days of the week to exclude from streaksComma-separated list of day abbreviations e.g. Sun,Sat
disable_animationsDisable SVG animations (Default: false)true or false
card_widthWidth of the card in pixels (Default: 495)Positive integer, min width is 100px per col
card_heightHeight of the card in pixels (Default: 195)Positive integer, min height is 170px
hide_total_contributionsHide the total contributions (Default: false)true or false
hide_current_streakHide the current streak (Default: false)true or false
hide_longest_streakHide the longest streak (Default: false)true or false
starting_yearStarting year of contributionsInteger, must be 2005 or later.
Default: your account creation year.  

undefined

Theme

List of all available themes

Final example

1
<img src="https://github-readme-streak-stats.herokuapp.com?user=rebedy&theme=shadow_green&hide_border=true&show_icons=true" alt="GitHub Streak" />

GitHub Stats Card


Just copy and paste this into your markdown!

Don’t forget to change the ?username= value to your GitHub username.

1
<img align="center" src="https://github-readme-stats.vercel.app/api?username=rebedy" />

Showing icons

You can enable icons by passing &show_icons=true in the query parameter.

Themes

There are inbuilt themes and you can use them with &theme={theme_name} parameter.

All inbuilt themes:  Available themes 

1

Customization

You can customize the appearance of all your cards however you wish with URL parameters.

Common Options

NameDescriptionTypeDefault value
title_colorCard’s title color.string (hex color)2f80ed
text_colorBody text color.string (hex color)434d58
icon_colorIcons color if available.string (hex color)4c71f2
border_colorCard’s border color.  
Can’t do when hide_bordee:T.string (hex color)e4e2e2 
bg_colorCard’s background color.string (hex color or 
a gradient:angle,start,end)fffefe  
hide_borderHides the card’s border.booleanfalse
themeName of the theme.  
all available themes.enumdefault 
cache_secondsSets the cache header manually (min: 21600, max: 86400).integer21600
localeSets the language in the card.  
Available locales here.enumen 
border_radiusCorner rounding on the card.number4.5

undefined

Final example

1
<img align="center" src="https://github-readme-stats.vercel.app/api?username=rebedy&include_all_commits=true&rank_icon=github&theme=shadow_green&hide_border=true&no-bg=true&no-frame=true&show_icons=true" />

Result


To sum up, something similar to the following code will be in your {username}/README.md.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- Github stats -->

<h3 align="left">Github Stats 📈</h3>

<table border="0">
<tr border="0">
<td width="50%" align="center">
<img align="center" src="https://github-readme-stats.vercel.app/api/top-langs/?username=rebedy&layout=donut-vertical&theme=shadow_green&hide_border=true&no-bg=true&no-frame=true&show_icons=true&langs_count=8"/>
</td>

<td width="50%" align="center">
<img src="https://github-readme-streak-stats.herokuapp.com?user=rebedy&theme=shadow_green&hide_border=true&show_icons=true" alt="GitHub Streak" /></a>
<img align="center" src="https://github-readme-stats.vercel.app/api?username=rebedy&include_all_commits=true&rank_icon=github&theme=shadow_green&hide_border=true&no-bg=true&no-frame=true&show_icons=true" />
</td>
</tr>
</table>

<br>

References


This post is licensed under CC BY 4.0 by the author.