ipfs / ipfs/ipfs-companion

IPNS prefetching

Open
#643 2 comments 0 reactions 0 assignees View on GitHub
status/blocked status/blocked/missing-api status/blocked/upstream-bug status/deferred
Dominant language
JavaScript
Stars
2.2k
Forks
338
Avg merge
3m
Merged PRs (30d)
1

Description

I don't know how tricky this may be, but go-ipfs 0.4.18 has `--stream` flag for `ipfs name resolve` which makes it return names as they are discovered. It has some nice properties - names returned later are guaranteed to be 'better' (newer), last name returned before the stream is closed is always what would be returned by normal `ipfs name resolve`. This makes initial name discovery much, much faster, usually less than 1s from my testing.

When user goes to `/ipns/Qm..` path, companion could try to call `ipfs name resolve --stream` instead going directly to the gateway and prefetching/start displaying stuff in something like a sandboxed iframe (if something like this exists)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.