[go: up one dir, main page]

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

Sort by Star Count #674

Open
dontirun opened this issue Dec 13, 2021 · 5 comments
Open

Sort by Star Count #674

dontirun opened this issue Dec 13, 2021 · 5 comments
Labels

Comments

@dontirun
Copy link

Description

Add 'Least stars' and 'Most stars' as sort metrics on the website, and possibly default to 'Most stars'

Use Case

I would like to be able to sort community constructs by star count as I think it's a helpful metric for popularity.

Other information

npm downloads alone can be manipulated or misrepresented. As mentioned in a npm blogpost the download count includes.

  • automated build servers
  • downloads by mirrors
  • robots that download every package for analysis

Download count can still be useful for identifying trends, but there should be options for other metrics, especially if ConstructHub is continually indexing packages

@Chriscbr
Copy link
Contributor

I think a feature like this could be tricky to add because not all projects published to npm are on GitHub. In addition, information about a package's repository URL provided by package.json could be incorrect or even misrepresented (as there is no mechanism that validates this is correct).

@dontirun
Copy link
Author

That's a very good point. Is there potential for some sort of rating system within ConstructHub (appstore like rating features)? Community driven input would be helpful for searching through constructs, especially when there are many similar options.

@MrArnoldPalmer
Copy link
Contributor

@dontirun we have talked about creating some sort of aggregate to indicate "popularity" or how active a project is in general. Something like a combination of github stars, # of recently closed issues, npm downloads, frequency of recent commits, etc.

If you're interested in this definitely feel free to do some research and let us know what you think would be the best strategy. My instinct is that we could compute this for each package while computing other metadata, like tags, and put it into the metadata where it will be added to the catalog to use for searching/sorting. So around here in the current code.

@dontirun
Copy link
Author

Another idea would be to add construct specific information into the cdk analytics metadata. However that could have some privacy concerns and there could be issues with max template size given the usage of many constructs.

@github-actions
Copy link
Contributor

This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

@github-actions github-actions bot added the stale label Feb 21, 2022
@Chriscbr Chriscbr added backlog and removed stale labels Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants