Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[catalog-server] Add a ranking metric #1361

Open
justinfagnani opened this issue Oct 12, 2022 · 0 comments
Open

[catalog-server] Add a ranking metric #1361

justinfagnani opened this issue Oct 12, 2022 · 0 comments
Labels
New Site Issues for the rewrite of the site and catalog.

Comments

@justinfagnani
Copy link
Collaborator

We need a default way to rank elements in queries or just browsing the catalog.

There are a number of metrics we could pull from:

  • npm downloads
  • GitHub stars
  • Last publish date
  • Catalog page views
  • Manifest completeness and validation
  • package.json completeness and validation
  • Number of dependents in npm
  • Ratings in the catalog itself

Some of these would require writing back to the catalog database, some would require a log-in. So we may want to avoid those.

npm divides these metrics into popularity, quality, and maintenance, which might be a useful way to think about these. It's probably not that useful to allow custom mixing of those metrics like npm allows, but we could internally group metrics into those categories before mixing to rationalize the weights we give different metrics.

Most of these metrics are also per package, not per element, so we run the risk of over-weighting rarely-used/low-quality elements in otherwise high-quality/popularity packages. The only way to address that is with per-element measures like star ratings in the catalog or manifest completeness per element.

@justinfagnani justinfagnani added the New Site Issues for the rewrite of the site and catalog. label Oct 12, 2022
@justinfagnani justinfagnani moved this to 📋 Triaged in Lit Project Board Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Site Issues for the rewrite of the site and catalog.
Projects
None yet
Development

No branches or pull requests

1 participant