npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fake-star-detector

v0.1.0

Published

Is this GitHub repo's hype real? Crawls a repo's recent stargazers and flags purchased/bot stars from the timing spikes and the empty accounts behind them. A fake-o-meter 0–100 with the receipts. No API key needed (more generous with one).

Readme

fake-star-detector ⭐

Is this GitHub repo's hype real? Crawls a repo's recent stargazers and flags purchased/bot stars — from the timing spikes (hundreds in an hour) and the empty accounts behind them (days old, zero followers, zero repos, starred one thing and vanished). A fake-o-meter 0–100, with the receipts. No API key needed; a token just raises the rate limit.

🌐 Check any repo + today's trending leaderboard →

Paste a repo and it analyzes the stars live in your browser. Same engine in your terminal:

npx fake-star-detector facebook/react
npx fake-star-detector trending     # rank today's trending by how bought they look
  some-trending-org/rocket-launch · 48,201 stars

  82/100 ████████████████░░░░ Reeks of bought stars 🤖

  timing (of 1,000 recent stars)
    biggest burst: 412 stars in one hour · 2026-06-12T03:00Z
    91% of them landed on a single day  ▁▁▁▁▁█▁▁

  accounts (sampled 30 recent stargazers)
    26/30 look bot-shaped (87%)
      @xk29fja — account 2d old when it starred, 0 followers, 0 public repos, no bio
      @qz81mn0 — account 1d old when it starred, 0 followers, 0 public repos, no bio
      …

  heuristic, not proof — fast bursts + empty accounts ≈ purchased stars. public data only.

Why

GitHub stars are a currency — and currencies get counterfeited. You can buy a thousand stars for pocket change, and a lot of repos do, especially the ones racing up trending. The fakes leave two fingerprints this tool reads:

  1. Timing. Real stars trickle in; bought stars arrive in a wall — hundreds in an hour, the whole batch in a day.
  2. The accounts. A real stargazer has a history. A bought one is a shell: created days ago, zero followers, zero repos, one star, gone.

fake-star-detector samples the recent stargazers (where the dumps show up), measures both, and gives you a score and the receipts.

How it works

GitHub stargazers API (starred_at)  ─crawl recent→  timing spikes  ─┐
GitHub users API (account metadata) ─sample→  empty-account share  ─┴→  fake-o-meter
  • Browser-safeapi.github.com allows CORS, so the exact same crawler runs in the CLI, in CI, and live in the web page (no node:* in the core).
  • Account signal dominates the score (empty accounts are the real tell); the timing concentration and single-hour burst corroborate. Among trending repos a big burst is expected, so we don't cry wolf on timing alone.
  • The live leaderboard is static: a GitHub Action re-analyzes trending every few hours and commits the result — no server.

Install & usage

npm i -g fake-star-detector     # then:  fake-star-detector owner/repo
# or zero-install:
npx fake-star-detector owner/repo
fake-star-detector facebook/react           # analyze one repo
fake-star-detector trending                 # rank today's trending by suspicion
fake-star-detector owner/repo --sample 50    # sample more accounts (more confident)
fake-star-detector owner/repo --md           # a Markdown report
fake-star-detector owner/repo --json         # the full analysis

fakestars is a shorter alias.

| Flag | | | --- | --- | | --token <tok> | a GitHub token (also GITHUB_TOKEN / GH_TOKEN) — raises 60 → 5,000 req/hr | | --pages <n> | stargazer pages (×100 most-recent stars) to pull (default 10) | | --sample <n> | recent stargazer accounts to sample (default 30) | | --json [file] / --md [file] | machine-readable / Markdown output |

Rate limits: unauthenticated GitHub allows ~60 requests/hour — enough for a check or two. A read-only token (or gh auth token) raises it to 5,000.

Library

The core is pure and browser-safe:

import { analyzeRepo } from "fake-star-detector";

const a = await analyzeRepo("owner/repo", { token, sample: 40 });
a.verdict;             // { score: 82, band: "astroturfed", label: "Reeks of bought stars" }
a.suspiciousFraction;  // 0.87
a.spikes.burst;        // { hour: "2026-06-12T03:00Z", count: 412 }
a.samples;             // the sampled accounts, each with `suspicious` + `reasons`

Honesty

This is a heuristic, not proof. A high score means a burst of recent stars from empty, brand-new accounts — the shape of purchased stars. It is not a certainty, and a fast-growing legit project can have a spiky day. It reads only public data (stargazer timestamps and public account metadata), points at repos rather than people, and shows you the receipts so you can judge for yourself. Nothing about you is ever sent anywhere — in the browser, your optional token goes straight to api.github.com and stays in the tab.

Contributing

The most useful contribution is a sharper account heuristic or score tuning. See CONTRIBUTING.md.

License

MIT © didrod205


Stars are a currency. This is the counterfeit detector. Heuristic, public data, judge for yourself.