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

@havocrao/dsh-client-workspace-logo

v0.1.1-rc.4

Published

Workspace logo surface plugin: fills the workspace-row icon/menu/hover holes with the logo image, picker, and durable Host commit

Readme

@havocrao/dsh-client-workspace-logo

English | 中文

工作区 logo 界面插件:填充 dsh-client-ui-workspace 的三个工作区行槽位——16px 前导单元(sidebar.workspaces.workspaceIcon)、省略号菜单底部(sidebar.workspaces.workspaceMenu)与悬停卡头部(sidebar.workspaces.workspaceHoverIcon)——呈现工作区 logo 图片、图片选择器与宿主持久化提交。

logo 本身是宿主拥有的工作区数据:logo 数据 URL 存在于工作区记录中,经 WorkspaceView.logo 提供,并通过核心 workspace.setLogo RPC 替换或清除(null 清除;导线与持久化上限由 apiproxy schema 套件钉为相等)。本包只贡献界面:行单元以文件夹图标作为无 logo / 加载中 / 失败的回退渲染宿主 logo;菜单底部入口打开图片选择器(读取数据 URL 前强制校验图片 MIME 与 2 MiB 字节上限);悬停卡在标题旁显示卡片尺寸的 logo。选取通过包装 ctx.workspaces.setLogo 的 inject 面提交;失败仅作为控制台诊断输出,返回的视图会重绘该行。

挂载本包即用一行 cordis.yml 组合出整个界面:用 dsh plugin --profile <name> add @havocrao/dsh-client-workspace-logo(或 tarball/path 规格)安装,dsh plugin --profile <name> disable ui-workspace-logo 卸载——无需重启即可让行回到纯文件夹图标与纯标题卡片。

Node 半边是空的 apply:它只让插件出现在宿主 cordis.yml 与 Loader 中;浏览器半边经 exports["./client"] 发布,并通过 dsh.client manifest 声明被发现。

安装

盒内 web profile 已默认挂载该表面(dsh-web-app patch 行 ui-workspace-logo);用 dsh plugin --profile web disable ui-workspace-logo 关闭、enable 恢复,浏览器半无需重启服务器。

已发布 npm 通道(任意 profile):

dsh plugin --profile web add @havocrao/dsh-client-workspace-logo

源码或 tarball 通道与普通依赖一样把包装进 profile(tarball/path 规格会按包真实名协调,manifest 携带 dsh.bundle.patch 时自动加入 profile 的 bundle 栈)。任何客户端侧改动后硬刷新浏览器(Cmd/Ctrl+Shift+R);本包 host 半是空占位,单独此包无需重启 DSH。pnpm 11 默认拦截安装脚本——若未来构建脚本被拒,在 profile 目录批准(pnpm approve-builds)。

模型体验

无。工作区 logo 界面是浏览器 chrome;这里没有任何内容到达模型请求。

KV Cache 影响

无;本包既不组装也不发送 provider 请求。

已知限制与暂缓事项

  • 不缩小图片——选择器把图片字节限制在 2 MiB,但存储的是全尺寸数据 URL;canvas 缩小处理暂缓,因此注册表文件会随大 logo 增长直至上限。
  • 界面中没有清除入口——清除需要走导线 workspace.setLogo(workspaceId, null);未来的菜单条目可以暴露它。