webrecorder/web-replay-gen

Test & document IPFS support

SuaYoo opened this issue · 6 comments

Confirm that IPFS wacz files work

ReplayWeb.page should be able to handle ipfs://... URLs. It should 'do the best thing' depending on if hosted on an IPFS gateway already, or over http.

Mostly requires adding documentation and examples.

We should use auto-js-ipfs here since it'll have features like detecting when it's on a gateway.

Is this still relevant since #25?

I think should just update the docs to mention that ipfs:// URLs are supported.

Should I update the docs to mention this, or should we wait for the new UCAN stuff to land and for folks to bring their own storage backends?

The docs say IPFS is supported, but it has no example IPFS urls. This is important, because I'm trying it on https://replayweb.page/ and it doesn't work.

Here is what I'm trying: ipfs://QmYu7X8pLEVChu158XRf7vAsTXscPfzPfbYnnT8CC3v35K, but it fails validation. According to the html input pattern expression, it must end with a file extension (((file|http|https|ipfs|s3)://.*.(warc|warc.gz|zip|wacz|har|wbn|json)([?#].*)?)|(googledrive://.+)|(ssb://.+))