You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Search npm Packages] Include popularity, stars etc. in search results #1033
I think one useful addition would be to include info such as popularity, GitHub star count, last publish date etc. I usually base my decision about using a particular package on this info.
@MKaciuba hi mate, thanks for the feedback. I would also like to add more info to the output, but there isn't much space for it in the Raycast UI. 3rd party extensions have a title, description (second line), image and the right-hand bit where we put the version, to put information. That doesn't leave much space for the new things that you've suggested. Have a look at the Raycast extensions API docs and see if you can figure out where that information could go.
Actually, we could put that info in the action panel, would that be acceptable?
What do you think about giving a configurable option to choose one of those data points to appear next to the version simply by concatenation, like this: 1.2.3 | ⭐456? Then you could have more detailed info in the action panel as you propose.
There are some score values which might be useful, but as you can see there are no GitHub star counts. I don't think it's a good idea to call another API to fetch this info for every result item. So unless you can find a free suggestions API that also returns GitHub stars, I think we'll have to leave it as is.
Having said that, here's what it could look like with scores information added:
..which also isn't ideal because Raycast doesn't offer an Action for simply displaying information like we want in the ActionsPanel. I am using Action.CopyToClipboard in the screenshot above which isn't great. See more options here
This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.
Activity
mrmartineau commentedon Mar 29, 2022
@MKaciuba hi mate, thanks for the feedback. I would also like to add more info to the output, but there isn't much space for it in the Raycast UI. 3rd party extensions have a
title,description(second line), image and the right-hand bit where we put the version, to put information. That doesn't leave much space for the new things that you've suggested. Have a look at the Raycast extensions API docs and see if you can figure out where that information could go.Actually, we could put that info in the action panel, would that be acceptable?
michal-kaciuba commentedon Mar 30, 2022
What do you think about giving a configurable option to choose one of those data points to appear next to the version simply by concatenation, like this:
1.2.3 | ⭐456? Then you could have more detailed info in the action panel as you propose.mrmartineau commentedon Apr 4, 2022
That could also work. If I get some time, I will add this stuff.
mrmartineau commentedon Apr 26, 2022
@MKaciuba FWIW a typical response from the npms.io suggestions API (that the extension uses) looks like this:
{ "package": { "name": "react", "scope": "unscoped", "version": "18.0.0", "description": "React is a JavaScript library for building user interfaces.", "keywords": [ "react" ], "date": "2022-03-29T16:00:04.223Z", "links": { "npm": "https://www.npmjs.com/package/react", "homepage": "https://reactjs.org/", "repository": "https://github.com/facebook/react", "bugs": "https://github.com/facebook/react/issues" }, "publisher": { "username": "acdlite", "email": "[email protected]" }, "maintainers": [ { "username": "gaearon", "email": "[email protected]" }, { "username": "acdlite", "email": "[email protected]" }, { "username": "fb", "email": "[email protected]" }, { "username": "trueadm", "email": "[email protected]" }, { "username": "sophiebits", "email": "[email protected]" }, { "username": "lunaruan", "email": "[email protected]" } ] }, "score": { "final": 0.9197584952933029, "detail": { "quality": 0.8629706748020751, "popularity": 0.9194826852725915, "maintenance": 0.9687095800207814 } }, "searchScore": 1010.62555, "highlight": "<em>react</em>" }There are some score values which might be useful, but as you can see there are no GitHub star counts. I don't think it's a good idea to call another API to fetch this info for every result item. So unless you can find a free suggestions API that also returns GitHub stars, I think we'll have to leave it as is.
Having said that, here's what it could look like with scores information added:
..which also isn't ideal because Raycast doesn't offer an
Actionfor simply displaying information like we want in theActionsPanel. I am usingAction.CopyToClipboardin the screenshot above which isn't great. See more options heremathieudutour commentedon Apr 27, 2022
FYI, you can now display multiple "accessories" for each list item: https://developers.raycast.com/api-reference/user-interface/list#list.item.accessory
You could also use a
List.Item.Detailto display even more data: https://developers.raycast.com/api-reference/user-interface/list#list.item.detailmrmartineau commentedon Apr 27, 2022
@mathieudutour I wasn't aware of the
Detailview. So I could use markdown and render something like this (but better):I'm still not sure if it is worth the changes to be honest. Am happy to take suggestions though.
mrmartineau commentedon May 4, 2022
FYI I have a just opened PR with some updates to this extension: #1585
stale commentedon Jun 23, 2022
This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.
Update Teak: clearer sign-in message (#33790)