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

dsh-tui-gh-panel

v1.4.0

Published

GitHub inbox side panel for dsh-TUI: PRs/issues assigned to or mentioning you, plus the current repo's open PRs and default-branch CI summary. Read-only, powered by the gh CLI.

Readme

dsh-tui-gh-panel

dsh-TUI 的 GitHub 收件侧栏面板:Ctrl+B 打开侧栏后出现「⎇ GitHub」胶囊,四段收件箱——

dsh-tui-gh-panel 侧栏面板

  • 收件箱:全 GitHub 范围内与你相关的 open PR / issue,PR 与 Issue 分两组展示——分配给你([a])、你发起的([@])、提及你的([m])、等你 review([r]);PR 行尾带 check 状态(✓/✗/● 与失败 check 名)。
  • Discussions:全 GitHub 范围内 involving 你(发起/参与/提及)的 discussions(GraphQL involves:@me)。
  • 仓库速览:你名下的仓库(gh repo list,按最近推送排序,行尾可见性与 +Nd)+ Starred 子区——你 star 过的仓库按星标时间倒序(行首 ★),两组共用折叠、f 过滤与变化标记。
  • 变化语义:离开面板期间的动静,回来时以 • 与段标题 (+n) 标出;选择按 URL 锚定,刷新不漂移。
  • 滚动与折叠:列表超过面板高度时按段滚动(选择走到哪,窗口跟到哪),段标题显示当前区间(如 (5-12/33));滚轮每格一行;点段标题或数字键 1-4 折叠/展开对应段,a 全收/全开(折叠布局持久化,收起的段把行预算让给其他段)。
  • 行尾信息对齐:每行收件箱条目统一显示距上次动静的天数(+Nd)、评论数 ↩n、评审徽标 ✗CR/✓OK;标题干净截断,行尾信息不吞字。

只读:不评论、不合并、不改任何远端状态。条目点击或 Enter 用系统浏览器打开。

数据全部来自 gh CLI(JSON 输出)——复用你已有的 gh 登录态,token 不经过插件。

要求

  • dsh-TUI(带侧栏面板接缝的版本,ctx.tuiPanels)—— dsh-TUI
  • gh CLI 已安装且已登录(gh auth status 可查)
  • 当前工作目录是 git checkout 时才能自动识别「当前仓库」

安装

dsh plugin --profile dsh-tui add dsh-tui-gh-panel

开发模式(本地 checkout):

dsh plugin --profile dsh-tui add link:$PWD

配置

在 profile 的 cordis.patch.yml 里按 id 调整(row patch 会整体替换 config,需写全要保留的键):

- id: gh-panel
  config:
    repo: ''    # 强制指定 owner/name,覆盖自动识别
    limit: 30   # 每个搜索桶的最大行数(收件箱上限 50)

刷新不轮询:无 interval 类配置——启动刷一次,之后按 R。

键位(面板聚焦时)

| 键 | 动作 | | --- | --- | | ↑ / ↓ / 滚轮 | 移动选择 | | Enter | 系统浏览器打开选中条目 | | 1 / 2 / 3 / 4 | 折叠/展开 PR / Issue / Discussions / 仓库速览(含 Starred 子区,点段标题同效) | | a | 全部收起 ↔ 全部展开 | | R | 立即刷新(唯一的刷新方式,无后台轮询) |

兼容矩阵

| 插件版本 | 已验证宿主 | | --- | --- | | 1.1.x | dsh-TUI 0.20.2(dsh 0.2.2-rc.5) |

面板接缝为实验性,宿主升级后如遇面板消失请提 issue 并附上版本组合。

已知限制(v1 范围外)

  • GitLab / MR:二期再议(见 DESIGN.md 二期备忘)。
  • Starred 子区仅取最近 100 个 star(单页拉取,无翻页)。
  • repo: 过滤输入、compact 行渲染槽:二期。
  • 侧栏整列不可选中复制(宿主 noSelect)——面板内复制链接待宿主「复制能力位」开放。
  • 面板接缝目前为实验性(dsh-std / TUI Profile 演进可能调整)。

开发

pnpm install
pnpm build          # tsc → lib/types/
pnpm test           # node --test(数据归一化快照)
pnpm check:manifest # dsh-plugin.json 校验

README 截图由 assets/panel.html 驱动,重生成:

msedge --headless=new --disable-gpu --force-device-scale-factor=2 --window-size=760,470 --screenshot=assets/panel.png "file:///<repo>/assets/panel.html"

设计共识与接缝记录见 DESIGN.md。参考实现致谢 dsh-tui-workspace-sidebar。

License

MIT