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

@morlay/better-session

v0.1.13

Published

dsh profile bundle: assembles @morlay/session-branch, @morlay/session-rdb, @morlay/ui-conversation-message-actions, @morlay/ui-conversation-manager and @morlay/dsh-reference into a DeepSeek Harness web profile — the rewind / retry / recall / fork closed l

Readme

@morlay/better-session

NPM Version NPM Downloads NPM Downloads (18 months)

profile 聚合 bundle:一次性装配 @morlay/session-branch、@morlay/session-rdb、 @morlay/ui-conversation-message-actions、@morlay/ui-conversation-manager、@morlay/dsh-reference 到 DeepSeek Harness 的 profile,提供就地编辑 / 重试 / 撤回 / 分支(rewind / retry / recall / fork)闭环。对话外壳走官方 ui-conversation 行,我们的扩展只注册在它的槽位上(conversation.chat.node / conversation.composer.dock)。

安装

dsh plugin --profile web add "@morlay/better-session"

安装带上全部子包,bundle patch(cordis.patch.yml)自动装配四层服务。装了什么、为什么这么 换、边界在哪,见设计 会话编辑闭环装配与 ADR 不 fork 上游前端组件。

使用

装配后即可在 GUI 会话中:

  • 编辑 user 消息 → 撤回该消息及其后内容到输入框(rewind,不重放),用户改后自行发送(带确认弹窗)
  • 重试 任意闭合回合 → 就地重放该回合输入(带确认弹窗)
  • 分支(fork)→ 从任意闭合边界派生新会话

也可以直接调用服务:

// 编排层(host)
await ctx.sessionEditor.retry({ action: "retry", sessionId, turn: 2, cascade: "truncate" });
// 数据层
await ctx.sessionBranch.rewind(sessionId, 5);
await ctx.sessionBranch.forkFrom(sourceId, { atSeq: 6, childSessionId });

配置(rdb)

默认配置为 SQLite($DSH_HOME/sessions/sessions.sqlite)。改配置就是改 session-rdb 那一行的 config(bundle patch / profile patch / 设置页都可)——字段、默认值与生效方式见 @morlay/session-rdb 的 README。

插件页不挂长文:locale/*.json 的 meta.detail 指向空文件 docs/detail.md,所以 bundle 详情页的"详细介绍"区是空的;本 README 仍是包门面。