Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Node.js PubSubHubbub client/server implementation

branch: master

license

latest commit dfc2cc7dbf
risk danger olson authored November 04, 2013
Octocat-spinner-32 examples add some basic client examples October 23, 2010
Octocat-spinner-32 src docs! October 05, 2010
Octocat-spinner-32 test update the readme October 05, 2010
Octocat-spinner-32 vendor vendor scoped-http-client September 25, 2010
Octocat-spinner-32 LICENSE license November 04, 2013
Octocat-spinner-32 README.md add todo item October 05, 2010
Octocat-spinner-32 package.json weird October 06, 2010
README.md

Nub Nub

Nub Nub is a Node.js implementation of a PubSubHubbub client and server. At the core, it's meant to be web server and data store agnostic. Specifics of feed fetching are out of scope.

This library attempts to be compliant to the PubSubHubbub spec.

Handling a Subscribe or Unsubscribe request

See section 6.1 of the spec.

var nub = require('nubnub');
var sub = nub.subscribe(POST_DATA);
sub.callback      // some URL

Verifying a Subscription

See section 6.2 of the spec.

// verify the subscription
sub.check_verification(function(err, resp) {

})

Pushing data to subscribers

See section 7.3 of the spec.

// publish data 
sub.publish(items, {format: "atom"}, function(err, resp) {

})

TODO

  • Example server implementations with various backends? (redis, mysql, nstore)
  • Implementation of Content Notification.
  • Logic for scanning feeds.
  • Logic for retrying failed verification or failed pushes as necessary.

Development

Run this in the main directory to compile coffeescript to javascript as you go:

coffee -wc -o lib --no-wrap src/**/*.coffee
Something went wrong with that request. Please try again.