LoginSignup
28
26

More than 5 years have passed since last update.

npm moduleを検索するサイトまとめ

Last updated at Posted at 2016-06-21
1 / 15

npm module の検索するのに使っているサイト

※ぶっちゃけただ qiita slide mode を使ってみたかっただけである


npmjs.com


npmjs.com

  • 言わずと知れた公式サイト
  • 公式なのでユーザーは一番多い(と思う)
  • 自分は割りと npm star をよく見る

image


npmjs.com

  • 検索は多分 couchdb
  • package.json に書かれている description, keywords, name などがindex されているっぽい
  • 検索時の sort 順は star 数とか検索の一致度合いで sort されている...?

npmsearch.com


npmsearch.com

  • elasticsearch に食わせてそこから検索

image


npmsearch.com

  • rating という独特の重み付けがあり、それが dependent 数、 ユーザー数、リリース頻度、テスト数、readme の充実度からなっている
  • クエリーが elasticsearch のそれをそのまま使えて検索式が柔軟
  • 公式は検索するのにpackage.json の description と keywords しか拾ってくれないが、こっちは README に書かれてる言葉まで拾ってくれる
curl "http://npmsearch.com/query?q=dom&fields=name"

npms.io


npms.io

  • npmsearch.com と同様、 elasticsearch を食わせる形式
  • 検索式はただの and だけっぽい(npmsearch.com ほどの充実した検索式はない)

image


npms.io

rating 機能がついてて下記の基準で計算される

  • popularity (npm star, github star の数など)
  • quality (test数とcoverage)
  • maintenance (リリース頻度とかcommit頻度、open/close issue比率)
  • personality (コミュニティの中での知名度(github follow数とか?))

※ personality については深く言及するのを避けててそれもまた面白い


node-modules.com


node-modules.com

  • mongodb に indexing している形式

image


node-modules.com

  • personalized 機能がある
  • githubやnpmでstarを付けていると優先的にヒットする

まとめ

  • npmjs.com 公式で安心
  • npmsearch.com queryに応用が効く
  • npms.io stats の付け方が面白い(特にpersonality)
  • node-modules.com (personalized 機能がある)
28
26
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
26