Using GitHub Stargazers Distribution to Compare React, Angular and Vue

Grimmer
Grimmer
May 28, 2018 · 2 min read

In the recent years, the most popular JavaScript Front-end frameworks should be 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

Analytics steps:

  1. Use GitHub API to fetch the stargazers of these frameworks.
  2. Use Google Maps Geocoding API to get the exact country information from the location field of each stargazer which is arbitrarily written by users.
  3. 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.

Final Chart

Countries

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%)

Conclusion

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.

Other consideration/comparison

There is a good article and you can take a look.

https://medium.com/unicorn-supplies/angular-vs-react-vs-vue-a-2017-comparison-c5c52d620176

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade