# Most listings had no GitHub stats

> 1,452 of the 2,124 listings with a GitHub repository showed no stars, commits or releases, so search ranked them on less than the rest. Stats came only from files in git, which since 21 November hold only the dev seed set. Production now fetches them itself, minutes after a listing is written.

Source: https://talira.ai/dev-log/listings-without-stats
All of Talira's documentation: https://talira.ai/llms.txt

23 November 2026

**What went wrong:** Poo, a listing added on 22 November, showed no GitHub activity at all. It wasn't alone. Stats came from data/enriched/, files a script on a laptop wrote and every deploy loaded. Once production's Postgres became the catalog on 21 November those files held only the dev seed set, so no listing added since had stats, and an update to any listing replaced its stats with what those files had, usually nothing. Nothing checked that a listing with a repository had stats.

## Evidence

- [The stats:fetch code and its tests](https://github.com/talira-ai/talira/blob/main/server/src/stats.rs)
- [How listings' stats are fetched and checked](https://github.com/talira-ai/talira/blob/main/docs/REFRESH.md)

## Why

A listing's GitHub stats (stars, commits in 90 days, the latest release, contributors, whether it's archived) and its
packages' downloads and releases feed its maintenance and adoption scores, so a listing without them ranks as if
nobody maintained it. They were fetched by `talira enrich` and `trust:fetch`, run by hand, into files in git that each
deploy loaded into the database. That worked while git was the catalog. When research started writing to production
directly, the files stopped covering the catalog, and two code paths made it worse: the admin API took a listing's
stats from those files on every write, and each deploy's `catalog:sync` did the same for every listing.

Production now fetches stats itself (`stats:fetch`), straight into its stats tables, never into a record:

- An admin write that names a repository or package without stats queues a fetch, done within minutes.
- An hourly job fetches anything still missing, then refreshes stats older than a week. GitHub is asked in batches of
  25 repositories a query, within its rate limit.
- A repository that's gone, moved or was archived is recorded, not dropped: a moved one is fetched at its new name and
  listed for its record to be corrected.
- The hourly job fails, and alerts us, when a listing with a repository or package still has no stats a day after it
  was added. The admin home shows the count.

Deploys no longer touch stats, admin updates keep the stats of the repositories and packages a record still names,
and the files in git are now only the dev seed set's copy, refreshed from production.
