awesome-react icon indicating copy to clipboard operation
awesome-react copied to clipboard

Sort by stars?

Open hornta opened this issue 7 years ago • 12 comments

Possible to make all react components sorted by stars or is that hard? It is so frustrating trying to find a decent library and sorting by stars makes it easier.

Maybe even sort by number of issues or the last commit.

hornta avatar Dec 27 '17 17:12 hornta

A stepping stone would be to add some star badges. That would help us keep the sort order up to date, and would also help developers find things in the meantime.

paulmelnikow avatar Dec 28 '17 20:12 paulmelnikow

We can run some sort of cron job (daily on CI?) to create the list with stars. Basically a script to generate markdown on CI and commit to the project

alexanderjsx avatar Dec 29 '17 09:12 alexanderjsx

I'd actually prefer to sort by last update, and simply display the star count. I think all of those lists should be sorted like this, but I never see it so I guess it's just me

Coriou avatar Sep 06 '18 05:09 Coriou

all of that is fairly complicated, since it's just a markdown file, but if you have the inclination to do so, I feel like it would probably be best to transform the list to a json or something, and the markdown to be generated e.g. daily from that data, with the PRs only going to the data.

PR definitely welcome if you want to work on this

Haroenv avatar Sep 06 '18 16:09 Haroenv

This would be cool...also would be cool if there were deeper categories..like components is huge...and some things can be grouped...like material-ui components, table components, etc....

patrickcurl avatar Nov 30 '18 10:11 patrickcurl

if you make a PR to split them up in categories, I'd definitely approve @patrickcurl, however sorting by stars is not practical, since the list is static, and stars aren't

Haroenv avatar Nov 30 '18 12:11 Haroenv

I mean by 'this would be cool' ... sorting by last update, and display star count, from a json version... could even have a website where people can simply submit a new item, that will add to the json array, and repopulate the list's markup automatically... that way you wouldn't even have to worry about PR requests... I might tinker w/ that after I finish up a few projects I'm working on.

patrickcurl avatar Nov 30 '18 15:11 patrickcurl

I had an idea a looong while ago to use a badge to combine some key stats for each project. It would really help with a list like this which is long and often out of date.

I ended up joining Shields and I'm excited that I have a little time to revisit the idea.

We could pick two or three key metics and render them like this:

That's one I designed a while ago, which shows stars, forks, and issue count.

Implementing this on the markdown side will require a link next to each item. That seems a little unwieldy so I'm not completely sure this is feasible. Seems high enough impact, though that it might be worth pushing forward with this and seeing if we find something that works well enough.

Some metrics we might want to show:

  1. React version in peer dependencies is up to date (for a component or library)
  2. Download count
  3. Star count
  4. Number of contributors or other metric of recent activity on the repo or project

What seems the most valuable?

paulmelnikow avatar Jan 07 '19 22:01 paulmelnikow

Looks like a nice idea to me! Easy to have a wrong metric for the peer dependency though, so maybe we can only show that if it's "positive". Otherwise the exact design for the badge seems a bit odd with sizing, maybe that can be done differently?

Haroenv avatar Jan 14 '19 08:01 Haroenv

Easy to have a wrong metric for the peer dependency though, so maybe we can only show that if it's "positive".

👍

Otherwise the exact design for the badge seems a bit odd with sizing, maybe that can be done differently?

Could you elaborate? I think it can be improved, just trying to think about what to focus on.

Any thought on whether downloads or stars is a better popularity metric? Or what makes a good activity metric?

paulmelnikow avatar Jan 14 '19 16:01 paulmelnikow

screenshot 2019-01-14 at 17 30 06

the sizes of the icons don't seem consistent is what I meant.

Activity -> downloads Popularity -> stars

I'm not fully sure though, on Yarn I decided to show both

Haroenv avatar Jan 14 '19 16:01 Haroenv

Downloads are a measure of popularity, too. They show how many people are using the project.

For activity, I'm trying to get at what's happening in the project. Does it have outside contributors, recently merged PRs, a recent release?

paulmelnikow avatar Jan 14 '19 16:01 paulmelnikow