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

v0.1.1

Published

Project and user filesystem provider for DeepSeek Harness workflows.

Readme

Filesystem Workflows

@dshforge/workflow-filesystem is a provider for @dshforge/workflow. It discovers direct .js files, parses metadata through the shared ctx.workflows.parse Acorn parser without executing the workflow body, and loads the selected script through the official engine. The same format is used by DevFlow's bundled workflows.

Roots and precedence

| Rank | Source | Directory | |---|---|---| | 100 | project-dsh | <git-root>/.dsh/workflows/ | | 200 | project-agents | <git-root>/.agents/workflows/ | | 300 | custom | customWorkflowDirs in order | | 400 | user-dsh | $DSH_HOME/workflows/ or ~/.dsh/workflows/ | | 500 | user-agents | $DSH_AGENTS_HOME/workflows/ or ~/.agents/workflows/ |

The project root is the nearest ancestor containing .git; without one, the current working directory is used. Lower ranks win duplicate names. Symlink entries and non-.js files are ignored.

File format

export const meta = {
  name: 'audit-routes',
  description: 'Audit every route handler',
  whenToUse: 'When reviewing route coverage',
  phases: [{ title: 'Audit' }],
  input: { hint: '<路径>', required: true },
}

phase('Audit')
const files = args.input.split(',').map(file => file.trim()).filter(Boolean)
return await pipeline(files, file => agent(`Audit ${file}`))

export const meta must be the first statement: an ExportNamedDeclaration containing exactly one const meta binding initialized by an ObjectExpression. Acorn parses the complete module and supplies the declaration end offset used to separate the workflow body. Supported fields are name, description, whenToUse, phases, and the provider-owned input extension; input is removed before the official engine validates metadata. The body is plain JavaScript with top-level await, using the official agent, pipeline, parallel, phase, log, and args hooks.

Only the metadata object expression is evaluated during discovery, in an empty node:vm context with a timeout and dynamic code generation disabled. The body is not evaluated until execution. Acorn identifies the syntax; it does not execute code. VM metadata evaluation is for trusted local workflow directories, not remote or untrusted content.

Refresh and verification

Run /workflows reload after adding, renaming, or deleting files. No filesystem watcher is installed. Filesystem reads use the combined caller and provider-lifecycle signal, so disposing the provider aborts stale reads.

cd plugins/workflow-filesystem && pnpm test