Skip to content
For founders8 min read

How to get GitHub stars without gaming them

How open source projects actually earn their first 100 GitHub stars and the next 1,000: the README, the launch, the places to share it, and what never to do.

By TeaserTrack Team

Published

Night sky full of stars behind the silhouette of a tree, a nod to earning GitHub stars
On this page

    Stars are a weak signal of quality, and we have argued as much in are GitHub stars a good signal?. They are still the first number people see, they decide whether a project shows up in GitHub's trending lists, and a project with none looks abandoned even when it is not. So here is how projects really earn their first hundred stars and the thousand after that, without doing anything that would embarrass you later.

    Teenager writing code at a desktop computer in a home office
    Stars follow a repository that is easy to understand and easy to try.

    First, make the repository worth starring

    A star is a bookmark. People star what they want to come back to, and they only come back to what they understood. Before you share the link anywhere:

    • One line that says what it is. The repository description and the first line of the README should name the problem and the audience: "A type-safe SQL query builder for Deno", not "The future of data".
    • Show it working in the first screen. A GIF, a screenshot or a ten-line code example above the fold. Most visitors decide before they scroll.
    • Install in one command. If installation needs five steps, the star comes after the five steps, which means it does not come.
    • A licence. No licence means nobody can legally use it, and people who know that will not star it.
    • Recent activity. A last commit from yesterday reads very differently from one eight months ago.

    Run your repository through the README checker for a quick list of what is missing, and read how to write a README that converts for the longer version.

    Your first 100 stars

    The first hundred come from people who already know you or who have the exact problem you solved. That is a list you can make.

    1. People you have helped. Colleagues, former teammates, people whose issues you answered elsewhere. A personal message saying "I built the thing we talked about" is not spam, and asking them to look is fine. Asking them to star it is where it starts to feel like a favour; let them decide.
    2. The issue trackers where people asked for this. If there are open issues on other projects asking for exactly what you built, one honest comment linking to it is on topic and useful. One comment, not ten.
    3. Communities for your language or framework. The subreddit, the Discord, the forum. Lead with what you learned building it, not with the link.
    4. A directory listing. Submit it to TeaserTrack and it shows up in its categories, with the GitHub stars and licence on the page, for people browsing for new open source tools.
    Two young women working on laptops together on the floor of a room
    The first hundred stars usually come from people who already know you.

    The launch that gets you to 1,000

    Most projects that cross a thousand stars quickly do it on the back of one good day, usually Show HN or a popular newsletter, and then a steady trickle from search and links.

    • Show HN, once it is usable. A plain title, a first comment that explains why you built it and what it does not do, and you at the keyboard for the first two hours. The Show HN title checker catches the common title mistakes, and the best time to post on Hacker News tool shows how Show HN posts have done by weekday and hour.
    • Newsletters for your ecosystem. Many weekly newsletters for a language or framework take submissions. A mention there reaches exactly the people who would star it.
    • Awesome lists. A pull request to the relevant awesome list is slow and durable, and it keeps sending visitors for years.
    • Write about the problem, not the project. A blog post on the problem your project solves, with the project as the conclusion, gets shared in places a project announcement never would.

    GitHub does not document how its trending page is ranked, but recent stars clearly count for a lot, so a good launch day can put you on it, which brings the next wave. You cannot plan that, but you can make sure the repository is ready when it happens.

    Keeping them coming

    • Release often, and write release notes. Every release is a reason for people watching the repository to look again, and for newsletters to mention it.
    • Answer issues quickly. A project where the first issue gets a reply in a day earns trust that no README can.
    • Add good first issues. Contributors star the projects they contribute to, and they tell their friends.
    • Put the link where people meet the project. The docs site, the package registry page, the error messages and the CLI's help output.
    Speaker giving a talk to a full audience in a modern hall, one way to get more GitHub stars
    Talks, docs and the CLI help text keep new people finding the project.

    What never to do

    Do not buy stars, trade stars in groups or run "star for star" schemes. Paid and swapped stars break GitHub's Acceptable Use Policies, which ban inauthentic activity and rank abuse, and researchers have published tools that spot them from the timing of the stars alone. Anyone evaluating your project who notices hundreds of stars from empty accounts in one afternoon will draw the obvious conclusion, and it is far worse than having a small number.

    Stars follow usefulness with a lag. Make the project easy to understand, show it to the people who have the problem, and the number takes care of itself. If you want to see which young projects are earning stars fastest right now, the rising on GitHub page tracks them every hour.