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/dsh-desktop-host

v0.2.12

Published

Desktop host process for dshdev: boots the desktop profile and serves it through an in-process, portless webServer over byte pipes — upstream apps/desktop-host with the web carrier taken over and the Office composition dropped.

Readme

@morlay/dsh-desktop-host

桌面部署里那个 host 进程:按 desktop profile 把 Web 应用启起来,然后在进程内接管 webServer——不监听任何端口,Electron 壳把该应用自己的协议(<app name>://app/*)的请求经字节管道(FD 3/4)喂进来。

上游 apps/desktop-host(@deepseek-ai/dsh-desktop-host)是 private: true 的应用,外部装不到,所以这里是它的变体包:IPC 契约照旧,argv 与本仓库的 web 入口统一成一套 flag(见下)。

用法

被 @local/dshdev 使用,不单独跑:

  • dev / bundle 把本包落位到部署的 <runtime>/node_modules/@morlay/dsh-desktop-host(dev 从工作区解析同一份包,bundle 按 manifest files 复制),三样必须都在——src/index.ts(启动入口,壳按 node 解析取源码,由 TS loader 转译)、当时那个无端口替身(已删)(桌面 patch 行按 当时那个无端口替身(已删) 加载)、config/desktop.cordis.patch.yml(入口按它作 patchFiles 读);

  • 壳启动它(stdio:stdout/stderr 落盘 + FD 5 是 Node IPC),argv 与 web 入口同一套 (解析只有一处,见 src/invocation.ts):

    <entry> --profile-dir <dir> --runtime-dir <dir> [--patch <file>]… [--pnpm <path> --node-bin <dir>] [-- <内层参数>]

    --profile-dir 是 profile root(打包形态是种子种出的 $DSH_HOME/profiles/<name>,dev 形态是 app 目录本身);

  • 入口只做三件事:src/index.ts 解析参数 → 装配 → 接线;装配在 @morlay/dsh-app-boot(desktop 与 web 共用,层完全由 profile 的 dsh.profile.bundles 决定),管道与请求分发在 src/desktop-ipc.ts,传输接管在 src/transport.ts;

  • --web(dev 的 web 形态)走 src/web.ts:同一个 bootAppProfile,只是 profile 名换成 web 并多一个端口契约,见设计 dev 形态的 profile root 就是 app 目录;

  • IPC:ready { protocolVersion, wsPort } / fatal { message, diagnostic },另外收 shutdown。

运行时做的事(profile 装配、webServer 替身、认证接管、客户端 transport 与账号面)、出口面与依赖边界见设计 桌面host的运行时面与依赖边界;载波形态的取舍见设计 桌面运行形态与窗口对齐。