Question from a noob #592
Replies: 1 comment 2 replies
-
That's a tricky one. When Helia is running in the browser, it's very constrained in terms of network transports so even though you pin it, it's unlikely to be retrievable from public gateways.
Correct
To be honest, we need to add more warnings about the viability of this approach. The reality is that providing blocks from browsers isn't really functional today. Signaling is a WebRTC specific concept that is mostly relevant for browser-to-browser connectivity. So how could providing from the browser work?But the high level idea of of how browser providing would work is:
There are multiple places where this can go wrong:
So in summary, there's more work that needs to be done for browser providing to function, and my intuition is that this will never work perfectly. Ok, so what's the alternativeProviding data is something that a long running server is much better fit to do. Ideally, you handle merkelisation (creating the DAG with a CID) in the browser, and then upload a CAR file to a pinning service or a long running IPFS node that's better capable of providing to the network. |
Beta Was this translation helpful? Give feedback.
-
I've been working on a pretty simple web extension and have a few questions, feel free to correct me where I am wrong or have a misconception about something.
One of the major things I need to do here is run an ipfs node in the browser (for context)
I appreciate any feedback, this project I'm making is mostly for getting my hands dirty with js and ipfs so please please correct me where you see fit.
Beta Was this translation helpful? Give feedback.
All reactions