Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Factor out Daemon / Gateway endpoints handlers  #1855

Closed
@Gozala

Description

@Gozala
  • Version: v0.33.1
  • Platform: Browser
  • Subsystem: Workers / WebExtensions

Type:

Feature

Severity:

Medium

Description:

TL;DR

IPFS SW should use local IPFS node on the system and transparently fallback to in-browser IPFS node when local node isn't available.

Overview

I am working towards makeing in-browser IPFS exposed through SW compatible with a REST API exposed by local IPFS daemon / gateway. For more details see ipfs/in-web-browsers#137

There is already code in place that binds API endpoints to IPFS API calls, but it's not available in browser dist and there is an assumption about running in nodejs using hapi.

Proposal

I would like to propose to factor out API endpoint binding code into separate lib or maybe just bundle and in a way that would remove node / hapi assumptions, such that would allow us to share that codebase across SW and nodejs contexts.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions