Skip to content

[Documentation] "Install" section in README does not make sense #488

Closed
@mcclure

Description

@mcclure

Say I am new to libp2p and just want to install whatever npm package I need to get started so I can run example code in tutorials. I come to the js-libp2p page on github. I look under "Install". It gives the npm line to run to install, then says,

this module is only a skeleton and should not be used directly other than libp2p bundle implementors that want to extend its code

So… wait. I shouldn't install it? The line is unclear; it says "don't use", not "don't install".

It also says "as noted above" so I look above. Above it nicely explains that I should use "libp2p-ipfs-nodejs" or "libp2p-ipfs-browser". Great! I'll install one of those. Except those links are links to… javascript files? I search the npm registry. There is no "libp2p-ipfs-browser" there. There is a "libp2p-ipfs-nodejs" but it is marked "deprecated" with a big banner that says to go to… github.com/libp2p/js-libp2p, in other words this page. Later the README suggests I "create my own" libp2p "bundle" but it doesn't explain what thing or collection of things I need to install to create one of those. I don't know exactly what a "bundle" is at this point.

It is clear I am probably looking at the wrong page. Unfortunately you are the top hit on Google for "javascript libp2p". So you have a page which is clearly not the first thing a new user should look at, but because of Google you are the first thing a new user is likely to look at, and you don't link which page within the sprawling libp2p web presence is the first thing a new user should look at.

My "expected behavior"/suggestion is that you change "this module… should not be used" to "this module… should not be installed" (if that is what you mean), and that you provide links in the install section to one of:

  • What to install instead
  • What document I should read to understand that "what should I install instead?" is a nonsensical question
  • If you're going to suggest using the "libp2p-ipfs-nodejs" or "libp2p-ipfs-browser" "bundles", you should say what package(s) to install to use those two "bundles".

"Type: Very Low - Translation or documentation mistake. Something that won't give anyone a bad day." My day is ok so far

(Maybe this is redundant with #231. But that issue is over a year old so maybe resolving #231 is hard and it's worth addressing the smaller problem that you have a "install" section that is not actionable.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High: Likely tackled by core team if no one steps updxDeveloper Experienceexp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)status/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions