$ embed --repo=owner/name

Put a star chart in your post.

Two widgets for blogs and READMEs: the star chart of any repo we track, and the Top 5 trending list. Each is one small picture that links back here.

Star chart of one repo

The last 30 days of total stars, with the stars gained over that time written above the line. Type a repo to change the snippets and the preview.

Star chart of morluto/rea on RepoTrending, last 30 days
Live example: morluto/rea. Data of Oct 30, 2026.
[![morluto/rea star history on RepoTrending](https://repotrending.com/embed/chart/morluto/rea.svg)](https://repotrending.com/repo/morluto/rea/)

Markdown, for a README or any Markdown post

<a href="https://repotrending.com/repo/morluto/rea/"><img src="https://repotrending.com/embed/chart/morluto/rea.svg" alt="morluto/rea star history on RepoTrending" width="600" height="320" loading="lazy"></a>

HTML, for a blog page

Top 5 trending

The five repos that gained the most stars today, this week or this month: the same lists as the home page, the week page and the month page. A list that does not have all its days yet says so on the picture.

Trending today on RepoTrending: the five repos with the most stars gained
Trending today: stars gained in the last 24 hours
[![Trending today on RepoTrending](https://repotrending.com/embed/top5/today.svg)](https://repotrending.com/)

Markdown

<a href="https://repotrending.com/"><img src="https://repotrending.com/embed/top5/today.svg" alt="Trending today on RepoTrending" width="600" height="300" loading="lazy"></a>

HTML

Trending this week on RepoTrending: the five repos with the most stars gained
Trending this week: stars gained in the last 7 days
[![Trending this week on RepoTrending](https://repotrending.com/embed/top5/week.svg)](https://repotrending.com/this-week/)

Markdown

<a href="https://repotrending.com/this-week/"><img src="https://repotrending.com/embed/top5/week.svg" alt="Trending this week on RepoTrending" width="600" height="300" loading="lazy"></a>

HTML

Trending this month on RepoTrending: the five repos with the most stars gained
Trending this month: stars gained in the last 30 days
[![Trending this month on RepoTrending](https://repotrending.com/embed/top5/month.svg)](https://repotrending.com/this-month/)

Markdown

<a href="https://repotrending.com/this-month/"><img src="https://repotrending.com/embed/top5/month.svg" alt="Trending this month on RepoTrending" width="600" height="300" loading="lazy"></a>

HTML

What it can't do

  • It only covers the 2,500 repos we track. A repo we do not track has no chart, and its address shows a broken picture.
  • A repo needs two days of star counts before its line can be drawn. Until then the picture says when the chart appears.
  • It can show yesterday's numbers. The data is rebuilt once a day, kept for an hour, and GitHub keeps its own copy of an image.
  • The picture cannot be clicked on its own; the link comes from the snippet around it.
  • It can't tell a real surge from bought stars, here or on the site.

Questions

How do I put a star chart in my README?

Paste the Markdown from this page into your README and replace the repo with yours. It is a picture that links back to the repo's page on RepoTrending. The picture exists for the 2,500 repos we track; if yours is not one of them, its address shows nothing.

Does a widget set cookies or track people who view it?

No. Each widget is one static picture file. We add no cookie, no script and no counter to it. The files are served by Cloudflare, which keeps its own network records for anything it serves; that is outside our code.

How often does it update?

Once a day, when the site is rebuilt after the daily star counts are saved. The data day is written at the bottom of every picture (now Oct 30, 2026). Browsers and our host keep a file for up to an hour, and GitHub keeps its own copy of an image and refreshes it on its own schedule, so a README can show yesterday's picture for a while.

Why a picture and not an iframe?

A picture loads from one cached file and cannot run anything on your page. It also works where an iframe does not: GitHub strips iframes from a README, and our site refuses to be framed on purpose. The cost is that the picture cannot be clicked on its own, so the snippet wraps it in a link.

Do I need permission, an account or a key?

No. There is nothing to sign up for. Please keep the link in the snippet: it is how your readers check the numbers, and it is the credit we ask for.

What does the dashed part of a chart mean?

For some repos the days before we started counting are worked out from GitHub's star history, counted back from our first count. Those days are drawn as a dashed grey line. The solid green line is our own daily count. Stars that people took back are not in GitHub's numbers, so the dashed part can run a little off.