Open jurjendevries opened 2 years ago
Dropping some quick thoughts:
window.ipfs
experiment, which we deprecated a while ago (https://github.com/ipfs/in-web-browsers/issues/172)
/api/v0/
is not one)ipfs://
and ipns://
addresses.ipfs://
URIs on https://
websites at the moment.
ipfs://
interaction on https://
websites – it could be done via Permissions APIThe above are just quick thoughts, needs focused analysis.
Chiming in to say that for my use case (social media) I would need; dag put & get, pubsub sub & pub, name resolve & publish, id, add and cat.
I see 2 path, first, a totally new standard for IPFS in browsers, which I don't think will happen, second, using the fetch API, which seams doable.
The permission API could be used to enable write access.
As developer of distributed javascript client side apps it is currently not possible to read and write to IPFS. This is of course a security feature, but without this it is hard to make a distributed web apps that doesn't relay on servers that have to do some work with nodejs or so. So a solution / feature request for this is to use the browsers Permissions API so that a user can give permission to read and write in at its local browser build in IPFS node.