-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support users without a local Kubo instance #2363
Comments
@oed a lot of webui is about managing your kubo node. What are the types of functionality you're looking to use without it? For example, are you looking for the IPLD explorer? If so that's separately accessible via explore.ipld.io and doesn't require a local kubo node. Side note: very cool site! |
Yeah if the IPLD explorer worked reliably I think it might be fine. The functionality I want is to be able to explore the folder structure basically. Seems to be broken rn though? |
Interesting, do you tend to replicate this frequently? It works fine for me, but it's not out of the question that there could've been some infra issues. The infra explore.ipld.io relies on (if you don't have a local gateway running on port 8080):
Having a host with AutoTLS enabled or serving over HTTPS (as some groups like Storacha will do) will help if the issue is with trustless-gateway.link moving your bytes around. Although if there are issues with trustless-gateway.link or delegated-ipfs.dev we want to know 😄, they can be reported at https://github.com/ipshipyard/waterworks-community or in the waterworks-community Slack channel on Filecoin Slack.
Ah... so is it correct to say that what you're asking for isn't quite the IPLD explorer, which is maybe close but will show you the blocks inside HAMTs rather than just enumerating the files, but instead one of:
|
It had been the case every time I tried to use it, but now when trying again after your message I see this error less frequently.
My local gateway runs on 8082 for some reason, but I would assume it would just use the defaults if it's not on 8080?
The thing is that I don't control where the data of each dapp is available. Dapp Rank just provides analysis of dapps. It doesn't pin any dapp (besides dapprank itself). Interestingly I do have AutoTLS enabled on my node, but the peer only appears as:
Yes the blocks / HAMTs is a bit too low level for the average user. The WebuUI Files panel is exactly what I would want. |
It sounds like we may want to pull out the files screen into it's own component.. that would be a significant effort I don't think we could take on right now though. SidenoteYou can adjust the local gateway used by explore.ipld.io by setting a value in local storage, see https://github.com/ipfs/ipld-explorer-components/blob/c82d7bec376779e194d4c19c9d5afddcdd5d9427/src/providers/helia.tsx#L17-L39 localStorage.setItem('kuboGateway', JSON.stringify({
host: '127.0.0.1',
port: '8082',
protocol: 'http',
trustlessBlockBrokerConfig: {
init: {
allowLocal: true,
}
}
})) |
Ok, good to have clarity on this regardless. So basically this is what need to happen?
|
You could do all that, but frankly, at that point it will be an order of magnitude easier for you to implement a simple file browser from scratch, only using Helia. Check https://www.npmjs.com/package/@helia/verified-fetch, and its support for plugins + recently added support for directory listings there + inbrowser.link. Closing this, as WebUI requires Kubo to function, and we won't be investing time into extracting Files screen into reusable component – if someone needs one, it will be more efficient to create it from scratch. |
Is your feature request related to a problem? Please describe.
I've built an application called Dapp Rank where people can browse applications deployed on IPFS + ENS. For every dapp there is a report page. In the detailed report section there is a button to "🔍 Explore IPFS" which when clicked launches the IPFS Webui (e.g. https://dapprank.eth.link/dapprank-eth). This is a super cool feature, but unfortunately it only works for people that run Kubo locally. That means that probably most of my users won't get a working experience of exploring the IPFS content.
Describe the solution you'd like
Ideally there's a version of the Webui that works even if you don't have a Kubo instance on your machine. I imagine there could be a few different ways of solving this:
Similarly to how inbrowser.link works. This seems like it would be a fair amount of effort. Also unclear if it really would make sense to add to this repo or should be a separate project.
Another way could be to use the
?format=car
flag to download the content directly from a gateway. If we'd like to avoid using a default gateway maybe a url can be passed as a query param.The text was updated successfully, but these errors were encountered: