You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
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:
handles /ipfs/* and /ipns/*
does not run js-ipfs in-memory
has a list of gateways and uses them (at random or as fallback list) for fetching requested files as CAR, verifies CARs, and returns re-assembled data from Service Worker, without the need of any cross-process postMessage present in ./examples/browser-service-worker
The text was updated successfully, but these errors were encountered:
After we have this example, we could chat creating real SDK/lib that does both – CAR from gateway pool, and if all gateways are down, fallback to spawning in-memory js-ipfs.
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:/ipfs/*
and/ipns/*
./examples/browser-service-worker
The text was updated successfully, but these errors were encountered: