Expand description
Popularity signal snapshotting for extension candidates.
This module is intentionally “evidence-first”:
- Fetch concrete metrics (GitHub stars/downloads/etc).
- Normalize missing/unavailable metrics to
null(never0). - Persist evidence onto the canonical candidate pool JSON so scoring can be auditable.
Structs§
- Alias
Note - Candidate
Item - Candidate
Pool - GitHub
Repo Metrics - GitHub
Repo Ref - NpmDownloads
- NpmRegistry
Meta - Popularity
Evidence - Popularity evidence schema.
- Sha256
Checksum - Source
Inputs
Enums§
Functions§
- fetch_
github_ repo_ metrics_ optional - fetch_
npm_ downloads - fetch_
npm_ registry_ meta - github_
repo_ candidate_ from_ url - Best-effort parse of a GitHub repository reference from a URL-like string.
- github_
repo_ guesses_ from_ slug - parse_
github_ repo_ response - parse_
npm_ downloads_ response - parse_
npm_ registry_ response - snapshot_
github_ repos - Fetch all referenced GitHub repos (deduped) and return a
full_name -> metricsmap.