enaqx / awesome-react

A collection of awesome things regarding React ecosystem
65.42k stars 7.21k forks source link

Sort by stars? #731

Open hornta opened 6 years ago

hornta commented 6 years ago

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.

paulmelnikow commented 6 years ago

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.

alexanderjsx commented 6 years ago

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

Coriou commented 6 years ago

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

Haroenv commented 6 years ago

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

patrickcurl commented 5 years ago

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....

Haroenv commented 5 years ago

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

patrickcurl commented 5 years ago

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.

paulmelnikow commented 5 years ago

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?

Haroenv commented 5 years ago

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?

paulmelnikow commented 5 years ago

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?

Haroenv commented 5 years ago
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

paulmelnikow commented 5 years ago

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?