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-progress-bar

v2.0.0

Published

A task progress bar for the DSH Web GUI. Host-inject mode: the host half serves /dsh-progress-bar/state and injects plain JS through webserver/index-inject; it deliberately declares no client half. The progress source defaults to $DSH_HOME/dsh-progress/st

Readme

dsh-progress-bar

A task progress bar for the DeepSeek Harness Web GUI. It renders a native-DOM bar directly above the composer card and polls a local state file.

What it does

  • Registers GET /dsh-progress-bar/state (read the current progress) and GET /dsh-progress-bar/health (self-check).
  • Injects its CSS and a polling script through the host half's webserver/index-inject row, so it needs no client plugin entry and no build step.
  • Ships as a bundle (dsh.bundle.patch) and is manageable from the Web sidebar's Plugins page.

Install

dsh plugin --profile <profile> add dsh-progress-bar

Built and tested against DSH 0.2.0-rc.2.

The state file

The bar is shown only while the state is active, and hidden otherwise. Point a task at it by writing JSON to:

$DSH_HOME/dsh-progress/state.json      # default

Override the location with the PROGRESS_BAR_STATE environment variable (the same variable also moves the selfcheck.json written next to it). The file must be UTF-8 without a BOM — the host half parses it with JSON.parse, and a BOM makes the bar silently disappear. Write it atomically (temp file + rename) so a reader never sees a half-written document.

{
  "active": true,
  "label": "Downloading XnView MP",
  "percent": 63,
  "detail": "43 MB / 67 MB",
  "startedAt": 1791370181179,
  "updatedAt": 1791370181179
}

percent may be null for indeterminate progress (the fill sweeps back and forth). Set "active": false to collapse the bar. If updatedAt goes stale (20 s) the fill turns into the warning colour and the detail line says how long the source has been quiet.

It deliberately declares no client half

Same reason as dsh-xp-skin: adding any client half to this profile changed the client plugin composition and removed the user's avatar (measured three times). The browser-side code is injected from the host half instead.

Context for reviewers

The package is host-only by design, has zero runtime dependencies, and the injected browser script never throws into the page. Its inline script text must not contain a closing script tag — /dsh-progress-bar/health reports hasClosingScriptTag so that can be checked at runtime.

License

MIT