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-client-ui-connection-status

v0.1.2

Published

DSH Web client plugin: a corner pill that shows live connection state (已连接 / 已断开 / 连接中…) by observing ctx.connection.hostDescription. Works on desktop and mobile.

Readme

dsh-client-ui-connection-status

A client plugin for the DeepSeek Harness Web UI that shows a small corner pill with the live connection state:

| State | Pill | Meaning | |---|---|---| | 🟢 已连接 | green | Event streams open, host reachable | | 🔴 已断开 | red | Connection lost (server restart, tailnet drop, offline) | | 🟡 连接中… | amber | Page just loaded, not yet connected |

It observes ctx.connection.hostDescription — the app's own readiness signal (published on every successful readiness handshake, cleared the moment the streams are lost) — so the pill reflects exactly what the app experiences. Works on desktop and mobile. The pill is pointer-events: none and never interferes with the UI.

Requires a dsh installation with the web profile (0.1.0-rc.6 or newer).

Install into a dsh web profile

# 1) install the package into the profile (forwards to pnpm; a local path or
#    an npm package name both work)
dsh plugin --profile web add dsh-client-ui-connection-status

# 2) register the client plugin row in the profile patch layer. Append to
#    $DSH_HOME/profiles/web/cordis.patch.yml — it MUST be an INSERT list;
#    a plain {id, name} patch only overrides an existing row and is silently
#    skipped for a new plugin:
- insert:
    - id: ui-connection-status
      name: dsh-client-ui-connection-status

# 3) restart the web process (stop and start `dsh web`; on Windows the logon
#    task or your service manager will do this on reboot)

After the restart, the node half scans the Loader entry, serves /plugins/dsh-client-ui-connection-status/client.js, and the shell loads it on the next page refresh — the pill appears in the bottom-right corner.

Verify it works

  • Open the app and look for the corner pill: it should settle on 🟢 已连接 shortly after load (🟡 连接中… → 🟢 已连接).
  • In Settings → Plugins, the row ui-connection-status should be listed and enabled.
  • curl http://<your-host>:3080/plugins/dsh-client-ui-connection-status/client.js should return 200.

Uninstall

dsh plugin --profile web remove dsh-client-ui-connection-status
# and remove the insert block you added to cordis.patch.yml, then restart the web

Publish a new version (maintainers)

npm version patch    # or minor / major
npm publish          # requires npm auth; 2FA token or --otp as configured

The package is dependency-free and self-contained (lib/client.js is the client bundle; no build step required). The published tarball contains exactly package.json, lib/client.js, lib/index.js, README.md, LICENSE.

License

MIT