-
Notifications
You must be signed in to change notification settings - Fork 35
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
Link to modules repo in the search results. #10
Comments
We do have a GH link in the top right corner but points to the org. Do you think that pointing to this repo would be better? |
No. I meant extract from the Sorry, I could have been a lot clearer. |
Ah sorry, now I understand. Hmm, I'm not sure about making GH the default link, but adding a gh icon next to the package name would be reasonable. @sindresorhus @atduarte what are your thoughts? |
I would make GitHub the default. The npm site is pretty useless except for download stats, which you could show in the search result instead. |
I originally planned a module page, similar to https://libraries.io/npm/react but I didn't have the time. That page would contain all relevant links, including stats, etc.m @jamestalmage Are you able to do a PR with the change? Note that the repository link can be a github link, a bitbucket link, etc. Ideally we would support these kind of links.. we could do that using https://www.npmjs.com/package/hosted-git-info and fallback to npm link. Note that the |
Make sure to link to the SHA corresponding to the latest release if available, so the user get the correct readme. Should be the |
Yes we can append |
I'm willing to tackle creating a module for fetching the link data. You don't want me touching HTML / CSS. |
I don't think that creating a module is necessary, it would be a tiny wrapper around |
Soo. I'm thinking I'm going to pass for now. It's not a matter of comfort, just a lack of time. |
@jamestalmage you are right. I will give it a try today. |
Question: should we give priority to the package.json |
@satazor No, I want the GitHub repo. I usually inspect the code of modules before using them. |
I think that just replacing the link from npmjs to GitHub is not the best solution, since there's additional information in the npmjs' page and we can't easily go from GitHub to npmjs, but the other way around we can. Maybe we could change the list design and add the ability to add multiple links (GitHub, Webpage, future npms package page, #25, etc). With this change we would be also adressing some of the concerns of #20. |
I still think GitHub should be the default when you click the title. Makes sense to have an icon to go to the npm page though.
What do you need from it? The only thing I can think of are download numbers and dependencies/dependents and that could easily embedded in npms at some point. |
Yeah, I was referring to download numbers. The npms page would obviously be the best choice, but we will have to wait. About changing the default link, I don't know what people in general prefer. Maybe you are right. We could A/B test, make some kind of voting or just change it and check GA for data and Twitter for complains. 😄 Maybe I will implement that design and then when we decide we can easily change the default. |
ahaha we still have a lot of work to do before devoting time to A/B testing. Lets trust @sindresorhus judgement and go for the GH as default and npm icon below. Note that the actual repository link might not be ONLY from GH, but from bitbucket & gitlab too. |
All done guys! |
Personally, if it's available, I would just a soon have the GitHub repo be the default link.
Failing that, it would be nice to have a link to the repo (just add a clickable GH icon?)
The text was updated successfully, but these errors were encountered: