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

@dshforge/workflow

v0.1.6

Published

Workflow registry, slash commands, and background runner for DeepSeek Harness.

Readme

Workflows

@dshforge/workflow adds a Skill-style registry for reusable JavaScript workflows. It owns provider merging, per-Agent slash commands, the generic run_workflow model tool, Session records, and background Jobs. Script execution remains owned by the official @deepseek-ai/dsh-workflow-ptc engine.

Composition

Install @dshforge/workflows-bundle to activate the registry and all providers in one layer. For a custom composition, install the registry before any providers. Add the filesystem provider for project/user workflows and DevFlow for its nine bundled workflows:

dagger --progress=plain call dsh web \
  --plugins ./plugins/workflows-bundle \
  up --ports 3080:3080

Each package is an independent Bundle; do not add its Loader rows to global Cordis configuration manually.

Use

  • /<name> <input> queues the original command as a followup user message. The Web client presents every workflow with the official blue command Chip and hides successful submission receipts; failures retain the generic command error card. That first turn calls run_workflow to start the winning workflow, clearing the Session's provisional blank state before background work begins.
  • Each Agent has a dynamic dsh-workflow:catalog system-prompt section containing the current name, description, and optional whenToUse entries inside <available_workflows>. Empty catalogs contribute no prompt text.
  • /workflows lists the current Agent's catalog. /workflows reload rescans providers and refreshes scoped commands after files change; the next prompt assembly uses the updated definitions.
  • run_workflow exposes the same named workflow to the model only for an explicit user request. Ad-hoc JavaScript continues to use the official workflow tool.
  • Runs return a workflow-* Job ID when the model tool starts them. Existing Jobs controls collect output and cancel work; existing workflow-run conversation nodes show phases and Agents.

Project entries outrank user entries, which outrank bundled entries. A workflow never replaces an unrelated existing command such as /permission.

Provider API

Runtime bundles can register a complete definition:

const dispose = ctx.workflows.register({
  name: 'audit-routes',
  description: 'Audit route handlers',
  input: { hint: '<路径>', required: true },
  source: 'bundled',
  provider: 'my-bundle',
  script: 'return await agent(args.input)',
})

Providers with lazy loading implement list() and get(candidate, options) and register through ctx.workflows.registerProvider(control => provider). Candidates carry rank and an opaque locator; lower ranks win. Wrap registration in ctx.effect so unload removes the provider and its generated commands. Provider failures are skipped during automatic discovery so healthy bundled commands remain available; explicit /workflows reload reports discovery failures. Disposing a provider aborts its in-flight list/get calls, and later reads resolve the remaining providers. Initial Agent creation waits until its scoped commands are registered, and failed automatic refreshes withdraw stale commands rather than presenting them as executable.

Definitions support name, description, optional whenToUse, phases, input, source, provider, path, script, and an optional createArgs(input) mapper. Without a mapper, scripts receive args.input. ctx.workflows.parse exposes the shared Acorn parser to bundled and filesystem providers through Cordis, so independently installed bundles do not import each other's files. Script files declare export const meta = { … } before the body; the parser validates that declaration and returns the body without evaluating it.

At each run's start, the runner reads the live subagent.maxActiveSubagents value through the optional official Settings service and applies it as one FIFO ceiling across all agent() calls, including nested parallel() and pipeline() work. Without the Settings service or namespace, it uses the official default of 8. This bounds agents started by the saved workflow; other activations already occupying the same subagent tree still count toward the runtime's shared pool.

Limits

  • The registry does not watch files. Use /workflows reload after editing discovery directories.
  • Jobs and the official engine provide cancellation and progress; pause/resume, checkpoint replay, and process-restart recovery are not added here.
  • Scoped command discovery requires a live Agent. Model invocation resolves the catalog afresh using that Agent's working directory.

Verification

cd plugins/workflow && pnpm test