ipfs-examples / helia-examples

How to do most anything with your Helia node
https://verified-fetch.vercel.app
64 stars 58 forks source link

feat(verified-fetch): improve UX #286

Closed SgtPooki closed 5 months ago

SgtPooki commented 5 months ago

Slightly modifies the code from https://github.com/ipfs-examples/helia-examples/pull/285 to have better UX.

Also implements the previously unimplemented onFetchImage and onFetchFile functions.

Better error messaging and loading messages.

Adds fetch-auto functionality to attempt to automatically determine content-type for proper rendering.

https://github.com/ipfs-examples/helia-examples/assets/1173416/68ffe8c8-c66d-42d5-98b2-af6209f619a7