npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

noflo-twitter

v0.0.1

Published

Twitter components for the NoFlo flow-based programming environment

Readme

noflo-twitter

Twitter components for the NoFlo Flow Based Programming system in NodeJS. Most of the Twitter API is accessed via the REST API as documented at https://dev.twitter.com/docs/api/1.1. This package provides access to the REST API as well as to the public filtered stream and a user's own stream.

Getting Access to Twitter

To run this software you'll need your own twitter account. When you have an account set up, you must create an app for this software to be able to use your account. Log into https://dev.twitter.com with your twitter credentials then click on the "My Applications" link in the menu under your profile in the top right of the page. Be sure to set the application to read-write if you want to be able to post tweets from NoFlo, otherwise you will only be able to read from twitter.

Once you have created the application on dev.twitter.com you will need to copy 4 pieces of information from that web site into your NoFlo messages in order to authenticate your application. These OAuth authentication strings are:

  1. Access token
  2. Access token secret
  3. Consumer key
  4. Consumer secret

These 4 strings authenticate NoFlo to Twitter on your behalf and allow it to read from or to post to your twitter account without knowing your password. You should protect this information and not publish it anywhere on the internet (like submitting it to github). Use it only for application configuration.

Using the REST API

Most of twitter is accessed via the REST API documented here. You can perform all of the actions documented there with the twitter/RestApi component published in this package. This includes actions like polling for tweets, sending new tweets or reading tweets from a list. You can see 2 examples in the examples directory. Edit the examples/*.json files to use your 4 OAuth authentication strings and then run one of the examples like this:

cd examples
./run_fbp.sh send_new_tweet.fbp

./run_fbp.sh read_list_tweets.fbp

These example graphs read their equivalent JSON file and send it to the twitter/RestApi component, logging the output from the RestApi to the console. You'll have to edit the list name and your screen name in the read_list_tweets.json file in order for it to work.

Using the Public or User Streaming API

While the REST API allows you to read tweets by polling from time to time, you can also stream public tweets or a user's timeline using the twitter/PublicFilterStream and twitter/UserStream components. The public stream parameters are documented here and the user stream parameters are documented here. Examples for how to use these components is included in the examples directory.