-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Docs navigation is very confusing #3261
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
As a newcomer, I had no clue what I was doing till finding this issue. So can back this claim. |
This is useful feedback, thanks. We can certainly take a look at making the docs easier to follow, and having some of it buried under
The node returned from I'd like to see more real-time feedback in js-ipfs though, what events were you expecting? |
I haven't used IPFS much, I just wanted to test it, and try to understand how it works under the hood. For example I wanted to log whenever a peer connects, whenever I send/receive messages to a peer, what this message is, etc. So I wasn't looking for a particular event that wasn't there. I also wanted to use webRTC specifically to test and not an http provider. I still haven't been able to achieve that yet in the few hours I've tried. My goal would be to make some browser p2p app that only uses webRTC transport, and also shows statistics about the peers, like how many are connected, how much data sent/received, what country they are from, etc. Not sure if that's possible. |
Current plan is to add jsdoc comments into js-ipfs #3281 repos, finish up changes to aegir ipfs/aegir#568 that would allow us to generate docs from that. And then iterate over improvements to documentation. If anyone is interested in helping moving any of the pieces to get there, help would be appreciated. I'll post updates here as things progress. |
js-ipfs is being deprecated in favor of Helia. You can follow the migration plan here #4336 and read the migration guide. This issue has been resolved in Helia! if this does not address your concern please let us know by reopening this issue before 2023-06-05! |
The docs navigation is very confusing. The examples show the
Ipfs
module, but there's no obvious way to know where the docs for this are. Turns out it's on this page https://github.com/ipfs/js-ipfs/blob/master/packages/ipfs/docs/MODULE.md but there's no obvious link to this page from the front page.MODULE
is not a descriptive enough name for someone familiar with the JS ecosystem to know it means theIpfs
constructor.Now from that
MODULE
page, I can see that it creates anode
instance, but no obvious link to the documentation of this instance. It kind of implies to go to this page https://github.com/ipfs/js-ipfs/tree/master/docs/core-api, which turns out is what anode
is, but that was not obvious to me, and I have to click each page to see what's available.A more reader friendly way to do docs would have every single API on a single page with table of content. Kind of like this https://github.com/puppeteer/puppeteer/blob/v5.2.1/docs/api.md
Also, none of the APIs have events listed. Is there no events available?
The text was updated successfully, but these errors were encountered: