venthur / blag

blag is a blog-aware, static site generator -- it uses Markdown and is written in Python.
https://blag.readthedocs.io
MIT License
61 stars 6 forks source link

XMPP: Post to PubSub nodes #212

Open sjehuda opened 3 months ago

sjehuda commented 3 months ago

Greetings!

In XMPP, using PubSub(1) (XEP-0060), it is possible to store posts as Atom Syndication(2) entries into XMPP(3).

There are several XMPP extensions that apply it, namely XEP-0227 (4) and XEP-0472 (5) which make node xmpp:microblog:0 as a common choice to manage news for client accounts (e.g. blog@website.net), yet a component account (e.g. pubsub.website.net) may use all of its nodes for this purpose.

pubsub.website.net/
|
|-- updates/
    |-- Sombre
     `-- Varied
|-- releases/
 `-- events/
pubsub service/
|
|-- node/
    |-- item
     `-- item
|-- node/
 `-- node/

I have made a script that realizes viewing PubSub node items as Atom XML feeds over HTTP.

  1. XEP-0060: Publish-Subscribe
  2. RFC 4287: The Atom Syndication Format
  3. Atom Over XMPP
  4. XEP-0277: Microblogging over XMPP
  5. XEP-0472: Pubsub Social Feed
  6. PubSub Over HTTP