Open
Description
This is to follow up from our discussions on Discord and to keep stuff in one place.
It'd be nice to be able to load resources in Exokit from different protocols, such as dat://.
Currently there's no single place that resources are loaded that would handle this use case. With that in mind, here's what needs to be done:
- Rework window-xhr to use fetch to consolidate resource loading
- Add intercepts to window-fetch for custom protocols
- Implement dat-fetch which taks a DatArchive instance and exposes fetch. Based on dat-fetch
- Modify the
fetch
at the top level of exokit frames, and the one used for synchronous script loading to make use of the dat-enhanced fetch. Use node-dat-archive to start. - Test loading content from
dat://
URLs
This might also be useful for the exokit://
protocol handler stuff that's already in there.
Activity