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.