node package manager

supreme-stream

Inspiration

Supreme Stream takes the best features of other node based Twitter streaming libraries and appropriates them into a fire must have jawn. Supreme Stream is meant to handle multiple Twitter developer credentials and callback to the same handler, while providing meta data on what it found. From there, you can do whatever you want with the data, see the example folder for an example of this.

Features

Usage

work in progress not really ready for consumption

SupremeStream takes 3 arguments, an array of account objects with info + credentials, an array of stream objects to track, and a callback to send data to.

Accounts

[
  {
    "fullname": "My Name",
    "username": "myaccount",
    "creds": {
      "consumer_key": "XXX",
      "consumer_secret": "XXX",
      "access_token_key": "XXX",
      "access_token_secret": "XXX"
    }
  },
  // ... 
]

Stream Objects

[
  {
    "label": "Kanye West Universe",
    "follow": [
      "169686021", // kanye 
      "25365536", // kim 
      // ... 
    ],
    "channels": {
      "kanye general": [
        "goat",
        "kanye west",
        // ... 
      ],
      "yeezys": [
        "yeezy boost",
        "yeezys",
        // ... 
      ]
    }
  },
  // ... 
]

Callback

Calls back with (err, data, cfg)

Todos

  • Time scheduling
  • Rate Limit / Load balancing across APIs