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

@qianwenxue1/dsh-shell

v0.1.0

Published

dsh-shell for DeepSeek Harness: runs cmd / PowerShell commands on Windows (and bash-like shells on POSIX) with a bash-inspired safety model — timeouts, output truncation, exit codes, background jobs and a cwd allowlist

Readme

dsh-shell

A DeepSeek Harness (DSH) plugin that lets the model run cmd and PowerShell commands on Windows — with the safety model of the standard bash tool.

Why

The stock bash tool of many agents fails on Windows (subprocess-local: terminal inspection is unsupported on platform win32). dsh-shell registers a shell_exec tool that understands Windows natively:

  • cmd.exe /d /s /c ... by default
  • powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command ...
  • sh/bash fallback on Linux/macOS hosts

It mirrors the bash tool's safety contract:

| Feature | Behavior | | --- | --- | | Persistent cwd | cd persists across calls (per session, on disk) | | Timeout | per-command timeout ms, capped by maxTimeout | | Output truncation | per-stream maxOutputBytes cap with a marker (head + tail kept) | | Exit codes | exit_code, timed_out, stdout, stderr, truncated | | Background jobs | background: true returns a job_id; poll with shell_job_status | | Denylist | refuses rm -rf /, format, drive-wide del/rd, shutdown, registry/service deletes | | cwd allowlist | stays inside the session workspace unless allowAnyCwd |

Install

# from npm after publishing
dsh plugin --profile web add @qianwenxue1/dsh-shell

# or from a local checkout
git clone https://github.com/qianwenxue1/dsh-shell.git
cd dsh-shell
pnpm install
pnpm build
dsh plugin --profile web add .

Config

- id: dsh-shell
  config:
    stateDir: .dsh-shell      # per-session state under the workspace
    defaultShell: cmd         # cmd | powershell
    maxTimeout: 600000        # ms hard cap
    maxOutputBytes: 30720     # per-stream cap (head + tail kept)
    allowAnyCwd: false        # true to allow cd/commands outside the workspace
    allowDangerous: false     # true to bypass the denylist

Tools

shell_exec

Run a command in the persistent shell.

{ "command": "dir /b", "shell": "cmd" }                       // simplest
{ "command": "Get-ChildItem -Name", "shell": "powershell" }   // PowerShell cmdlets
{ "command": "npm test", "timeout": 180000, "background": true } // long-running

shell_job_status

Poll a background job:

{ "job_id": "job-1710000000000-abc123" }

Development

pnpm install
pnpm build
pnpm verify

License

MIT