Code Monkey home page Code Monkey logo

gostars's Introduction

GoStars - Get the Attraction Gravity of a Go Package

gostars retuns the attraction graivity of a Go package in GitHub.

The aim of gostars is to provide as much information as possible to those who are struggling to decide which package to use, so that they can make an informed decision.

# Usage
gostars <package name> [...<package name>]
$ # Sample
$ gostars github.com/daviddengcn/go-colortext
- go-colortext
  1. Gravity:      583
  2. Package Name: github.com/daviddengcn/go-colortext
  3. URL:          https://github.com/daviddengcn/go-colortext
  4. Stars:        209
  5. Forks:        20
  6. Folllows:     9
  7. ImportedBy:   544
$ # Sample
$ gostars github.com/goccy/go-json github.com/json-iterator/go
- go-json
  1. Gravity:      1331
  2. Package Name: github.com/goccy/go-json
  3. URL:          https://github.com/goccy/go-json
  4. Stars:        1321
  5. Forks:        48
  6. Folllows:     17
  7. ImportedBy:   160
- go
  1. Gravity:      12470
  2. Package Name: github.com/json-iterator/go
  3. URL:          https://github.com/json-iterator/go
  4. Stars:        10426
  5. Forks:        850
  6. Folllows:     238
  7. ImportedBy:   6785

About "Gravity"

The element name "Gravity" represents the suction force of the Go package.

  • The current basic formula for measuring attractiveness:

    weight := math.Sqrt(
        (numStars * numStars) +
        (numFolows * numFolows) +
        (numForks * numForks) +
        (numImports * numImports),
    )

Install

# macOS/Linux (x86_64/AMD64/ARM64/M1)
brew install KEINOS/apps/gostars

License

ToDo

  • Add more elements to the formula to measure weight.
    • Add Go Report Card's score.
    • Add code coverage rate.
    • Add "Code frequency" or "Pulse".

gostars's People

Contributors

keinos avatar

Watchers

 avatar

gostars's Issues

"gravity" --> Euclidean distance

The below is easier to understand as "Euclidean distance" than "Gravity".

About "Gravity"

The element name "Gravity" represents the suction force of the Go package.

The current basic formula for measuring attractiveness:

weight := math.Sqrt(
   (numStars * numStars) +
   (numFolows * numFolows) +
   (numForks * numForks) +
   (numImports * numImports),
)

(From README.md @ e4baa1a)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.