TryMy.App

How to Get GitHub Stars Without Gaming Them

How to get GitHub stars the honest way: a README strangers understand in ten seconds, a two-minute quickstart, the right communities, and why buying stars backfires.

By Mark Fulton ·

Last verified:

How to Get GitHub Stars Without Gaming Them

You get GitHub stars by making a repo that a stranger can understand in ten seconds and try in two minutes, then putting it in front of the people who already have the problem it solves. A star is a bookmark, not a user, so it follows clarity and usefulness rather than a launch push. The levers that work are a README that opens with what the project does and a visible demo, a quickstart that runs on a clean machine, a handful of well-chosen communities where you answer questions before you announce anything, and patience. The shortcuts do not work: buying, swapping or automating stars is rank abuse under GitHub's own policies, and a bought star never opens your project or files an issue.

If you have a repo that nobody has found yet, the pull to chase the number is strong. Resist it, and spend the same hours on the page that decides whether a visitor stays. Here is how.

What does a GitHub star actually mean?

GitHub's own documentation describes a star in two ways. According to the GitHub Docs page on saving repositories with stars, starring makes it easy to find a repository again later, helps you discover similar projects, and shows appreciation to the maintainer. It also says many of GitHub's repository rankings depend on star counts.

That is the whole contract. A star says "I liked this page" or "I might want this later". It does not say "I installed it", "I use it every week" or "I would recommend it to my team". Someone can star a repo from a search result in four seconds without cloning anything.

That has two consequences for how you plan:

  • Stars are a lagging signal. They arrive after people understand the project, so your job is to remove whatever stops them understanding it.
  • Stars are a poor measure of real adoption. Ten people who ran your tool and opened an issue tell you more than a hundred who bookmarked it. Track issues from strangers, forks and first-time contributors alongside the count.

So the useful question is not "how do I get more stars" but "how do I get more people to try this". Stars are what a good answer to that tends to leave behind.

Why do stars follow a README, not a launch?

A launch post brings a spike of visitors. What they do next depends entirely on the first screen of your repository. A visitor decides in seconds whether to scroll, clone or close the tab, and the README is nearly all of what they see.

GitHub's README documentation says a README should tell people why the project is useful, what they can do with it and how they can use it. That is the right order of priorities, and it is the opposite of how many repos are written: install steps first, project purpose somewhere on line forty.

Open Source Guides makes the same point from the promotion side: before you promote anything, you should be able to explain what the project does and why it matters. If you cannot say it in a sentence, no channel will fix that.

So the order of work is the reverse of what most people do. Fix the page first. Then promote. A spike of visitors landing on a confusing README produces a spike of closed tabs.

What makes a repo easy to try in two minutes?

Two minutes is a design target, not a promise. It means a stranger with a clean machine and no context can get from the page to a visible result before their attention goes elsewhere. Four things get you there:

  1. A one-sentence pitch at the top that names who it is for and what it does, with no jargon.
  2. Proof it works, without scrolling: a screenshot, a terminal recording or a short GIF. If you need a shot list, the demo GIF guide covers what to film in twenty seconds.
  3. A quickstart with the fewest possible steps, ending in output you can see.
  4. One real example for the task people came for, not a tour of every option.

The part people skip is testing it. Run your own quickstart on a machine that has never seen the project, with a stopwatch. Every step that fails or confuses you is a visitor you lose.

A worked example: rewriting one README

Here is a made-up project, a command line tool called logtidy that reformats messy log files. The names and the before and after are invented to show the pattern. The structure is what matters.

Before. The README opens with a heading, a badge row, then this:

Installation

Requires Node 18+, Python 3.10 for the optional parser, and a C compiler for the native module. Clone the repo, run the bootstrap script, configure the environment file, build the native module, then run the test suite to confirm everything works. See docs/ for configuration options. Contributing guidelines are in CONTRIBUTING.md.

Nothing on that screen says what the tool does. The visitor has to leave, read the docs and guess.

After. The same project, rewritten:

logtidy

Turn a messy log file into a readable timeline with one command.

(a short GIF: a 3,000-line log goes in, a colour-coded timeline comes out)

npx logtidy ./server.log

That is the whole quickstart. Output shows the errors first, then a timeline of what led up to each one.

Works on any plain-text log. Not a replacement for a log platform: it runs on one file at a time.

Change Why it helps
Name and one-line pitch first The visitor knows what it is before they scroll
GIF directly under the pitch Proof of the outcome, with no reading required
One command that runs with no setup The two-minute test now passes
Build requirements, tests and config moved lower Contributors still find them, but newcomers are not blocked by them
One honest line on what it is not Sets expectations and signals a maintainer who knows the territory
The wording describes a result, not an architecture People star what they want, not what is clever

Nothing in that rewrite is marketing. It is the same project told in a different order, with the proof moved to the top. The order is what changes whether someone stays.

Do the small repository settings too. GitHub's documentation on repository topics says topics help others find and contribute to a project, and that they can describe its purpose, subject area or language. Fill in the About box with a description and link, and upload a social preview image so a pasted link looks like something.

Where do developers discover new repos?

Not many people browse GitHub for fun. They arrive from somewhere else, so the useful move is to be a helpful presence in a few places where your users already ask questions. A realistic set:

