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

@lijian-ui/dsh-session-cleaner

v0.1.5

Published

Session management plugin for DeepSeek Harness (dsh): list / delete / archive & restore sessions, with a built-in "Archived" group and a delete confirm dialog (real delete, not trash). 为 DeepSeek Harness 提供会话管理:列表 / 真删除(二次确认)/ 归档分组与恢复。

Readme

@lijian-ui/dsh-session-cleaner

为 DeepSeek Harness (dsh) 提供会话管理:列表(含标题)/ 点击预览 / 真删除(二次确认)/ 归档分组与恢复。 Session management for dsh: list (with titles), click-to-preview, real delete (with confirm), archive group & restore.

官方 dsh 只有"归档"没有"删除",且归档后会话从所有视图隐藏、无恢复入口(会话记录仍占磁盘)。本插件修复这两个问题,并补上会话的可识别性(标题 + 内容预览),避免误删:

  • 会话列表(带标题):文件层扫描 ~/.dsh/sessions,显示会话标题(从日志 session/title 事件提取)、时间、大小、状态;分组:全部 / 已归档 / 游离
  • 点击预览:点击会话行弹出内容预览(最近 12 条对话,用户/助手气泡),预览内可直接删除
  • 真删除:删除会话目录 + 投影缓存(projcache)+ workspace 状态三处清理;二次确认弹窗,明确"永久删除、不可恢复"
  • 归档分组:归档走官方 workspace.archiveSession RPC(官方列表即时隐藏);恢复/删除读写官方 workspace.json(官方 UI 重启后同步)

安装

# 开发期(link 联调)
dsh plugin --profile web add ./extensions/session-cleaner
# 或发布后
dsh plugin --profile web add @lijian-ui/dsh-session-cleaner

使用

启动 dsh 后打开设置 → 会话管理:

会话管理界面

  • 顶部:会话总数与总占用,右上「刷新」重新扫描 / 「打开配置文件」定位官方 workspace.json
  • 标签页:全部 / 已归档 / 游离(数字徽标实时统计)
  • 每行:点击 → 预览弹窗(标题、ID、创建时间、大小 + 最近对话);行内按钮:归档(官方列表即时隐藏)/ 恢复(移出归档)/ 删除(二次确认,真删除)
  • 预览弹窗底部也有「删除此会话」入口

边界说明

  • 归档:走官方 API,官方侧边栏即时隐藏(无需重启)
  • 恢复 / 删除:官方无对应 API,插件直接操作文件层,官方侧边栏在 dsh 重启后同步(插件页面本身即时准确)
  • 删除为永久删除(不经过回收站),插件会在确认框明确警告
  • 会话日志是多帧 zstd 格式,插件按帧完整解压读取标题与内容

许可

MIT © lijian-ui