ipfs-companion icon indicating copy to clipboard operation
ipfs-companion copied to clipboard

Redirect ipfs.io/api/v0/*

Open lidel opened this issue 5 years ago • 0 comments

I suspect some apps may leverage the fact that a subset of APIs is exposed under ipfs.io/api/v0/.

Companion should redirect things like https://ipfs.io/api/v0/cat?arg=/ipns/docs.ipfs.io/assets/logo.svg (especially ones with ranges and offsets) to maximize the use of local nodes.


  • Q: could this be a partial replacement for window.ipfs?
    • A: Yes, for basic read-only commands like ipfs.cat. People could simply code against https://ipfs.io/api/v0 and browsers with native support (or companion extension) would just redirect those requests to local node.

lidel avatar Apr 23 '20 17:04 lidel