Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/pkgsite: provide options for sorting search results by number of imports and stars on GitHub #36952
As requested on https://blog.golang.org/pkg.go.dev-2020: I have found godoc.org to be the best way to search for quality Go modules, significantly because it defaults to sorting by the number of imports (possibly informed by the number of stars).
Observe, for instance, that on godoc.org, Brad Fitz's smtpd server comes up early, whereas on pkg.go.dev the front page has several packages of much less importance, and smtpd shows up on page 17 after a lot of inner modules and minor forks and larger projects that just happen to have an "smtp" package. Prioritizing hits at the "top level" of the package is probably a good idea, too; github.com/blah/smtpd is much more likely to be what I'm looking for than github.com/blah/project/go/inner1/inner2/smtp.
I also routinely suggest this to newcomers as a way of locating modules for Go.
As suggested by @ALTree, I'm moving #37430 here as the two issues are quite related. The main difference is that -- rather than just changing the default sort order -- #37430 requests the feature to allow users to select search order, including ascending and descending.
Provide options for sorting search results by number of imports and stars on GitHub
From #37430 (comment):
This issue is a feature request for
For an example of this functionality, see the GitHub search results:
The search option categories of
Note, GitHub stars was a useful metric detailed by