~ghost08/photon

2 2

XMPP (RFC 6120), PubSub (XEP-0060) and Atom Over XMPP (RFC 4287)

Schimon Jehudah <sch@fedora.email>
Details
Message ID
<20240425100902.779d9cd7@workstation.localdomain>
DKIM signature
pass
Download raw message
Greetings!

My name is Schimon and I am the creator of project Newspaper[1] (photon
is listed in the software selction of Newspaper).

I am a champion of Syndication and XMPP.

If you are not famiiliar with XMPP; XMPP (previously Jabber) is a
messaging system with open standards. XMPP is extensible via XEP.

I will discuss about XEP-0060: Publish-Subscribe.

Almost a couple of decades ago, a discussion[2] arose about
incorporating Atom (RFC 4287) with XMPP PubSub, which is really easy
because both are XML data.

One of the major benefits of utilizing PubSub is native Push
Notifications (yes, that technique was much before HTML5) which do not
require HTTP pulling.

That would be a great feature to have photon to utilize XMPP PubSub
natively!

See a proof of concept[3] I have made to parse PubSub nodes as Atom
Syndication Format.

[1]: https://greasyfork.org/en/scripts/465932-newspaper-native-web-feed-reader
[2]: https://datatracker.ietf.org/meeting/66/materials/slides-66-atompub-1.pdf
[3]: https://codeberg.org/poezio/slixmpp/issues/3526

Cheers,
Schimon
Details
Message ID
<9f65a73d-56d3-4a7c-8969-103b6bc5cfd3@mgyar.me>
In-Reply-To
<20240425100902.779d9cd7@workstation.localdomain> (view parent)
DKIM signature
missing
Download raw message
Hi Schimon,

wow that interesting, didn't know that Atom can be distributed over XMPP.

I love XMPP, have my personal server (because I don't trust 
google/ms/facebook/...) and recently I've started to use mov.im, which uses PubSub.

I'll go trough your links, but how does this work? Who is publishing atom trough 
xmpp and how it could be integrated to photon?
Schimon Jehudah <sch@fedora.email>
Details
Message ID
<20241209191851.05dde969@workstation.localdomain>
In-Reply-To
<9f65a73d-56d3-4a7c-8969-103b6bc5cfd3@mgyar.me> (view parent)
DKIM signature
pass
Download raw message
Mr. Vladimir Magyar, I beg your pardon.

It appears that I did not receive your message.

Please. Add my email address, if you did not.

> I love XMPP, have my personal server (because I don't trust
> fampoodle/...) and recently I've started to use mov.im, which
> uses PubSub.

Great! Movim publishing system is based upon Atom Over XMPP!

> I'll go trough your links, but how does this work?

> Who is publishing atom trough xmpp?

Movim utilizes Atom Over XMPP.

The specification is XEP-0472: Pubsub Social Feed
Link: https://xmpp.org/extensions/xep-0472.html

Libervia also utilizes Atom Over XMPP.

The specification is XEP-0277: Journaling over XMPP
https://xmpp.org/extensions/xep-0277.html

Libervia and Movim work in a similar manner (that is, both publish to
the same node name).

Libervia intends to port this functionality as a Forum interface (this
is still a work in progress).

https://libervia.org/__b/doc/backend/libervia-cli/forums.html

> And how it could be integrated to photon?

Concerning to integration.

I do not know. What possibilities do I have?

I have made a Python script for Dillo which receives (from stdin) an
XMPP Query URI, parses the data of the pubsub "Items" of the given "Node
Name" and returns (to stdout) the content as HTML.

https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/JF6NB5UXXYB6D7GYCAD5FDZ6WTLFQJBO/

I can modify that script to return an Atom Syndication Format which can
be read by photon.

Note: This script can be utilized via the "filter" interface which is
      provided by Liferea News Reader.

Further more, I have made an HTTP gateway (Rivista XJP) which returns
XMPP PubSub nodes as Atom Syndication Format

Demonstration  : https://video.xmpp-it.net/w/vNqcMooy3pqRAZ8Yb8grr1
Project source : https://git.xmpp-it.net/sch/Rivista

Kind regards,
Schimon
Reply to thread Export thread (mbox)