Git Product home page Git Product logo

Comments (8)

aaronpk avatar aaronpk commented on August 16, 2024 2

What I would really like to see is a generic link rel discovery method for JSON formats in general. This would be something JSONFeed could adopt, and also something that WebSub could recommend as the discovery format for JSON documents. At least this way other JSON formats would have a standard to point to as well.

The Microformats 2 JSON format has been around for quite a long time and fits this bill. Basically it defines a dictionary as a top-level property of the JSON document that looks like this:

{
  ...your other json here...
  "rels": {
    "stylesheet": [
      "/styles.css"
    ],
    "hub": [
      "https://switchboard.p3k.io/"
    ]
  }

Any HTML link rels in the document are added to that part of the JSON document during parsing. This would certainly work as a generic JSON link rel format and could be written up as its own spec that JSONFeed and WebSub could support.

from jsonfeed.

voxpelli avatar voxpelli commented on August 16, 2024 1

Considering that w3c/websub#107 is now closed with no changes made to that spec, should the conclusion be that JSON Feed won't be WebSub compatible but rather just WebSub inspired?

Because either JSON Feed or WebSub has to change for the two to be compliant as the current wording of the two are not.

Sorry for being pushy about this, it's just that it would be great if we could ensure that the standards that emerge on the independent web stay as compatible and as compliant as possible when it comes to shared mechanisms πŸ˜•

from jsonfeed.

manton avatar manton commented on August 16, 2024

Thanks @voxpelli. I've also filed an issue on WebSub to relax the wording of how hubs are discovered: w3c/websub#107. Importantly, that change is small and wouldn't rule out extending WebSub to know about JSON documents in the future, which is a larger discussion.

from jsonfeed.

julien51 avatar julien51 commented on August 16, 2024

There is no standardized way to include link relations within JSON as there is within XML and HTML.

I think this is the view issue here. As much as I wish we should just add a discovery mechanism surgically for jsonfeed, what happens when socialfeed is stated? Etc...

from jsonfeed.

scripting avatar scripting commented on August 16, 2024

from jsonfeed.

voxpelli avatar voxpelli commented on August 16, 2024

@scripting WebSub is what was formerly known as Pubsubhubbub – so it's the format independent mechanism for delivering content in realtime

from jsonfeed.

scripting avatar scripting commented on August 16, 2024

from jsonfeed.

manton avatar manton commented on August 16, 2024

I think we can close this. There was a good discussion in the WebSub repository: w3c/websub#107

from jsonfeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.