dsh-status-beacon
其他 活跃维护

dsh-status-beacon

toposferapro/dsh-status-beacon

实时监控 API 接口可用性,以红黄绿信号灯形式直观呈现服务健康状态。集成简易,异常触发即时警报,开发者不再需要翻查日志,一眼掌握接口波动。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
28 KB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:toposferapro/dsh-status-beacon
git clone https://github.com/toposferapro/dsh-status-beacon.git
git clone git@github.com:toposferapro/dsh-status-beacon.git
README.md main

dsh-status-beacon

Availability traffic light for the DeepSeek API, as a DeepSeek Harness (DSH) plugin.

A coloured dot in the composer tool row (left of the model menu):

  • green — All Systems Operational;
  • yellow — Degraded Performance;
  • orange — Partial Outage;
  • red — Full Outage, or the API is not answering;
  • grey — state unknown (the status feed cannot be read).

Clicking the dot opens a panel anchored to it by a caret: API response latency,
the latest incident with its lifecycle stage (Investigating → Identified →
Monitoring → Resolved), its start time, the affected components, the incident
description and a link to the status page.

How it works

The host half takes two independent readings once a minute:

  1. Reachability — GET https://api.deepseek.com/models without a key:
    200/401/403 means the server is alive, while a timeout, 5xx or network
    break means it is not answering.
  2. Status feed — https://status.deepseek.com/history.rss: the latest
    incident, its stage and what it affected.

The colour follows DeepSeek's own four-state scale. A closed incident never
tints the light — only an active one does, otherwise a resolved degradation
would keep the indicator yellow forever.

The model API key is deliberately not used: the alive/not-alive signal is
taken without authorisation, so the plugin survives DSH upgrades that move the
key storage around.

The browser half reads /plugins/dsh-status-beacon/api and refreshes the dot
every 30 seconds. Styling uses the DSH design tokens (--dsw-alias-*), so the
widget matches the interface and follows the dark theme.

Installation

dsh plugin --profile web add github:toposferapro/dsh-status-beacon#<commit>

If git is not available — for example inside the DSH container itself, where
git is often absent — the github: form cannot be resolved, because the
package manager shells out to git for it. Install the same pinned commit from
a tarball URL instead:

dsh plugin --profile web add \
  https://codeload.github.com/toposferapro/dsh-status-beacon/tar.gz/<commit>

Either form adds both the dependency and the dsh.profile.bundles entry. After
any dsh plugin add/remove, check dsh.profile.bundles: this plugin must stay
in the bundle list.

Plugins are loaded when DSH starts, so restart the dsh container after
installing:

sudo docker restart dsh

Until that restart the host half is not running and
/plugins/dsh-status-beacon/api answers 404. To roll back, run
dsh plugin --profile web remove dsh-status-beacon and restart again.

Requirements

  • DSH with the web profile.
  • Outbound HTTPS to api.deepseek.com and status.deepseek.com.
  • No API key, no extra dependencies.

License

MIT.