Nubnub
Node.js PubSubHubbub client/server implementation
Install / Use
/learn @technoweenie/NubnubREADME
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
Related Skills
node-connect
348.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
