Johnathan Leppert
Johnathan Leppert

Reputation: 365

Node.js Twitter Client

Is there a twitter client for node.js (not the streaming API, the regular API)?

I already know about twitter-node but I'm looking for a more generic client that allows use of the Twitter REST API.

Anyone have any ideas?

Thanks,

Johnathan

Upvotes: 14

Views: 26944

Answers (4)

rsp
rsp

Reputation: 111268

2014 Update

A lot has changed since this question was asked over 3 years ago, but this question is still highly ranked on search engines so it's time to add some updates.

There are many different Node modules to use with the Twitter API and it is not easy to choose the right one for someone who doesn't know all of them. Below is a short description of all of the currently popular modules, together with their authors, latest version, how many stars on GitHub do they have (which is a good indication of their popularity among GitHub users), how many commits, how many contributors, where were they recommended etc. There are also some useful usage stats on npm.

Since it is about Twitter, I will link to the Twitter profiles of people that I reference. The data is up to date as of 2014-07-29 and isn't meant to be always up to date but rather to show a snapshot in time for various comparisons.

On the official dev.twitter.com/docs/twitter-libraries there are only two Node modules:

TwitterJSClient by @BoyCook

user-stream by @AivisSilins

  • (Version 0.0.7, 57★, 1 contributor, 26 commits - last on Mar 28, 2014) (npm stats)

The articles:

both recommend:

ntwitter by AvianFlu (no Twitter?) et al.

  • (Version 0.5.0, 765★, 31 contributors, 245 commits - last on Sep 14, 2012) (npm stats)

The article A Twitter bot in 20 minutes with Node.js posted on October 3rd, 2013 by @ebertx recommends:

twit by @tolga_tezel

  • (Version 1.1.18, 806★, 11 contributors, 296 commits - last on Jul 21, 2014) (npm stats)

The most popular Twitter modules according to nodejsmodules.org by @corruptmem are:

(listing only the relevant ones from the list - eg. skipping blueimp-bootstrap-image-gallery etc.)

everyauth by @briannoguchi

  • (Version 0.4.6, 2822★, 47 contributors, 760 commits - last on Apr 30, 2014) (npm stats)
  • (Note: it's a general-purpose authentication module)

ntwitter by AvianFlu (no Twitter?) et al.

  • (see above)

twitter-node by @technoweenie

  • (Version 0.1.1, 436★, 10 contributors, 65 commits - last on Apr 15, 2012) (npm stats)
  • (Note: Discontinued and recommends ntwitter)

node-twitter by @jdub

  • (forked from twitter-node - see above)
  • (on npm called just "twitter")
  • (Version 0.1.18, 313★, 9 contributors, 162 commits - last on Mar 10, 2012) (npm stats)

twitterlib by @rem

  • (Version 1.1.4, 289★, 3 contributors, 89 commits - last on Jun 21, 2013) (npm stats)

twit by @tolga_tezel

  • (see above)

This is what I have found to be a list of most popular Node modules to use the Twitter API. Please note that the most popular doesn't necessarily mean the best. All of them have different APIs, popularity, feature sets, authors, documentation, users. It's impossible to recommend only one module but this list should be a good starting point to find the one that is best suited for a particular set of needs.

Please comment if there are any mistakes or missing modules or other info that should be added here.

Upvotes: 14

Joseph Sheedy
Joseph Sheedy

Reputation: 6726

There is ntwitter, which was updated within the last couple of months. For me, the hardest part about getting a script up and running to post twitter messages was navigating the auth configuration at dev.twitter.com for the first time. ntwitter handled the rest!

Upvotes: 3

tez
tez

Reputation: 574

Check out my node module, it is probably what you're looking for. Has full twitter API support (REST & Streaming API): https://github.com/ttezel/twit

Upvotes: 19

Alfred
Alfred

Reputation: 61771

Search via http://search.npmjs.org:

Upvotes: 3

Related Questions