Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support JF2 #109

Open
snarfed opened this issue Jun 27, 2017 · 5 comments
Open

support JF2 #109

snarfed opened this issue Jun 27, 2017 · 5 comments

Comments

@snarfed
Copy link
Owner

snarfed commented Jun 27, 2017

to oversimplify, it hoists mf2 properties out of the properties field and makes most of them singly-valued. should be straightforward.

spec: https://www.w3.org/TR/jf2/#jf2feed , https://jf2.spec.indieweb.org/

more links:

JF2 Feed: http://dissolve.github.io/jf2/#jf2feed , MIME type application/jf2feed+json

cc @dissolve!

@snarfed
Copy link
Owner Author

snarfed commented Jul 25, 2017

dupe of #50...but closing that and tracking here instead since there are newer links here.

@snarfed
Copy link
Owner Author

snarfed commented Dec 8, 2021

Looks like mf2util's interpret_*() functions convert to JF2? https://github.com/kylewm/mf2util#quick-start

cc @capjamesg

@capjamesg
Copy link

Good to know! jf2 support would be useful for Microsub servers who need to send jf2 objects to clients. jf2 is thus an efficient way to make sure all data from various different feed types is stored in a standard way in a Microsub back-end.

As far as I can see, mf2util converts mf2 objects to jf2. That's a handy function to have! Although Microsub servers may optionally wish to support RSS, Atom, and JSON Feed, which looks to be out of scope for mf2util.

@capjamesg
Copy link

I have implemented RSS / Atom / JSON Feed to jf2 conversion for my Microsub server: https://github.com/capjamesg/microsub/tree/main/feeds

If this logic would be helpful to granary, I can look at the library and see if I can make a pull request.

@snarfed
Copy link
Owner Author

snarfed commented Dec 9, 2021

Woo, thank you for the offer!

Sadly, granary uses AS1 as its common backplane data format, so to do this properly, we'd need either AS1 <=> jf2 or maybe mf2 <=> jf2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants