About
Trending Repos
Trending Repos is an open-source GitHub discovery tool. Every four hours it re-scores the entire tracked corpus using EMA-smoothed star and fork velocity to find what's gaining momentum, not just what's already popular.
How scoring works
Each repository receives a score per period — daily, weekly, monthly — computed as a weighted combination of engagement velocity and recency:
score = 0.6 × EMA(star_deltas)
+ 0.3 × EMA(fork_deltas)
+ 0.1 × freshness_bonus- EMA alpha is tuned per period:
0.5daily,0.3weekly,0.1monthly. - The freshness bonus decays with repository age — newer projects get a small boost.
- A repository needs at least ten stars to be eligible for scoring.
Data sources
Repositories are discovered every four hours via the GitHub Search API across star bands, recently-created queries, and per-language queries. Engagement snapshots store daily star and fork totals plus their deltas. Trending scores and rank history are recomputed each cycle.
Who built this
Built by Simon Rüba. github.com/simonrueba.
FAQ
What is Trending Repos?
Trending Repos is an open-source GitHub discovery tool. It tracks public repositories with at least ten stars and re-scores them every four hours using momentum-based ranking, so you can see what's actually gaining traction rather than what was popular yesterday.
How does the scoring work?
Each repository gets a score per period (daily, weekly, monthly) computed as 0.6 × EMA(star deltas) + 0.3 × EMA(fork deltas) + 0.1 × freshness bonus. EMA alpha is 0.5 daily, 0.3 weekly, 0.1 monthly. The freshness bonus decays with repo age, giving newer projects a small boost.
How often is the data updated?
The pipeline runs every four hours via a Supabase Edge Function scheduled with pg_cron. Each cycle ingests fresh engagement data from the GitHub API, recomputes scores across the three periods, and updates the rank history table.
How is this different from GitHub's trending page?
GitHub's own trending page shows only the last twenty-four hours and uses an opaque algorithm with no rank history. Trending Repos exposes daily, weekly, and monthly windows side-by-side, keeps persistent rank history per repository, and publishes the full scoring formula.