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-model-router-gateway

v1.0.5

Published

DeepSeek Harness plugin: group every model DSH can reach into ordered fallback chains and expose them through an OpenAI-compatible gateway (BaseURL + key) for phones and other external clients.

Readme

dsh-model-router-gateway

把 DSH 能调用的所有模型组成顺序降级链,用一个 OpenAI 兼容网关(BaseURL + Key)暴露给手机和任何外部客户端——模型 A 没额度/限流/报错时无感切到 B,对话不中断。

  • 全量模型:DSH 里能调的都能转发(llm 服务枚举),可见性按渠道勾选
  • 顺序降级:链条按优先级尝试,失败模型进入冷却期自动跳过,响应回显实际作答模型
  • 一个入口:/v1/models + /v1/chat/completions,流式与非流式,Bearer Key 保护
  • 局域网监听:可选 publicPort 绑 0.0.0.0,手机热点直连
  • 可视化卡片:路由、Key、链条排序(拖拽/箭头)、状态文件持久化
  • 公网安全:匿名 /config 只回掩码视图;管理写操作要求本机/已登录会话
  • 卡片自升级:检查 npm latest,一键升级,无需终端
  • 自带文档:完整手册在插件卡片「使用说明」面板,离线可用

安装

dsh plugin --profile <你的profile> add dsh-model-router-gateway

桌面版 / Web 版均免重启生效。

使用(三步)

  1. DSH 里打开 设置 → 插件 → 模型路由网关 卡片;
  2. 复制 BaseURL,确认网关 Key;
  3. 任意 OpenAI 兼容客户端填:

| 字段 | 值 | |---|---| | Base URL | http://<主机>:<端口>/api/model-router-gateway/v1 | | API Key | 你的网关 Key | | Model | 路由组 ID(如 default)或 provider:model |

许可:MIT。tool/function calling 暂未转发;当前为聚合后伪流式(真流式在 v1.1 计划中)。