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/ui-conversation-manager

v0.1.13

Published

「对话管理」全局面板页(浏览器半):会话与统计两层 Tabs——会话视图给出全量会话(含已归档)的搜索、分页、归档 / 取消归档 / 导出 / 删除、导入为新会话与整理数据(孤儿回收 + 统计重算),统计视图给出全部对话的 token 用量。

Readme

@morlay/ui-conversation-manager

「对话管理」全局面板页(浏览器半):sidebar.panellist 的 nav 行 + main keyed 面板(与官方 ui-plugin-manager 同一种注册方式)。一层 Tabs 在会话与统计之间切换:会话视图做全量会话的搜索、分页与 归档 / 取消归档 / 导出 / 删除(确认弹窗),并带导入为新会话与整理数据(孤儿回收 + 统计重算);统计视图给出全部对话的 token 用量。

用法

页面是 profile 的一行(由 @morlay/better-session 的 patch 插入),装好即在侧栏出现「对话管理」。它不新增 host 面,只读既有服务与路由:

| 动作 | 接缝 | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | | 列表与标题 | POST /api/morlay/v1/session/rows(@morlay/session-rdb:完整语料 + 标题 + 最后活动时间 + 工作区归属;搜索 / 子代理过滤 / 分页都在后端) | | 归档 | ctx.uiWorkspace.archiveSession(上游 ui-workspace,未归档行提供) | | 取消归档 | ctx.uiWorkspace.unarchiveSession(上游 ui-workspace,已归档行提供) | | 导出 | POST /api/morlay/v1/session/export(@morlay/session-rdb,直接下载 zip) | | 删除 | POST /api/morlay/v1/session/delete(@morlay/session-rdb,仅已归档行可用) | | 导入为新会话 | POST /api/morlay/v1/session/import(@morlay/session-rdb,不带 sessionId = 新建会话) | | 整理数据 | POST /api/morlay/v1/session/organize(停 agent → 回收孤儿 subagent 会话与孤儿事件行 → 重算全部会话的统计(用量与活动计数)→ VACUUM;执行期间阻塞界面) | | 用量统计 | POST /api/morlay/v1/session/usage(@morlay/session-rdb 读专用用量表聚合;进入统计视图时拉一次,维度切换本地折叠,范围切换重新请求) |

归档 / 取消归档 / 删除 / 导入 / GC 成功后重拉会话行;host 拒绝(未归档 / 正在使用 / 不存在)时按错误码给出可读 文案。删除只对已归档会话开放;子代理派生会话(origin: 'subagent')默认不列,勾选「显示子代理会话」即真 全量。

统计视图的三个维度口径:总览给「全部」与「其中子代理」两行;按模型把人类与子代理合并成同一模型 一行(同一模型不拆行);按会话按用量降序取前 20,行上标出子代理会话,并可切「只看子代理会话」——子 代理会话单个用量小,混排时会被行数上限挤掉。