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

@x1a0f3n9/dsh-failover-queue

v0.1.13

Published

CC Switch-style P1/P2/P3 model failover for DeepSeek Harness. Circuit probe failback to P1.

Readme

dsh-failover-queue

CC Switch 风格的 P1 / P2 / P3 故障转移插件,给 DeepSeek Harness / xfdsh 用。

输入框右侧有一颗 P1 / P- 芯片。点开后:

  • 开关控制自动故障转移
  • 拖动手柄改优先级(P1 主,P2 / P3 备用)
  • 从当前已配置的供应商+模型里加路由

失败时:同一条路由先走 llm-retry;AUTH / RATE_LIMIT / NO_ADAPTER / SERVER / TIMEOUT / TRANSPORT 立刻熔断并切下一条。503 不会在同一条路由上重试 20 次。cooldownMs 之后 P1 进入半开探活,下一次请求会切回 P1,不会粘在 P2。开启后请求优先打健康的最高优先级档,不看会话里随手选的模型。

安装

dsh plugin --profile web add github:LunFengChen/dsh-failover-queue

本地开发:

dsh plugin --profile web add /path/to/dsh-failover-queue

装完刷新 Web GUI。输入框右侧会出现 P-。设置左侧导航有独立的 故障转移 页,里面是同一套队列编辑。

命名

| 用途 | 名字 | |---|---| | GitHub | LunFengChen/dsh-failover-queue | | npm / 包 | @x1a0f3n9/dsh-failover-queue | | 插件 id | dsh-failover-queue | | 设置命名空间 | dsh-failover-queue | | 斜杠命令 | /failover |

不用 dsh-llm-failover:GitHub 上已经有好几份同名插件,这个名字专门表示 P 队列。

命令

/failover            # 打印队列,* 是当前
/failover on|off     # 开关

配置(cordis.yml)

- id: dsh-failover-queue
  config:
    cooldownMs: 60000
    failureThreshold: 2
    successThreshold: 2
    immediateCodes: [AUTH, RATE_LIMIT, NO_ADAPTER, SERVER, TIMEOUT, TRANSPORT]

限制

  • 队列项是 供应商 + 模型,不是整条供应商。
  • 同一步切路由会丢掉当前 KV cache。
  • 余额查询还没做;下个版本按 host 打 DeepSeek / 硅基 / OpenRouter 的余额接口。
  • retryPolicy.mode: always 时,只有 immediateCodes 会打断重试去切 P。