firetail icon indicating copy to clipboard operation
firetail copied to clipboard

HTTP REST to XMPP PubSub with node.js

trafficstars

FireTail

An HTTP REST to XMPP PubSub gateway for server-side JavaScript.

Dependencies

Use a fairly recent version of node.js and run:

git submodule init
git submodule update
./bootstrap.sh
node firetail.js

Usage

First, set your Superfeedr.com credentials:

export CREDS=superusr:secret

Attach to the ATOM firehose:

curl -u $CREDS http://localhost:8888/pubsub.xml

Also available in a Twitter-style JSON format interleaved with line lengths:

curl -u $CREDS http://localhost:8888/pubsub.json

Retrieve list of subscriptions (streams, supports Superfeedr pagination extension):

curl -u $CREDS http://localhost:8888/subscriptions

Subscribe to a (url-encoded) node:

curl -u $CREDS -X POST http://localhost:8888/subscriptions/http%3A%2F%2Ftwitter.com%2Fstatuses%2Fuser_timeline%2F61287780.rss

Unsubscribe from a node:

curl -u $CREDS -X DELETE http://localhost:8888/subscriptions/http%3A%2F%2Ftwitter.com%2Fstatuses%2Fuser_timeline%2F61287780.rss

TODO