A four-person team open-sources its developer tool on a Tuesday. The README is good, the demo GIF works, and the repository sits at 41 stars, most of them from the team's friends. An investor update is due in three weeks, and someone in the team chat pastes a link from a forum: a thousand stars, delivered in two days, for less than the cost of a team lunch.
Another team posts a Show HN the same week. It reaches the front page for an afternoon, and the repository picks up a few hundred stars overnight. A week later the curve is flat again, and nobody can say which of the readers came from Hacker News, which from a newsletter that picked it up, and which from GitHub's own Trending page.
This guide covers how to get GitHub stars from real people: how a launch on Hacker News, Reddit, X or in newsletters turns into stars, what GitHub's own rules say about fake stars, what a peer-reviewed study of six million suspected fake stars found, and what to measure so you know which channel worked. It makes no star promises. Every number below is from a public case, with its date and source. Where to promote the project beyond a launch day, by project type (registries, awesome lists, platform stores, communities), is in how to promote an open source project.
Terms used in this guide
- Star. A bookmark on a GitHub repository. GitHub's own description: "Starring makes it easy to find a repository or topic again later." The count is public and used as a popularity signal.
- Stargazer. An account that starred a repository. GitHub's API lists stargazers with the time each star was made.
- Trending. GitHub's Trending page, "what the GitHub community is most excited about today," which shows each repository's stars for the day.
- Fake star. A star from an account that exists to inflate counts, usually bought. The research below calls repositories that received them repositories "with fake star campaigns".
- Referring site. A website that sent visitors to a repository, as listed on GitHub's traffic page.
- Stars per visit. Stars gained in a period divided by unique visitors to the repository in the same period. Our working metric, not a GitHub term.
What a GitHub star is, according to GitHub
A GitHub star is a bookmark that also counts as public appreciation, and GitHub uses star counts in its own rankings and in Explore. That second use is why star counts are worth gaming, and why GitHub writes rules against it.
GitHub's documentation, Saving repositories with stars (last changed March 6, 2026), says both things in one paragraph:
"Starring a repository also shows appreciation to the repository maintainer for their work. Many of GitHub's repository rankings depend on the number of stars a repository has. In addition, Explore GitHub shows popular repositories based on the number of stars they have."
— GitHub Docs, Saving repositories with stars, March 6, 2026
Trending works differently. GitHub has never published its formula. The only description from GitHub itself is a 2013 blog post: "We look at a variety of data points including stars, forks, commits, follows, and pageviews, weighting them appropriately. It's not just about total numbers, but also how recently the events happened" (GitHub blog, August 13, 2013). So the count of new stars matters for Trending, but so does how fast they arrive and what else happens on the repository.
How launches turn into GitHub stars
GitHub stars from a launch come through a chain: a post reaches readers, some of them click through to the repository, and some of the visitors star it. Each channel feeds a different part of that chain, and a strong launch day can put the repository on GitHub Trending, which sends a second wave of visitors from GitHub itself.
Hacker News
Hacker News is the channel with the most public data on stars. A 2025 study of 138 AI and LLM repository launches on Hacker News in 2024–2025 found that repositories "gain an average of 121 stars within 24 hours, 189 stars within 48 hours, and 289 stars within a week of HN exposure" (Kraishan, arXiv 2511.04453, November 6, 2025). The same paper found that the "Show HN" tag "shows no statistical advantage after controlling for other factors," while posting time mattered. Two caveats: these are averages over AI tools that got HN exposure, not a forecast for any one repository, and the paper is a single-author preprint.
Hacker News bans asking for votes: "Don't solicit upvotes, comments, or submissions" (guidelines). The Show HN rules and what Hacker News rejects are covered in our Product Hunt alternatives guide; we don't repeat them here.
Reddit works one community at a time, with each subreddit's moderators deciding what counts as self-promotion. For a developer tool that means the subreddit for its language or framework, posted from an account with history there. There is no public dataset of Reddit-to-stars conversion that we could verify, so we give no numbers.
X
On X a launch is the maintainer's post plus posts from developers whose readers would use the tool. The usual format is a short screen recording of the tool doing one job, with the repository link under it. Paid posts need X's Paid Partnership label (label guide). Paying for likes, reposts or follows is banned under X's authenticity policy, which prohibits "coordinating with and/or compensating others to conduct account metric inflation". A labelled post that shows the tool is a different thing.
Newsletters and the ripple after the front page
Newsletters pick up what reached the front page of Hacker News or Trending, which is why the second and third day of a launch can look like a new spike. Skyvern's founder listed that effect after its March 2024 launch: "Our launch was featured in over 30 different AI groups/newsletters, causing a "ripple" effect on our adoption" (Skyvern blog, March 27, 2024).
GitHub Trending
Trending is where GitHub itself starts sending visitors. PostHog's founder described it after the 2020 launch: "Hacker News going well meant we got onto the GitHub trending main page, which got us more users" (PostHog blog, March 1, 2020). The same post has a practical note: "make sure you have tagged your repo appropriately – we had niche tags, and it was only once we changed them that we got discovered." Fake stars mostly don't get there: of the repositories with fake star campaigns in the study below, "Only a small number (78; 0.42%)" reached Trending.
Public launches and the stars they reported
Four open-source teams have published how many stars their launches brought and from where: PostHog passed 800 stars five days after its Hacker News launch in February 2020, Skyvern reported 3,000 stars after a #1 Show HN in March 2024, and Onlook reported +1,200 and +1,000 stars from two Hacker News posts and +700 from Product Hunt. These are reported results, not benchmarks.
| Project | Launch, date | Channel numbers (from the HN API) | Stars the team reported | Stars on December 4, 2026 |
|---|---|---|---|---|
| PostHog | Launch HN, February 20, 2020 | 282 points, 83 comments | "Five days later, we're over 800"; reached GitHub Trending | 41,369 |
| Skyvern | Show HN, March 14, 2024 | 422 points, 139 comments | "⭐ 3000 Github Stars"; GitHub Trending; 30+ newsletters | 23,613 |
| Onlook, first post | Show HN, July 8, 2024 | 336 points, 94 comments | "about +1,200 stars" | 28,167 (all launches) |
| Onlook, second post | Show HN, August 29, 2024 | 227 points, 51 comments | "from about 1,500 to 2,500 stars (+1,000)" | same repository |
| Onlook, Product Hunt | Product Hunt, 2024, "#8 of the day" | n/a | "from about 2,800 stars to 3,500 (+700 stars)" | same repository |
| Lago | HN post, May 18, 2022, #1 for 48+ hours | 777 points, 359 comments | None from that post: the repository "was still private" | 10,963 |
Sources: each team's own write-up (PostHog, Skyvern, Onlook, Lago); points and comments from the Hacker News API and current stars from the GitHub API, both read on December 4, 2026.
What the table shows, and what it doesn't:
- The range is wide. Reported launch results run from about 700 to about 3,000 stars across these five launches. Lago's case is the reminder that the repository has to be public and linked: a #1 post with 777 points brought no stars because there was nothing to star.
- Points and stars don't track each other. Onlook's first post had more points than PostHog's launch and brought a comparable number of stars; Skyvern's had more points still and brought more. Three data points is not a ratio.
- The same team got less from its second Hacker News post and less again from Product Hunt, in its own words "not as effective as Hacker News."
- Survivorship. Teams write up launches that went well. For every case here there are launches with ten points that nobody wrote about; Skyvern's founder mentions an earlier launch of a different product that got "10 upvotes."
Your launch can land anywhere in that range, or below it. We don't forecast stars for any repository, and nobody honest can.
GitHub's rules on fake stars
GitHub's Acceptable Use Policies ban "rank abuse, such as automated starring or following," fake accounts, secondary markets for inauthentic activity, and engagement rewarded with "gifts or other give-aways." Buying stars breaks several of these at once.
The rule sits in section 4, "Spam and Inauthentic Activity on GitHub," of the Acceptable Use Policies. It lists what GitHub does not allow, including:
"inauthentic interactions, such as fake accounts and automated inauthentic activity; rank abuse, such as automated starring or following; creation of or participation in secondary markets for the purpose of the proliferation of inauthentic activity;"
— GitHub, Acceptable Use Policies, section 4, as published December 4, 2026
The same list bans activity "incentivized by (or incentivizes inauthentic engagement with) rewards such as cryptocurrency airdrops, tokens, credits, gifts or other give-aways." That covers the softer versions too: stickers for stars, a raffle among stargazers, airdrop eligibility tied to starring. GitHub's Terms of Service add that "Accounts registered by "bots" or other automated methods are not permitted" and that "One person or legal entity may maintain no more than one free Account."
GitHub has said on the record that it removes fake stargazers. In October 2023 its online safety counsel told Wired: "GitHub Security has been aware of the presence of fake starrers for years, and actively works to remove these from the platform" (Wired, October 23, 2023). In the same story, the 50 stars Wired bought as a test "were also removed less than a month after purchasing."
What research found about fake GitHub stars
The largest study of fake GitHub stars, published at ICSE 2026, identified 6.0 million suspected fake stars across 18,617 repositories between 2019 and 2024, found the activity surged in 2024, and concluded that fake stars help for less than two months and then hurt.
The paper, by Hao He, Haoqin Yang, Philipp Burckhardt, Alexandros Kapravelos, Bogdan Vasilescu and Christian Kästner, first appeared on arXiv on December 18, 2024 as "4.5 Million (Suspected) Fake Stars in GitHub" and was revised on September 6, 2025 under the title "Six Million (Suspected) Fake Stars in GitHub" (arXiv 2412.13459). It was published at the 48th International Conference on Software Engineering (ICSE '26), DOI 10.1145/3744916.3764531. The authors built a detector called StarScout and ran it over all public GitHub activity. The abstract's conclusion:
"while repositories may have acquired fake stars for growth hacking, fake stars only have a promotion effect in the short term (i.e., less than two months) and become a liability in the long term."
— He, Yang, Burckhardt, Kapravelos, Vasilescu, Kästner, arXiv 2412.13459v2, September 6, 2025 (ICSE 2026)
The numbers changed between versions, so it matters which one you cite:
| Measure | v1, December 18, 2024 | v2, September 6, 2025 (ICSE 2026) |
|---|---|---|
| Data period | July 2019 – October 2024 | July 2019 – December 2024 |
| Suspected fake stars detected | 4.53 million | 6.0 million |
| Repositories with fake star campaigns | 22,915 before filtering; 15,835 after | 18,617 |
| Accounts involved, after filtering | 278,000 (3.1 million stars) | 301,000 (3.81 million stars) |
| Peak share of popular repositories with campaigns | 15.84%, July 2024 | 16.66% (3,499 repositories), July 2024 |
| Effect of a fake star vs a real one | "3–4x smaller" | "about 5x smaller" short term; negative long term |
| Share of monthly stars that are fake | n/a | about 1% |
Three more findings from v2 are useful for a maintainer deciding what to do. "Most (90.42%) repositories with fake star campaigns have been deleted on GitHub." Of those still online in March 2025, 30% "are spam or active phishing malware repositories." And only 0.42% reached Trending, which the authors read as a sign "that the GitHub trending algorithm is effective at filtering out most superficially-popular repositories." In plain terms: bought stars put a repository in the company of malware, rarely get it onto Trending, and the study measured a negative effect on star growth over time.
Two earlier reports agree on the market itself. Dagster's 2023 analysis found sellers offering "1,000 fake GitHub stars for as little as $64" (Dagster, March 16, 2023). Check Point Research described a network of "more than 3,000 active Ghost accounts" starring malicious repositories, and wrote that "Since May 2024, GitHub has taken down approximately 1559 repositories and their related GitHub accounts" (Check Point Research, July 24, 2024).
How the fake-star problem developed
Fake stars went from a known nuisance to a measured market in about three years: Dagster priced it in March 2023, GitHub commented on the record in October 2023, the market peaked in July 2024, and the ICSE 2026 paper put the total at six million suspected fake stars.
| Date | What happened |
|---|---|
| August 13, 2013 | GitHub launches Trending and lists the signals it uses |
| February 20, 2020 | PostHog's Launch HN; the repository reaches GitHub Trending |
| March 16, 2023 | Dagster publishes its fake-star analysis and seller prices |
| October 23, 2023 | Wired buys 50 stars as a test; GitHub says it removes fake starrers |
| July 2024 | Peak: 16.66% of popular repositories had fake star campaigns (paper v2) |
| July 24, 2024 | Check Point Research reports the Stargazers Ghost Network |
| October 21, 2024 | The FTC rule banning purchase of fake social media indicators takes effect in the US |
| December 18, 2024 | Fake-stars paper v1 on arXiv: 4.5 million suspected fake stars |
| September 6, 2025 | Paper v2: six million; accepted at ICSE 2026 |
| November 6, 2025 | Preprint measuring average star gains after Hacker News exposure |
| March 6, 2026 | Latest change to GitHub's documentation on stars |
The FTC row matters for companies more than for hobby projects. The US rule, 16 CFR 465.8, bans buying "fake indicators of social media influence" for a commercial purpose and names likes, followers and similar metrics. It doesn't name GitHub stars, so whether it covers them is our reading, not the FTC's. Not legal advice.
What to measure on a launch
Measure four numbers per channel: reach (views or points), clicks to the repository, unique visitors to the repository, and stars per visit. GitHub shows visitors and referring sites for only 14 days, so record them during the launch week, not after.
| Step | What to record | Where it comes from |
|---|---|---|
| Reach | Views of each X post; points and comments on HN; upvotes on Reddit; newsletter issue | The platform's own counters |
| Clicks | Clicks on each link you control | A separate link per channel and per creator (a short link or redirect you own), since GitHub's traffic page reports referring sites and doesn't document campaign tags |
| Repository visits | Views, unique visitors, referring sites | Repository Insights → Traffic; "Anyone with push access to a repository can view its traffic," data in UTC, past 14 days (GitHub Docs) |
| Stars, with time | New stars per hour or day | The stargazers API with the application/vnd.github.star+json media type, which "Includes a timestamp of when the star was created" (GitHub REST docs) |
| Stars per visit | Stars ÷ unique visitors, per day | Your own calculation from the two rows above |
| What happened next | Issues, pull requests, installs, sign-ups | GitHub, your package registry, your product |
How to read it:
- Stars per visit tells you about the repository; visits per channel tell you about the channel. If many people arrive and few star, fix the README: what the tool does in the first line, a GIF or a short video of it working, a quick start that runs in one command.
- Overlap is normal. A reader sees a post on X, then the same tool on Hacker News, and stars it from there. Referring sites show where the visit came from, not what the reader saw before. Look at the timing of star spikes against each post's time to see the order.
- Stars are a vanity number if nothing follows. PostHog's 2020 post put stars next to "well over 200 sign ups" and businesses using the product. Count the row that matters for your project.
Export the traffic numbers daily during launch week; after 14 days they are gone.
Where X creators fit
X creators reach developers who don't read Hacker News that day or who need to see a tool working before they click. Book them for the clicks to the repository, label every paid post, and never ask readers to star in exchange for anything.
The setup is the same as any launch wave on X: the maintainer's post is the anchor, creators whose readers would use the tool post their own test of it or quote the anchor, spread over hours. The AI launch playbook covers the anchor post, timing and the report, and how to run an influencer campaign on X covers the brief and the lineup. For a developer tool, how to launch a developer tool on X goes through seven public launches, what X has said about links in posts, and what to measure. Two things specific to open source:
- Link the repository directly, with a link per creator, so the traffic page and your click counts line up.
- Brief creators to show the tool, not to ask for stars. GitHub's policy bans engagement "incentivized by … rewards," and a paid post whose call to action is "go star this" puts a payment one step behind every star. "Here's what it did on my codebase, the repo is below" is the post that sends developers who might also file an issue.
AI & tech creators on Celebex list a median asking price of $70 for a sponsored post (Celebex price index, creators' asking prices, December 4, 2026). The index has the breakdown by account size; influencer CPM on X turns it into cost per 1,000 views. Before booking, check each account's real views with the X account checker; how to check fake followers explains what to look for.
If you're also doing a Product Hunt day, how to launch on Product Hunt covers that side, and why buying Product Hunt upvotes backfires covers the same question there. For a done-for-you launch, NotPeople runs Product Hunt launches with an X creator wave.
Find AI & tech creators for an open-source launch →What to do, depending on where you are
What to do next depends on whether the repository is ready, whether people are visiting it, and whether visitors star it. Start from the first line that matches.
- The repository isn't public or usable yet.
- Don't launch. Lago's #1 post brought leads but no stars because the repository was private. Ship a quick start that runs in one command first.
- It's usable and you have no audience.
- Post a Show HN or a post in the one subreddit your users read, at a time you can stay in the thread for hours. Record traffic from the first hour.
- Add a small X test: a few developer creators with their own links. Compare visits per channel after 48 hours.
- You launched and got visits but few stars.
- The repository page is losing the visitors you already have. Rewrite the first screen of the README and the repository description and topics, then try the next channel. Which channel fits your type of project is in how to promote an open source project.
- You got stars and they stopped.
- That's the normal shape: in the Hacker News study's averages, about two-thirds of the first week's stars (189 of 289) arrived in the first 48 hours. Plan the next release as the next launch; Onlook's second Hacker News post came about seven weeks after the first.
- Someone offers to sell you stars, or a teammate suggests it.
- Decline. It breaks GitHub's Acceptable Use Policies, GitHub removes fake starrers, and the ICSE 2026 study measured a negative long-term effect on star growth.
- Your repository received stars you didn't buy from obviously fake accounts.
- Don't do anything that looks like you're hiding it. Note the dates; if it's large, contact GitHub Support. GitHub hasn't published a policy on stars a maintainer didn't ask for.
FAQ
Can I ask people to star my repository?
Asking is not banned. GitHub's Acceptable Use Policies ban automated starring, fake accounts, markets for inauthentic activity and rewards for engagement, not a line in a README. A "star this repo if it helped you" note is common. Tying anything of value to the star is what crosses the line.
Are star-for-star exchanges allowed?
GitHub's section 4 bans "coordinated inauthentic activity" and "rank abuse." A group of maintainers starring each other's repositories to raise counts fits that description, and the fake-stars study detects exactly this kind of synchronized starring. We'd treat it as banned.
Do GitHub stars affect where a repository appears in search or Explore?
GitHub's documentation says "Many of GitHub's repository rankings depend on the number of stars" and that Explore shows popular repositories "based on the number of stars they have." It doesn't publish the weights for search or Trending; the 2013 Trending post lists stars among several signals.
We gave conference stickers to everyone who starred. Is that a problem?
GitHub's policy bans activity "incentivized by (or incentivizes inauthentic engagement with) rewards such as … gifts or other give-aways." Stickers for stars is a gift for engagement. Give stickers to people who come to the booth, and leave the star out of it.
Will one bought batch of stars get the repository deleted?
GitHub doesn't publish thresholds. What's on record: GitHub removes fake stargazer accounts, and Wired's 50 test stars disappeared within a month. Of the repositories the study flagged, 90.42% were later deleted, but most of those were spam or malware, so that figure doesn't tell you what happens to an ordinary project.
Sources
Checked December 2026. Star counts read through the GitHub API and Hacker News points and comments through the Hacker News API on December 4, 2026. X Help Center pages were read through a web.archive.org capture of December 3, 2026. Not legal advice.
- GitHub: Acceptable Use Policies, section 4, accessed December 4, 2026
- GitHub: Terms of Service, accessed December 4, 2026
- GitHub Docs: Saving repositories with stars, March 6, 2026
- GitHub Docs: Viewing traffic to a repository, accessed December 4, 2026
- GitHub Docs: REST API endpoints for starring, accessed December 4, 2026
- GitHub: Trending and Explore what is Trending on GitHub, August 13, 2013
- He, Yang, Burckhardt, Kapravelos, Vasilescu, Kästner: Six Million (Suspected) Fake Stars in GitHub, arXiv v1 December 18, 2024, v2 September 6, 2025; ICSE 2026, DOI 10.1145/3744916.3764531
- Carnegie Mellon University School of Computer Science: news release on fake GitHub stars, September 3, 2025
- Obada Kraishan: Launch-Day Diffusion: Tracking Hacker News Impact on GitHub Stars for AI Tools, arXiv, November 6, 2025
- Dagster: Tracking the Fake GitHub Star Black Market, March 16, 2023
- Check Point Research: Stargazers Ghost Network, July 24, 2024
- Wired: The GitHub Black Market That Helps Coders Cheat the Popularity Contest, October 23, 2023
- Hacker News: Guidelines and FAQ, accessed December 4, 2026; items 22376732, 39706004, 40904862, 41390449, 31424450
- PostHog: After the HN launch, March 1, 2020
- Skyvern: We open-sourced and ended up #1 on Hackernews, March 27, 2024
- Onlook: 3 major launches in 5 months, December 2, 2024
- Lago: 1000 GitHub Stars in 180 Days, December 15, 2022
- eCFR: 16 CFR Part 465, § 465.8, effective October 21, 2024
- X Help Center: Authenticity and Paid Partnerships Policy
- Celebex: sponsored post price index, live data of December 4, 2026