Source What works What to avoid
Answers in forums and Q&A sites A reply that solves the problem, with the repo mentioned only when it fits Dropping a link into unrelated threads
Show HN A working project people can run, with you in the comments. The Show HN guidelines say it is for things people can try, and landing pages and sign-up pages do not count Asking friends to vote
Subreddits for your language or niche Reading the rules first, then posting once as a person with something to share The same text in five subreddits
Newsletters and curated lists A short, specific pitch to a maintainer whose readers match yours Mass emailing
Your own write-up A post about a problem you solved, with the repo as the worked example A feature list
Directories of free-to-try tools A listing a stranger can click through to a working version Treating it as a replacement for the above

The Show HN checklist walks through the title and first comment, and the guide on promoting an open source project covers a repeatable release loop once the first post is out.

Be wary of anything that promises stars at a fixed rate. The most useful thing a community gives you is a real person who tried your tool and told you what broke. That person is worth more than the star.

How does GitHub Trending pick projects?

GitHub's Trending page describes itself as showing what the GitHub community is most excited about today, with views for today, this week and this month. Each entry shows the stars it gained in that period.

What GitHub does not publish is the exact formula, so be sceptical of anyone who gives you a precise threshold for how many stars you need to appear. The visible mechanics are simple: the page is about recent growth rather than total stars, so a small project gaining attention quickly can show up beside much larger ones.

What that means for you:

  • Recent momentum matters more than the total. A repo with a modest count can appear if it is gaining stars quickly relative to others.
  • You cannot schedule it. Trending is an outcome of people finding your project, not a button.
  • Appearing there brings a second wave of visitors, and they arrive at the same README. Make sure it holds up before a post lands on a front page.

Treat Trending as a possible side effect of doing the earlier work well, and do not build a plan around it.

Why should you never buy or swap stars?

Because it is against the rules, it does not help, and it damages the thing you are trying to build.

GitHub's Acceptable Use Policies have a section on spam and inauthentic activity. Among the listed examples are "rank abuse, such as automated starring or following" and "creation of or participation in secondary markets for the purpose of the proliferation of inauthentic activity". The same policy covers fake accounts and incentivised engagement. Buying stars from a service, or joining a "star for star" swap, falls inside that language.

Even if you ignore the policy, the practical case is poor:

  • A purchased star has no behaviour attached. The account does not clone, file an issue, fork or recommend.
  • The count and the activity stop matching. A repo with a large number of stars and almost no issues, forks or discussions looks wrong to experienced developers, who know to check.
  • You risk the account. Enforcement is GitHub's call, and a flagged repo or account is far more costly than a slow start.
  • It teaches you nothing. The point of early attention is learning what confuses people. A bought number hides that.

The same goes for a script that stars repos in bulk, or asking a community to star in exchange for a reward. If the only reason someone clicked is that you asked or paid, it is not a signal.

Starring your own repo is the mildest version of the same instinct. Nothing technically stops you, but it is one star, it tells no reader anything, and it is not worth the habit.

What should you do this week?

A short plan, in order:

  1. Rewrite the first screen of your README using the pattern above: pitch, proof, one command.
  2. Run the quickstart on a clean machine and fix every snag.
  3. Add topics, a description, a link and a social preview image.
  4. Pick two communities where your users already ask questions, and spend a week answering before you announce.
  5. Post once, where the rules allow it, and stay in the thread.
  6. Reply to every issue and comment within a couple of days.

Then check what actually moved: visitors who stay, issues from strangers, forks. If stars come along, good. If they do not but people are using the project, you are still building the thing that matters.

Where does TryMy fit?

If your project has something people can try, whether a hosted demo, a downloadable app or a tool with a clear install, it can sit next to the places above. TryMy lists free-to-try indie apps, each reviewed by a person before it goes live, and dev tools have their own category so developers browsing for tools see yours alongside similar work. A listing is one more place a stranger can land and click through to a working version. It will not replace a clear README, and it does not guarantee any number of visitors. A listing is a one-time $19 placement.

Want people who try it, not just star it? Submit it to TryMy.

FAQ

Do GitHub stars matter for an open source project?

They matter as a rough signal and as a way of being found. GitHub's documentation notes that many of its repository rankings depend on star counts, and a healthy count can help a stranger decide to look. They do not measure real use, so pair them with issues, forks and contributors when you judge how the project is doing.

Is buying GitHub stars against the rules?

Yes. GitHub's Acceptable Use Policies list "rank abuse, such as automated starring or following" and participation in secondary markets for inauthentic activity among prohibited behaviour. Buying stars, trading them in star-for-star groups or running a script that stars repos all fall into that territory. Beyond the policy, purchased stars bring no real users.

How many stars does a repo need to trend?

There is no published number. GitHub's Trending page shows what the community is most excited about today, this week or this month, and lists the stars each repo gained in the period, but GitHub does not publish the formula. Because it reflects recent growth, treat any exact threshold you read elsewhere with caution.

Does starring my own repo count?

It adds one star like any other account, and nothing about it helps you. It tells readers nothing, and it will not move you in any ranking in a way that matters. Spend that time on the README, where it changes whether visitors stay.