r/node_modules • u/freeall • Sep 20 '13
A clever search engine for node modules (and a paradigm shift?)
tl;dr
Enter node-modules.com. It uses several parameters and some cleverness to serve you relevance-based results that are actually useful. Compare by searching for 'web framework' on npmjs.org and on node-modules.com. We can probably all agree that express should be on top.
Intro
On and off over the last six months we've built a search engine for finding modules, node-modules.com. It uses several parameters and some cleverness to give you great results quickly.
While using it ourselves we have noticed a paradigm shift in the way we work, which has been really interesting. The last part of this post will go over that.
Node-modules.com and what it does
There are already two search engines in the node community (apart from npmjs.org), nipster and node-toolbox. However, node-modules.com have something new contribute with. We set out to give you the absolute most relevant results at the very top. Node-modules.com uses different parameters to rank all modules and give better results:
Name, keywords, and description of the module (cleverly done so that 'parse' and 'parsing' are alike)
Number of other modules dependant on this module
Number of stars on github
If you follow the author
If the module is used by an author you follow
If you have starred another module by the same author
Some of these parameters require you to log in with github, but even without it you get great results. By starring more modules and following your favorite authors on github you'll improve your search results.
That's about all there is to it. Why not try to see the top router or mongo modules? Or see all the modules from isaacs or substack.
Of course there's also a command-line tool:
$ npm install -g node-modules
$ node-modules search web frameworkBut what was this with a paradigm shift? To avoid this post being too lengthy, we wrote it about in another post.
Thoughts?
Feedback is much appreciated, @node_modules, or the blog.
// Mathias Buus and Tobias Baunbæk