One of the goals I am trying to reach is to have an free open source note application working fully local (client side javascript) and decentralized so there is no need of a central server. This to make the application and storage of the data from abundance and not dependent on 1 party.
I thought it would be possible, but we have some struggles.
When reading a file from IPFS we are using the CID in the script as an requested URL. But brave browser can’t read the URL according to the console output. So it seems we need to read it another way. Is there some documentation or example code about this?
What is see from that source is for example
, what we are using now. This is centralized URL (even CDN’s are a bit decentralized, but the domain it self is not). So is this ipfs-http-client build into Brave and don’t we need it from this CDN?
When you build decentralized website you have to include all the code, otherwise you run the risk of having links break.
Brave doesn’t have anything to help us here unfortunately, maybe some day.
You have to find a way to bundle everything you need in one. I’m not a JS expert but there must be a way to not use a CDN and have the js-http-client included.