royenheart/dsh-plugin-perf0

dsh-plugin-perf

Out-of-tree dsh web-performance plugin: compression and immutable caching for shell assets and client bundles, plus preload hints — additive, disposable, no dsh source changes required.

AI Analysis

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

Package
dsh-plugin-perf
Version
0.1.0
Last updated
Aug 16, 2026

Install

$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.