Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

HTTP REST to XMPP PubSub with node.js

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 deps
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 README.markdown
Octocat-spinner-32 bootstrap.sh
Octocat-spinner-32 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.