ipfs / ipfs/ipfs-webui

Opening a big HAMT-directory takes forever

Open
#1,997 0 comments 0 reactions 0 assignees View on GitHub
area/screen/files effort/days exp/intermediate help wanted kind/bug P1 starmaps
Dominant language
JavaScript
Stars
1.6k
Forks
534
PR merge metrics
No merged PRs in 30d

Description

`/ipns/en.wikipedia-on-ipfs.org/wiki/` is an UnixFS HAMT-sharded directory with 20M of files.

Currently, ipfs-webui tries to open it as it would any other directory, and it ends up with spinner/loader animation looped forever:

> ![2022-08-01_22-07](https://user-images.githubusercontent.com/157609/182235817-6c8ba24b-cd0f-402a-a040-5bc4143bf178.png)

How to solve this? Need more analysis and UX design.
- Files screen could have special handling for HAMT-directories
- Minimal fix is to refuse to open HAMT-sharded dirs, informing user the directory is too big to be rendered, and suggest using CLI.
- Proper fix, add better API to Kubo, allowing for streaming dir items with some sort of pagination (https://github.com/ipfs/kubo/issues/8455)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.