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

@zi7tian/dsh-keep-awake

v0.4.2

Published

Keep the DSH host awake during active tasks with native power assertions.

Readme

dsh-keep-awake

DeepSeek Harness 主机保活插件:AI 任务运行时自动保持主机亮屏、防止休眠,全部任务结束后释放保活请求。

插件介绍

  • 保活由 DSH 后端控制,支持多个会话和子 Agent;关闭网页或切换到后台不影响运行中的任务。
  • 在侧边栏的设置同一行显示太阳图标,点击可查看状态、运行任务数量,以及开启或关闭保活。
  • 使用普通用户权限的临时电源断言,不需要管理员权限,不修改全局电源设置,不模拟鼠标或键盘。
  • Windows 使用 Power Request,macOS 使用 IOKit,Linux 使用 D-Bus ScreenSaver 和 logind。系统接口不可用时会显示部分生效或失败状态。
  • 主机开关作用于当前 DSH 进程,重启后默认开启。插件停止或宿主退出时释放请求。

保护对象是运行 DSH 后端的设备。手动锁屏、合盖及系统强制策略可能覆盖保活。Linux 已实机验证;Windows 和 macOS 已实现,尚待实机验证。针对 DSH 0.2.0-rc.2 开发。

安装方法

从 npm 安装(推荐)

dsh plugin --profile web add @zi7tian/dsh-keep-awake

从 GitHub 安装

dsh plugin --profile web add github:zi7tian/dsh-keep-awake

本地安装

git clone https://github.com/zi7tian/dsh-keep-awake.git
cd dsh-keep-awake
npm ci
dsh plugin --profile web add link:/absolute/path/to/dsh-keep-awake

将路径替换为实际插件目录,Windows 使用对应本地路径。插件依赖 Koffi,安装时会获取适合当前平台的原生组件;Linux 还需要系统提供 libdbus-1 及相应的会话服务。

安装或升级后,等待当前任务结束,重启 dsh web 并刷新页面。设置旁出现太阳图标即表示控制面板已加载。桌面版请通过其插件管理器安装。

卸载

dsh plugin --profile web remove @zi7tian/dsh-keep-awake