royenheart/dsh-plugin-perf0

dsh-plugin-perf

DeepSeek Harness 网页性能优化插件,提供 shell 资源和客户端包的压缩、不可变缓存以及预加载提示,无需修改 dsh 源码。

AI 分析

核心用途是优化 DSH 网页加载性能。适合需要提升 Web 界面响应速度、减少静态资源传输延迟的 DSH 用户,支持 gzip/brotli 压缩与不可变缓存配置。

包名
dsh-plugin-perf
版本
0.1.0
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:royenheart/dsh-plugin-perf

Configuration

FieldTypeDefaultDescription
compression'gzip' | 'br' | 'gzip+br' | 'none'gzipContent-Encoding(s) the plugin may emit when the request accepts them.
immutableCachebooleantrueEmit Cache-Control: public, max-age=31536000, immutable for content-addressed shell assets and plugin bundles.
preloadClientBundles'none' | 'immediate' | 'all'immediateInject `` for stage-one (immediately:true) entries, every entry, or no entries.
cacheMaxEntriesnumber128Compressed-buffer cache entries.
cacheMaxBytesnumber67108864Total bytes of cached compressed buffers (64 MiB).
logSummarybooleanfalseLog one bytes-served summary line on unload.
autoDetectbooleantrueProbe the official server at startup and skip each optimization point it already implements.
probeTimeoutMsnumber2000Timeout for one official-capability probe request; probe failures keep the plugin enabled.

All fields are optional and conservative; the schema is exported as Config (Schemastery) and the plugin also works with no config at all.