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

@dsh-workbench/adapter-runtime

v1.2.12

Published

Opencli, browser and data runtime adapters.

Readme

@dsh-workbench/adapter-runtime

工作台运行时的强耦合适配器组合:opencli、browser、data。

模块

src/foundation/  命令解析、隔离路径、session、错误形状
src/cli/         opencli 命令、隔离运行时、窗口参数
src/browser/     页面读取与查找
src/data/        DataReader(http / browser / command / recipe / 批量 recipe / 公共通道)
src/git/         git 读端口
src/libs/        本机库读端口
src/command/     命令面读端口
channel/         随包出货的 opencli 插件(workbench fetch / workbench send)

foundation 是最底层;browser / cli / data / git / libs / command 同层, 共享 foundation 的命令解析、隔离路径、session 和错误形状,所以放在同一个包内,但保持独立目录。

channel/ 不是源码目录:它是资产,不进 tsc、不进 barrel,只被复制进隔离运行时 (plugins-npm → peer symlink → opencli plugin install)。cookie / cookieValue 两种凭据来源 的配方会先走它,跑不起来就回落页面脚本;endpoint / meta / global / storage 永远走页面脚本。

入口

import { createDataReader, browserRead, createOpencli } from '@dsh-workbench/adapter-runtime';
import { scriptOf, scriptOfMany, describeRecipe } from '@dsh-workbench/shared/host';

边界

只依赖 @dsh-workbench/shared;不依赖 supply、profile、probe,也不依赖 core 内部。 src/data 可以依赖 src/browser,src/browser 可以依赖 src/cli,反向禁止。

验证

pnpm --filter @dsh-workbench/adapter-runtime run build
pnpm --filter @dsh-workbench/adapter-runtime run test