json-ld / json-ld.org

JSON for Linked Data's documentation and playground site
https://json-ld.org/
Other
853 stars 152 forks source link

Update jsonld js and add safe mode support. #790

Closed davidlehn closed 1 year ago

davidlehn commented 1 year ago
gkellogg commented 1 year ago

It would be useful to have a reference and note to motivate the purpose of “safe mode”.

davidlehn commented 1 year ago

It would be useful to have a reference and note to motivate the purpose of “safe mode”.

Yes, this is happening out of the intended order due to limited time. This was one of the initial RFCs I was going to write up. I imagine there will be feedback and this first implementation will be updated as needed.

davidlehn commented 1 year ago

We should try to get the signature stuff working again with ed25519-signature-2020 as quickly as we can.

Arguably, the signature code should be on some other playground. It's not strictly a json-ld thing. In any case, the whole playground should be rewritten with modern tools at some point, and that's not a "quick" project. And deployment would no longer be simple static files. The only "quick" solution I've considered is to just abuse npm and npm cdns with a site specific playground build packages for the whole thing or just parts like jsigs support.

gkellogg commented 1 year ago

We should try to get the signature stuff working again with ed25519-signature-2020 as quickly as we can.

Arguably, the signature code should be on some other playground.

I agree, I think the JSON-LD playground should remain focused on JSON-LD. Things that make use of the technology, such as signatures, probably should go somewhere else. If they can be hosted off of GitHub pages directly, that might make it easier to spin-up a playground in other repos.

It's not strictly a json-ld thing. In any case, the whole playground should be rewritten with modern tools at some point, and that's not a "quick" project. And deployment would no longer be simple static files. ...

The YAML-LD group has been asking for a YAML-LD playground; a complicating factor is the limitations of the current UI (specifying YAML-LD vs JSON-LD inout or output, and perhaps allowing for N-Quads/TriG input as well as output). An updated playground architecture that allowed for changes like this more easily would be useful.

dlongley commented 1 year ago

We should add a link to https://playground.chapi.io/ in lieu of the signature tab. That will take people to another playground that is focused on signatures involving other standards work (signing / issuing JSON-LD-based VCs).

dlongley commented 1 year ago

A "Other Related Playgrounds" section could link to the CHAPI playground and a (future) YAML-LD playground.