RangerMauve / js-ipfs-fetch

Use the same `fetch()` API browsers provide for HTTP, but for IPFS
https://youtu.be/kI9Issf3MNc?t=1606
MIT License
65 stars 8 forks source link

Browser-first implementation possible? #1

Closed ikreymer closed 4 years ago

ikreymer commented 4 years ago

This is sort of a high level question about the architecture, but it looks like currently the architecture is designed to work in node first, and not the browser. I think the main benefit of fetch() compatibility is that it should work exactly like the browser fetch API (since Node does not have a native fetch).

Is it possible to make this implementation work exactly like the browser fetch?

RangerMauve commented 4 years ago

I got it working with browserify. 😅

RangerMauve commented 4 years ago

Should be working now in 1.3.0, feel free to reopen if there are more issues.