メインコンテンツへスキップ
S

dsh-qr-toolkit

seantan1983/dsh-qr-toolkit

QR code & barcode toolkit for DeepSeek Harness: decode images (PNG/JPEG, local or URL) and generate QR codes as PNG. 二维码/条码工具箱:解码与生成。

インストール

dsh plugin --profile web add github:seantan1983/dsh-qr-toolkit

README

dsh-qr-toolkit

QR code & barcode toolkit for DeepSeek Harness (DSH). Two model-facing tools:

  • qr_decode — decode QR codes / barcodes from images (local path or http(s) URL; PNG/JPEG)
  • qr_generate — render text/links into a QR code PNG in the session workspace

Dual-engine decoding: jsqr first (best for QR codes in screenshots), falling back to @zxing/library MultiFormatReader (QR / Code128 / EAN / UPC / DataMatrix / …). Pure JS, no native dependencies, Node ≥ 22.19.

Install

# Preferred: via the dsh CLI
dsh plugin --profile web add dsh-qr-toolkit

# Or npm into the profile dir
cd ~/.dsh/profiles/web && npm install dsh-qr-toolkit --save

Restart dsh web to activate (the package joins the profile bundle layer via dsh.bundle).

Tools

ToolParamsReturns
qr_decodesource: path or URLcontent, format (e.g. QR_CODE / CODE_128), engine (jsqr/zxing); error when nothing found
qr_generatetext (required), size (128–2048), fileNamePNG path under <session cwd>/.dsh-qr/

Config (all optional)

- id: tool-qr
  name: dsh-qr-toolkit
  config:
    maxInputBytes: 20971520   # per-image cap, default 20MB
    outputDir: .dsh-qr       # generation output subdir
    timeoutMs: 30000

Security

Reads only the image you point at (local file or explicit URL); writes only into the session workspace. No outbound traffic beyond a URL you pass in. Input size capped to prevent OOM; AbortSignal propagates for cancellation.

License

MIT

Sponsor / Donate

If this plugin helps you, feel free to buy the author a coffee (WeChat Pay):

WeChat donate

関連プラグイン