Skip to content

sughandj/real-stars

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

real-stars

Find out the real star count of JS repositories

Currently it is just a dump of my hacky scripts I wrote over the weekend. Use at your own risk.

Demo result generated on April 15, 2018.

Background

GitHub stars is great to find out how famous/used the library is, but it only scratches the surface. Libraries that are dependent a lot, yet is not renowned (starred) much by GitHub users are very likely to exist. This is an attempt to find out the real star count of repositories to find those libraries.

Methodology

Currently it only looks for language=JavaScript repositories. Here are the gist of the algorithm:

  1. Fetch as many JS repositories as possible from GitHub
  2. Fetch for package.json from those JS repositories
  3. Aggregate star count by treating sharing star count to dependencies and devDependencies

Problems faced

Todo (probably never)

  • Use created_at to fetch more repositories as mentioned above
  • Reverse lookup of repositories that was not in the inital fetching
  • Filter/Search on demo result
  • If the result becomes larger, shard the result.json for better UX

Side note

There are definitely better ways to approach this, but regardless I wanted to play around with GutHub API and simple data aggregation.

About

Find out the real star count of JS repositories.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.3%
  • JavaScript 47.7%