Standards-compliant open source WebSub Hub
websubhub.com
websubhub.com
A couple of days ago[0] I discovered WebSub and thought it was a very neat technology. After hearing some complaints about the existing providers (one incumbent and one legacy) I decided to make one with Elixir[1]! It's a pretty invisible service, but now many Wordpress users are using it to publish out updates to their blog, which is very neat. Let me know if you have any questions!
[0] - https://news.ycombinator.com/item?id=29868055 [1] - https://github.com/clone1018/WebSubHub
If I understood correctly, one has to publish their topic so that others can sub through this hub ? Or can I use this hub with any publisher ?
Edit : after thinkin about it more, it could be that you publish for every change. The hub then validates the topic URL has changed to send an update.
Ably has a pretty good overview: https://ably.com/topic/websub (warning: sales article)
For the publisher, it's as easy as including
Link: <https://hub.example.com/>; rel="hub"
or
<link rel="hub" href="https://hub.example.com/">
in the header of the content.Well, you’ve got to poke the hub as well when changes occur, which makes it moderately incompatible with static site generation, requiring some kind of manual action after you publish, which could be comparatively straightforward if you use a site generator that allows you to define programmable post-publish hooks, or could be difficult if it doesn’t and you publish to something that doesn’t guarantee instant updates.