Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
HTTP REST to XMPP PubSub with node.js
JavaScript Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
deps
.gitmodules
README.markdown
bootstrap.sh
firetail.js

README.markdown

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

Something went wrong with that request. Please try again.