Skip to content

Top languages card

The card reads the languages of the repositories you own or contribute to and ranks them. By default it weighs them by size — the bytes GitHub attributes to each language — which is what the progress bars show.

The top languages card

?username=octocat&langs_count=6
OptionWhat it is
usernameThe GitHub login to read languages for

layout changes the shape entirely, and is the option worth trying first.

The top languages card, compact layout

?username=octocat&layout=compact&langs_count=8

One bar across the top, then the languages in two columns. It fits more languages in less height, which is what makes it the usual pick for a README sidebar.

The top languages card, donut layout

?username=octocat&layout=donut&langs_count=6

donut-vertical stacks the legend under the ring instead of beside it, and pie fills the ring in.

Two languages can rank differently depending on what you mean by “most”. size_weight and count_weight set that:

WeightsWhat it ranks by
size_weight=1&count_weight=0Bytes of code — the default
size_weight=0&count_weight=1How many repositories use the language
size_weight=1&count_weight=1Both, multiplied together
OptionValuesWhat it does
layoutnormal compact donut donut-vertical pieThe shape of the card
langs_counta numberHow many languages to show
hidelanguage namesLanguages to leave out
exclude_reporepository namesRepositories to leave out
size_weighta numberWeight given to a language’s size
count_weighta numberWeight given to its repository count
stats_formatpercentages bytesWhat the value beside each language reads
hide_progresstrue falseDrop the bars and keep the names
hide_valuestrue falseDrop the numbers
prog_bar_bg_colora hex colorThe unfilled part of each bar
roleOWNER COLLABORATOR ORGANIZATION_MEMBERWhich repositories count
disable_animationstrue falseDraw the card with no animation

Plus the common options every card takes, and locale.