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-catnap

v1.0.1

Published

DSH 终端风格状态面板插件:实时聚合 codex/cc/joycode/dsh 等多 agent 的运行状态与会话列表,展示系统负载(内存/CPU/磁盘/电池),带一只会打盹的摸鱼小猫。

Readme

dsh-catnap

DSH 终端风格状态面板插件:一只会打盹的摸鱼小猫,实时帮你盯着所有 AI agent 和系统状态。

功能

  • 🐱 摸鱼小猫:终端 ASCII 猫,呼吸 + Zzz 飘动动画,点击会被吵醒换一条摸鱼语录
  • 🤖 多 agent 聚合:实时展示 codex / cc (Claude Code) / joycode / dsh 的运行状态和会话列表,点开看每个会话在干嘛
  • 🖥️ 系统负载:内存 / CPU 负载 / 磁盘 / 电池(充电中 / 已充满 / 使用电池),终端配色绿黄红分级
  • 🎧 蓝牙设备电量:键盘 / 触控板 / 耳机等已连接设备的电量,低电量提醒
  • 📅 摸鱼横幅:距离周五倒计时 + 随机摸鱼语录

安装

dsh plugin --profile web add dsh-catnap
# 装完重启 web profile(客户端 UI 名册在启动时扫描)

重启后,侧边栏底部会出现「状态面板」开关,点开即可看到面板。

架构

dsh-catnap/
├── package.json         # dsh.client 声明(platform: web)+ dsh.bundle.patch
├── cordis.patch.yml     # 组合层:挂载 host 插件行
├── lib/index.js         # host 面:GET /catnap/stats 聚合数据源
└── client/client.js     # client 面:__ModuleLoader__ bundle,终端风 UI
  • host 面:注入 webServer 服务,注册 GET /catnap/stats 路由,聚合各 agent 会话日志 + 系统状态 + 蓝牙电量。
  • client 面:注入 slots,注册 sidebar.footer.action(侧边栏开关)+ shell.overlay(悬浮面板)。面板每 5 秒轮询刷新。

数据源

GET /catnap/stats 返回系统负载、蓝牙设备电量、以及各 agent(codex/cc/joycode/dsh)的运行状态与最近会话列表。

环境要求

  • macOS(读系统状态、蓝牙电量依赖 macOS 命令)
  • Node.js ≥ 20
  • DSH 的 web profile(需要浏览器 UI 面)

License

MIT