Using GitHub Stargazers Distribution to Compare React, Angular and Vue
On GitHub, their stargazers are
On Stack Overflow, if we use keyword results to compare
The keyword search is not accurate because there are many cases, such as react, vue etc. But this simple comparison can give you some hint, the users of a framework may not be uniform in the world. Maybe the users of a framework like to use other forums, not Stack Overflow? Maybe the user distribution is country related/bias? Let’s start the Analytics
- Use GitHub API to fetch the stargazers of these frameworks.
- Use Google Maps Geocoding API to get the exact country information from the location field of each stargazer which is arbitrarily written by users.
- Use Plotly to draw bar charts to compare.
The related analysis source code, data and detailed steps are on GitHub
Comparison of data and charts
Some GitHub Stargazers do not fill their locations. The data is filtered and only the part of the data which includes the location field is used. The filtered data is
Since some people’s location can not be identified by Google API, e.g. location: ∆∆∆, so the respective number of invalid location are 550, 545, 197.
React: China users (12033: 20.2%) < US users (14193, 23.8%)
Vue: US users (8263, 16%)< China users (15836: 30.7%)
Angular: China users (1776, 8.1%) < US users (4049, 18.5%)
China users contribute a large percentage in React and Vue. Also, they like Vue more. If network resource is under your consideration and you do not understand Simplified Chinese (their forums should have a lot of resource), choose React or Angular.
There is a good article and you can take a look.