ipfs-examples / js-ipfs-examples

Collection of js-ipfs examples
251 stars 158 forks source link

Add ./examples/browser-service-worker-gateways-with-car #283

Open lidel opened 2 years ago

lidel commented 2 years ago

We have ./examples/browser-service-worker which runs in-memory js-ipfs.

That is fine setup, but comes with limitations, like WebRTC not working in Service Worker, which introduces the need for running js-ipfs outside of Service Worker, and introduces overhead of postMessage serialization.

We should add alternative example at ./examples/browser-service-worker-gateways-with-car which:

lidel commented 2 years ago

cc @guanzo – potential task for Launchpad