As a regular GitHub programmer, do you really know how to efficiently search for open source projects on GitHub? Are you simply typing keywords into the search box? Hey hey, this article will tell you what search skills or SAO operation bar.

Let’s take a look at what comes up when you type your keywords directly into the search box (vue project as an example) :

What? With more than 480,000 open source projects available, many people don’t know what to do next or which projects to practice on.

So here are a few ways to find items exactly.

Precise lookups for GitHub projects

1. Search the project name by keyword

Search method:

In :name Project name keywordCopy the code

The following images are examples of vUE projects:

This will find that the number of items is less than the simple keyword search, and the keywords will be bold, but the amount of search is still a little large.

2. Search for project description keywords

Search method:

In :description Description of the projectCopy the code

This will be more than half the number of items than when searching for keywords, but the amount of search is still very large.

3. Project README keyword search

Search method:

In :readme Readme keywordCopy the code

Found that the amount of search only increased, that there is a more accurate way to search?

Is to use the above three search keywords search + the following four restrictions to more accurate search.

4. Limit the number of stars or forks for the project

In general, the number of star or fork of a project can represent the popularity of the project, which can largely screen out some relatively water projects. Search method:

In :name or description or readme keyword stars:> number forks:> numberCopy the code

The stars:> numbers can be used alone or in combination with forks:> numbers. Again, the Sovue project:

If the number of stars is greater than 1000, the number of items found is much less. That’s a pretty powerful search technique.

5. Limit the update time of the project

It is important that we continue to maintain open source frameworks and libraries when deciding whether to use them. If it is outdated and no one to maintain the project, trampling is difficult to solve. Search method:

In :name or description or readme keyword stars:> digital Pushed :>2020-06-01Copy the code

Pushed :>2020-06-01 Items that are updated after June 1, 2020 plus limited number of stars:

Search results are more accurate. If you want to find warehouses created before or after the specified time, you can also use pushed instead of created.

6. Limit the language of the project

For example, if you want to find JavaScript libraries, in addition to clicking on the left side of the search result to select a language, you can also filter in the search. Search method:

In :name or description or readme keyword stars:> digital Pushed :>2020-06-01 Language :javascriptCopy the code

The search results are pretty accurate at this point.

7. Limit project authors or organizations

If you want to find a new function on GitHub, you can specify the GitHub name after the search, for example, we want to see whether the university of Ugithub (GitHub name: YYx990803) has submitted a new JS code, its search method:

user:yyx990803
Copy the code

If you want to find code for an organization, following the search criteria in article 6, you can do this:

in:name vue stars:>1000 pushed:>2020-06-01 language:javascript org:vuejs
Copy the code

The final number of searches froze at 16. Is this a fairly easy and accurate search to use?

conclusion

Here are some tips for efficiently searching open source projects on GitHub (3 types of keyword search + 4 restrictions) :

  • Project name keyword search:In :name Keyword of the project name
  • Project Description Keyword search:In :description Indicates the keyword of the project name
  • Project details Keyword search:In :readme Project name keyword
  • Limit the project’s popularity:Stars :> numbers or forks:> numbers
  • Limit project update time:Pushed: > time
  • Restrict the language of the project:Language: the language
  • Restricted project author or organization:User: author name or org: organization name

All of the above commands can be used in combination to make item searches more precise.

Try this search technique and see if you can find the open source project you are looking for.

Read more:

How do YOU get involved in the best open source projects around the world?

If you find this article helpful, you are welcomeMy GitHub blogLike and follow, thank you!