aantipov / moiva

A Universal tool to Evaluate, Discover alternatives and Compare Software projects.
https://moiva.io
85 stars 3 forks source link

Number of dependents #521

Open PostPCEra opened 2 years ago

PostPCEra commented 2 years ago

First of all thank you to Project staring authors for coming up with such a useful npm lib evaluation tool.

github starts is a popular metric when comparing libraries . But it can mislead at times especially one of the library being compared is few years older than others in the comparison group.

Let us walk with an example.

https://moiva.io/?npm=formik+react-final-form+react-hook-form

In the above example , Formik has more stars than react-hook-form for the fact Formik is being one year older than react-hook-form even though react-hook-form is more popular now than Formik.

I acknowledge the fact that 'Stars Monthly % growith' and 'NPM Down load monthly % growth' clearly demonstrate popularity of react-hook-form over Formik. This is very good information to pinpoint current popular library even if it is relatively new library.

I am wondering adding another ROW under the group 'Polularity' may be useful as described below.

                                   React-hook-form                 Formik
--------------------------------------------------------------
Used By :  
  user github repos       105K                                149K 
   packages                    1176                                2244 
-----------------------------------------------------------

I started this OPEN issues with the hope that 'React-hook-form' will have more of 'User By:' metric values of 'user github repos & package' , but it turns out Formik has more. I am wondering if we take last ONE YEAR of 'User By:' Rect-hook-form will have more than Formik . I know this make it complicated.

'Stars Monthly % growith' and 'NPM Down load monthly % growth' clearly demonstrating the CURRENT Popularity of 'React-hook-form' over 'Formik'

I am not specifically trying to promote 'React-hook-form' , I thought giving specific example is easy to explain my ideas.

https://github.com/react-hook-form/react-hook-form/network/dependents?package_id=UGFja2FnZS0zNjYyMTg5NTQ%3D https://github.com/formium/formik/network/dependents?package_id=UGFja2FnZS0xODcxOTIxMA%3D%3D

aantipov commented 2 years ago

Thanks for the idea! Yes, I think the "used by" can be a valuable metric to add to "Popularity". Not sure if it's possible to get the rate for it. But the bare total number would already provide a value. I will look into it.

markerikson commented 2 years ago

I'm actually writing a blog post on some ways to measure and compare different packages, and "Dependents" is one of the metrics I have used myself just looking at repos manually. Unfortunately it doesn't look like that info is included in the Github API, but here's an SO answer that shows how to scrape the info from the website:

https://stackoverflow.com/questions/58734176/how-to-use-github-api-to-get-a-repositorys-dependents-information-in-github

Would be neat to see this added to Moiva!

aantipov commented 2 years ago

Hi @markerikson Thanks for the suggestion I do not actively maintain the project anymore, so no promise here.

markerikson commented 2 years ago

Awww, that's a shame - it's a neat tool!