A top languages card for your GitHub profile README

The languages card shows which languages your public repositories are written in, as a donut and a ranked legend. It is one image, served from one URL, and it stays current without a GitHub Action or a token.

A gh-stats top languages card: a donut chart with Python, Go, Jupyter Notebook, JavaScript and TypeScript, each with a percentage.
The languages card for one profile.

Add it to your README

Paste this into your profile README and replace the username:

![Top languages](https://gh-stats.com/api/YOUR_USERNAME?widgets=languages)

The first request for a new username queues a build, so the card can take a minute to fill in. After that it is served from cache and refreshed in the background.

Preview it on your username

Hide languages and pick a theme

Notebooks, generated HTML and vendored code often dominate a languages chart. List what to leave out in hide, comma-separated, and choose a look with theme:

![Top languages](https://gh-stats.com/api/YOUR_USERNAME?widgets=languages&hide=Jupyter%20Notebook,HTML&theme=nord)
ParameterWhat it does
hide Languages to exclude, comma-separated. Use %20 for spaces.
theme clean, midnight, nord, onyx or paper.

Coming from github-readme-stats

If your README already has a top-langs card from github-readme-stats.vercel.app, change only the domain:

Your current URLChange it to
github-readme-stats.vercel.app/api/top-langs?username=U gh-stats.com/api/top-langs?username=U

The compatibility URL ignores the original styling parameters (layout, langs_count, colours) and serves the default card. Use the ?widgets=languages form above for hide and theme.

The full migration guide covers the stats and streak cards too: github-readme-stats alternative.

Common questions

How are percentages worked out? From the byte counts GitHub reports for each public repository you authored, summed across those repositories. Forks are left out. A large repository in one language weighs more than several small ones.

Are private repositories counted? No. Only public activity is visible to the fetcher.

Can I show it alongside other stats? Yes. Drop the ?widgets=languages part and the same URL serves the full profile card: score, contribution timeline, collaborators, languages and streaks in one image.