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

opcpackage

v1.0.0

Published

<p align="center"> <a href="https://opencode.ai"> <picture> <source srcset="packages/console/app/src/asset/logo-ornate-dark.svg" media="(prefers-color-scheme: dark)"> <source srcset="packages/console/app/src/asset/logo-ornate-light.svg"

Readme

OpenCode Terminal UI


安裝

# 直接安裝 (YOLO)
curl -fsSL https://opencode.ai/install | bash

# 套件管理員
npm i -g opencode-ai@latest        # 也可使用 bun/pnpm/yarn
scoop install opencode             # Windows
choco install opencode             # Windows
brew install anomalyco/tap/opencode # macOS 與 Linux(推薦,始終保持最新)
brew install opencode              # macOS 與 Linux(官方 brew formula,更新頻率較低)
sudo pacman -S opencode            # Arch Linux (Stable)
paru -S opencode-bin               # Arch Linux (Latest from AUR)
mise use -g opencode               # 任何作業系統
nix run nixpkgs#opencode           # 或使用 github:anomalyco/opencode 以取得最新開發分支

[!TIP] 安裝前請先移除 0.1.x 以前的舊版本。

桌面應用程式 (BETA)

OpenCode 也提供桌面版應用程式。您可以直接從 發佈頁面 (releases page)opencode.ai/download 下載。

| 平台 | 下載連結 | | --------------------- | ---------------------------------- | | macOS (Apple Silicon) | opencode-desktop-mac-arm64.dmg | | macOS (Intel) | opencode-desktop-mac-x64.dmg | | Windows | opencode-desktop-windows-x64.exe | | Linux | .deb, .rpm, 或 AppImage |

# macOS (Homebrew Cask)
brew install --cask opencode-desktop
# Windows (Scoop)
scoop bucket add extras; scoop install extras/opencode-desktop

安裝目錄

安裝腳本會依據以下優先順序決定安裝路徑:

  1. $OPENCODE_INSTALL_DIR - 自定義安裝目錄
  2. $XDG_BIN_DIR - 符合 XDG 基礎目錄規範的路徑
  3. $HOME/bin - 標準使用者執行檔目錄 (若存在或可建立)
  4. $HOME/.opencode/bin - 預設備用路徑
# 範例
OPENCODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://opencode.ai/install | bash
XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash

Agents

OpenCode 內建了兩種 Agent,您可以使用 Tab 鍵快速切換。

  • build - 預設模式,具備完整權限的 Agent,適用於開發工作。
  • plan - 唯讀模式,適用於程式碼分析與探索。
    • 預設禁止修改檔案。
    • 執行 bash 指令前會詢問權限。
    • 非常適合用來探索陌生的程式碼庫或規劃變更。

此外,OpenCode 還包含一個 general 子 Agent,用於處理複雜搜尋與多步驟任務。此 Agent 供系統內部使用,亦可透過在訊息中輸入 @general 來呼叫。

了解更多關於 Agents 的資訊。

線上文件

關於如何設定 OpenCode 的詳細資訊,請參閱我們的 官方文件

參與貢獻

如果您有興趣參與 OpenCode 的開發,請在提交 Pull Request 前先閱讀我們的 貢獻指南 (Contributing Docs)

基於 OpenCode 進行開發

如果您正在開發與 OpenCode 相關的專案,並在名稱中使用了 "opencode"(例如 "opencode-dashboard" 或 "opencode-mobile"),請在您的 README 中加入聲明,說明該專案並非由 OpenCode 團隊開發,且與我們沒有任何隸屬關係。

常見問題 (FAQ)

這跟 Claude Code 有什麼不同?

在功能面上與 Claude Code 非常相似。以下是關鍵差異:

  • 100% 開源。
  • 不綁定特定的服務提供商。雖然我們推薦使用透過 OpenCode Zen 提供的模型,但 OpenCode 也可搭配 Claude, OpenAI, Google 甚至本地模型使用。隨著模型不斷演進,彼此間的差距會縮小且價格會下降,因此具備「不限廠商 (provider-agnostic)」的特性至關重要。
  • 內建 LSP (語言伺服器協定) 支援。
  • 專注於終端機介面 (TUI)。OpenCode 由 Neovim 愛好者與 terminal.shop 的創作者打造。我們將不斷挑戰終端機介面的極限。
  • 客戶端/伺服器架構 (Client/Server Architecture)。這讓 OpenCode 能夠在您的電腦上運行的同時,由行動裝置進行遠端操控。這意味著 TUI 前端只是眾多可能的客戶端之一。

加入我們的社群 飞书 | X.com