Extracted from https://github.com/ipfs-shipyard/ipfs-companion/issues/570#issuecomment-421811923
Intercept URLs from public CDNs like unpkg.com and load them from IPFS.
Two ways:
/ipfs/<cid>/**/*.min.js Will this conflict with Decentraleyes or is the plan to deprecate Decentraleyes? If it is, will there be automagic pinning of the newest versions of the libraries?
(Possibly related https://github.com/ipfs-shipyard/ipfs-companion/issues/682)
Good question. Decentraleyes is limited by the size of assets they can bundle with extension before it gets too big (resources/ directory).
Companion could improve on that by bundling only a small mapping file (but with much better coverage) and fetching the data from IPFS + pin/preload the most popular ones.
Decentraleyes fork using IPFS:
https://www.reddit.com//r/ipfs/comments/hu7bij/a_fork_of_a_fork_of_the_web_extension/
GitHub repo link to the Decentraleyes fork: https://github.com/IPFS-Forced-Adoption/IPFS-CDN
I will be following it with interest
Most helpful comment
Good question. Decentraleyes is limited by the size of assets they can bundle with extension before it gets too big (
resources/directory).Companion could improve on that by bundling only a small mapping file (but with much better coverage) and fetching the data from IPFS + pin/preload the most popular ones.