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-scheduled-tasks

v0.0.3

Published

Scheduled-task plugin for the dsh web sidebar: create tasks that run a natural-language prompt in dsh at a set time (one-off / daily / weekly / interval), with a sidebar manager UI placed between the New Session button and the Workspace list. UI language

Readme

dsh-scheduled-tasks

English | 简体中文

一个 DeepSeek Harness(dsh) Web 侧边栏的定时任务插件:把你想让 dsh 做的事情写成一条任务,设置好时间,到点它会自动把任务交给正在运行的 dsh 执行。

功能

  • 定时执行:支持四种重复方式——单次(指定时间)、每天、每周(选星期 + 时间)、固定间隔(最小 5 分钟)。
  • 侧边栏入口:入口按钮位于侧边栏「新会话」按钮和「工作区」列表之间,点击打开任务管理面板。
  • 任务管理:新建 / 编辑 / 删除 / 启用停用 / 立即运行,每个任务保留最近 20 次执行记录。
  • 中英文界面:自动跟随 dsh 语言设置(~/.dsh/settings.yaml 的 locale.preference)——dsh 是中文界面插件就是中文,英文界面就是英文。
  • 本地存储:任务保存在 ~/.dsh/scheduled-tasks.json,不上传任何数据,不含任何密钥。
  • 错峰补跑:dsh 关闭期间错过的任务不会在重启后立刻陈旧补跑(超过 6 小时的错过直接跳过并记录)。

安装

前置条件:已安装 dsh 与 pnpm。

从 npm 安装:

dsh plugin --profile web add dsh-scheduled-tasks

安装后重启 dsh web,侧边栏即可看到「定时任务」入口。

使用

  1. 点击侧边栏「定时任务」→「+ 新建任务」。
  2. 填写任务名称和任务内容(一段自然语言提示词,到点后会作为新任务交给 dsh 执行)。
  3. 选择重复方式和时间,保存。
  4. 到点后插件会把任务交给正在运行的 dsh;执行结果请在 dsh 会话中查看。

注意:定时任务依赖 dsh 保持运行。dsh 未运行时任务不会执行。

卸载

dsh plugin --profile web rm dsh-scheduled-tasks

工作原理

  • 宿主端(cordis 插件)注册 /dsh-scheduled-tasks/* JSON 路由,并运行一个轻量进程内调度器(15 秒一跳)。
  • 客户端通过 window.__ModuleLoader__ 注入侧边栏按钮与管理面板。
  • 任务触发后由 lib/runner.js 把提示词交给正在运行的 dsh(详见源码注释)。

开发

npm test   # 冒烟测试:桩环境下跑通全部路由与 runner,无需真实 dsh 宿主

许可

MIT