node package manager


Create your Twitter stream (based on keywords) in a declarative way, for more simplicity. It uses statuses/filter Twitter endpoint.


It lets you to create a keyword based Twitter stream.

Pros of using tweet_stream:

  1. integration with nodejs streams: you can create a twitter stream and pipe it to an other nodejs stream that makes some computations on each tweet (check the example)

  2. it enriches each tweet with the specific keyword it was extracted by. In this way you can easily aggregate multiple streams, avoiding to reach the Twitter api limit for stream api

npm install tweet_stream

var TwStream=require('tweet_stream'), 
var t=new TwStream({
    keywords: ['obama','election']
}).pipe(through2.obj(function(tweet, encoding, done) {
    console.log('t', tweet.text);