seantan1983/dsh-qr-toolkit

dsh-qr-toolkit adds two model-facing QR / barcode tools to DSH: qr_decode reads QR codes and barcodes from a local path or URL with jsqr first and a ZXing MultiFormatReader fallback, and qr_generate renders text or links into a PNG inside the session workspace.

dsh-qr-toolkit adds two model-facing tools to DeepSeek Harness. qr_decode reads a QR code or barcode from an image path or http(s) URL (PNG/JPEG) and returns the content, the detected format (QR_CODE, CODE_128 and so on) and which engine produced the result, or an error when nothing is found. qr_generate takes text or a link plus an optional size (128-2048) and file name and writes a PNG under <session cwd>/.dsh-qr/. The dual-engine decode is the practical detail: jsqr handles QR codes as they appear in screenshots, and the ZXing MultiFormatReader fallback covers 1D and 2D formats jsqr cannot read, so a single tool covers both the 'scan this screenshot' and 'read this product barcode' cases without asking the model to pick an engine.

Tools & Capabilities ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add dsh-qr-toolkit

Copied verbatim from the README's preferred install line. The README also documents cd ~/.dsh/profiles/web && npm install dsh-qr-toolkit --save. npm package dsh-qr-toolkit at 0.1.1 (registry check 2026-10-16; the registry repository field resolves back to this repo).

Compatibility

The package joins the profile bundle layer through dsh.bundle, so restarting dsh web activates it. Config is optional and lives on the tool-qr row: maxInputBytes (default 20 MB per image), outputDir (default .dsh-qr) and timeoutMs (default 30000). The README's security statement is narrow and checkable: it reads only the image you point at (a local file or an explicit URL), writes only into the session workspace, makes no outbound traffic beyond a URL you pass in, caps input size to prevent OOM, and propagates AbortSignal for cancellation. Decoding is pure JS with no native dependencies - jsqr first, then @zxing/library's MultiFormatReader.

Details

Alternatives

1321928757/dsh-api-kit · 1321928757/dsh-mysql · 1624318455/dsh-plugin-tavily

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins