ipfs / in-web-browsers

Tracking the endeavor towards getting web browsers to natively support IPFS and content-addressing
https://docs.ipfs.tech/how-to/address-ipfs-on-web/
MIT License
349 stars 29 forks source link

Feature request: Access for client side javascript apps by Permissions API #188

Open jurjendevries opened 2 years ago

jurjendevries commented 2 years ago

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.

lidel commented 2 years ago

Dropping some quick thoughts:

The above are just quick thoughts, needs focused analysis.

SionoiS commented 2 years ago

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.