npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yushun815/ohno-cli

v0.1.0

Published

AI-powered terminal error explainer

Readme

ohno-cli

Terminal 指令失敗後,輸入 ohno 即可在原地重新執行、捕捉 stderr,並由本地 Ollama 分析錯誤原因與修復建議。

需求

  • Node.js 18+
  • Ollama(本機執行,預設 http://localhost:11434

安裝

npm install -g @yushun815/ohno-cli

npm 不允許發佈與既有套件 opn-cli 過於相似的名稱,因此使用 scoped package。安裝後指令仍為 ohno

安裝時會自動執行 postinstall,依你的 $SHELL 寫入 fish / zsh / bash hook(記錄最近一筆失敗指令至 /tmp/ohno_last_cmd)。

安裝後請重開 terminal,或手動 source 對應設定檔。

使用

$ npm run build
# ... 指令失敗 ...

$ ohno
重新執行以下指令來捕捉錯誤?
  npm run build
按 Enter 確認,Ctrl+C 取消

(重新執行中...)

什麼出錯了:
...

建議修復指令:
...

設定

ohno config

互動式選單可調整:

| 項目 | 說明 | 預設 | |------|------|------| | language | AI 回答語系 | zh-TW | | model | Ollama 模型名稱;auto 為使用本機第一個可用模型 | auto |

設定檔路徑:~/.config/ohno/config.json

運作方式

  1. Shell hook 在指令失敗時寫入 /tmp/ohno_last_cmd(僅記錄指令與 exit code,不捕捉 stderr)
  2. 執行 ohno 時讀取該檔,顯示確認提示
  3. 確認後重新執行指令,攔截 stderr 送往 Ollama
  4. 印出說明與建議修復指令

支援 fishzshbash

本機開發

git clone https://github.com/yushun815/ohno-cli.git
cd ohno-cli
npm install
npm link          # 全域可用 ohno

或直接執行:

node index.js
node index.js config

手動安裝 Shell Hook

postinstall 未成功(不支援的 shell 等),請參考 install.sh 內容,手動將 hook 加入對應設定檔。

授權

ISC