GitHubでは人気のあるリポジトリをGitHub Trending repositoriesとして紹介しています。世界中の開発者が注目しているだけあって、流行の技術であったり、逆にずっと定番となって使われ続けているソフトウェアも出てきたりします。 今回紹介するgit-trendはGitHub Trending repositoriesとリストアップしてくれるCLIツールです。わざわざWebページを開かずに手軽にチェックできるようになります。

git-trendの使い方

git-trendのインストールはRubygemsで簡単にできます。

$ gem install git-trend

後はコマンドを叩くだけです。こんな感じで一覧が返ってきます。–no-descriptionとつければ詳細な説明がなく、リポジトリ名/言語/スター数だけが見られるようになります。

$ git trend
No. Name                                     Lang          Star Description                                                                                          
--- ---------------------------------------- ----------- ------ -----------------------------------------------------------------------------------------------------
  1 dthree/cash                              JavaScript     827 Cross-platform Linux without the suck                                                                
  2 antelle/keeweb                           JavaScript     665 KeePass web app (unofficial)                                                                         
  :
 25 callmecavs/bricks.js                     JavaScript      96 A blazing fast masonry layout generator for fixed width elements.                                    

さらに言語を指定することもできます。

$ git trend -l ruby
No. Name                                     Lang         Star Description                                                                                           
--- ---------------------------------------- ---------- ------ ------------------------------------------------------------------------------------------------------
  1 rails/rails                              Ruby           29 Ruby on Rails                                                                                         
  2 Homebrew/homebrew                        Ruby           18 The missing package manager for OS X.                                                                 
  :
 25 bbatsov/rubocop                          Ruby            6 A Ruby static code analyzer, based on the community Ruby style guide.                                 

ヘルプは次のようになります。

$ git trend help
Commands:
  git-trend help [COMMAND]  # Describe available commands or one specific command
  git-trend languages       # Show selectable languages
  git-trend list            # (DEFAULT COMMAND) List Trending repository on github [-l, -s, -d]
  git-trend version         # show version

GitHubのトレンドを知ると、技術の推移が分かるようになります。単に流行り物だけではないので、使えるライブラリやフレームワークを調べる上でも役立つのではないでしょうか。

git-trendはRuby製、MIT Licenseのオープンソース・ソフトウェアです。

rochefort/git-trend: fetch Trending repository on github