Abandoned, but forkable (since FOSS), and a decent idea.
Probably nowadays this gets done in Node, parsing the package search websites. Preferably, this would be done via an API though.
First thought, which came to my mind, was a security use case to get it to a point for sbom handling and tracking. In particular, respective to all the recent package vulnerabilities.
Repology provides an API but it's unstable: https://repology.org/api/v1
peter_d_sherman•1h ago
List of linux package search databases:
https://github.com/sxiii/awesome-package-search