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] Could Not Fetch Packages Error #21972
Whenever I search a package it shows the error "Could Not Fetch Packages Error". This occurs no matter what package I search. I have tried un and reinstalling the package however that has not fixed the error.
Steps To Reproduce
Install the package
Search for any package name
Error is shown
Current Behaviour
Error is shown instead of the packages
Expected Behaviour
Show the packages
Reacted by Matt Venables, Stephen David Clarke, Benoît Burgener, Piotr Grzesiak, Kacper Kozak and Tim Shilov
I'm having the same issue for a few weeks now.
I've tried digging it a bit and here's what I've found.
Below is the error logged.
Error: Forbidden
at Object.defaultParsing [as current] (/Users/tim.shilov/.config/raycast/extensions/search-npm/index.js:4070:15)
at /Users/tim.shilov/.config/raycast/extensions/search-npm/index.js:4109:47
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
It seems like the extension is using https://www.npmjs.com/search/suggestions?q= URL to search, which is the same one that is used on NPM page itself.
However, I don't believe that URL is a public API (at least I couldn't find any documentation for it).
Also, on the NPM itself, that request now includes the x-csrf-token header, which explains Forbidden response, and leads me to believe that extension can no longer use it.
Looking some more, I have found that NPM has a public registry API which can potentially be used.
I gave it a quick try and it does work, but I couldn't make it work with the extension (yet).
Activity
raycastbot commentedon Oct 5, 2025
Thank you for opening this issue!
🔔 @mrmartineau @reloadedhead @TimonVS @luisFilipePT @LunaticMuch @jomifepe @j3lte @LitoMore @ridemountainpig @DarrylBrooks97 you might want to have a look.
💡 Author and Contributors commands
The author and contributors of
mrmartineau/search-npmcan trigger bot actions by commenting:@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.TimShilov commentedon Oct 13, 2025
I'm having the same issue for a few weeks now.
I've tried digging it a bit and here's what I've found.
Below is the error logged.
It seems like the extension is using
https://www.npmjs.com/search/suggestions?q=URL to search, which is the same one that is used on NPM page itself.However, I don't believe that URL is a public API (at least I couldn't find any documentation for it).
Also, on the NPM itself, that request now includes the
x-csrf-tokenheader, which explainsForbiddenresponse, and leads me to believe that extension can no longer use it.Looking some more, I have found that NPM has a public registry API which can potentially be used.
I gave it a quick try and it does work, but I couldn't make it work with the extension (yet).
curl 'https://registry.npmjs.org/-/v1/search?text=snowflake'Not sure if I'll have time to make a patch anytime soon, so hopefully that can help anyone else to make one. 🤞
Fix issue raycast#21972
j3lte commentedon Oct 13, 2025
@TimShilov I looked at your suggested fix, can confirm it works. I have implemented it in the lastest PR (see above), waiting for a review and merge
Update search-npm extension (#22153)
j3lte commentedon Oct 14, 2025
Fixed and merged.
@raycastbot close this issue