Skip to content

Drop-in Helia Service Worker for sites hotlinking ipfs.io #36

@2color

Description

@2color

Description

The Service Worker Gateway is a browser-based retrieval client for resources on IPFS, which can be used for individual resources or whole static websites.

However, the Service Worker Gateway isn't useful for existing sites/apps that hotlink to ipfs.io for resources/assets like images.

For such sites, a drop-in Helia based Service Worker (that uses @helia/verified-fetch) that they import and integrate into their application would be a better solution.

This solution is technically very similar to the Service Worker Gateway with the difference that it's embedded into an application rather then used as a distribution vehicle for apps (SW GW)

Expected impact

  • Existing sites that hotlink ipfs.io (or any public gateway) can easily blanket migrate all traffic away from public gateways in favour of verified and direct retrieval.
  • A universal solution that can be added to existing sites significant code changes to the app.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions