hellosky983/dsh-qrcode

DSH插件:离线二维码(SVG/PNG/ASCII)及条形码(Code128/EAN-13)生成器,无需网络,无需shell。

Project Overview项目介绍

This is a native DSH plugin that provides offline QR code and 1D barcode generation entirely via local computation. It requires no network access, no shell execution, and has zero runtime dependencies, making it ideal for restricted or sandboxed DSH sessions that block access to external APIs. You can install it directly from GitHub by running dsh plugin add github:hellosky983/dsh-qrcode in your terminal, or clone it locally and install from the cloned directory. To upgrade the plugin, just pull the latest changes and re-run the install command.

The plugin exposes two tools: qrcode for generating QR codes and barcode for 1D barcodes. The qrcode tool can encode URLs, WiFi credentials, vCards, phone numbers, SMS, and plain text, and supports SVG, PNG (as data URLs), and ASCII output formats. It also lets you adjust error correction level, scale, border, and colors to match your needs. The barcode tool supports Code128 and EAN-13 symbologies, also with SVG, PNG, and ASCII output. It is designed specifically for use inside DSH sessions that have limited or no network access.

This plugin is verified compatible with DSH version 0.1.0-rc.6 and the mainline DSH snapshot from August 14, 2026. If you do not see the tools after installation, you can try restarting DSH, or check that the plugin entry is correctly added to your DSH configuration. The plugin is released under the open source MIT license, and does not require any credentials, environment variables, or extra dependencies to run. All encoding logic is self-contained and validated against standard test vectors to ensure accuracy. You can uninstall it at any time by removing the entry from your profile and reinstalling your DSH dependencies.

这是一款原生面向 DeepSeek Harness 的离线二维码和条形码生成插件,完全依赖本地计算运行,不需要网络访问、不需要调用 shell,也没有任何额外运行依赖。它为 DSH 会话提供了 qrcode 和 barcode 两个工具,专门解决受限网络或沙箱环境下无法调用在线编码接口的问题,可输出 SVG、PNG 和 ASCII 三种格式的码图。

这款插件面向需要在 DSH 离线或受限网络会话中生成码图的用户和代理。安装完成后,用户既可以直接告知代理需要编码的内容生成,也可以直接通过命令行调用指定参数。比如直接让代理把指定链接转成二维码,或者调用 qrcode text="内容" format=svg 这类命令直接生成符合要求的码图。

该插件兼容 DSH 0.1.0-rc.6 及 2026 年 8 月 14 日的主线路径快照,采用 MIT 许可证开源,不需要环境变量或凭证,也不会读写任何本地数据,完全只处理输入参数返回结果。安装可通过 dsh plugin add 命令从 GitHub 或本地克隆安装,重启 DSH 即可解决工具不显示的问题。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin add github:hellosky983/dsh-qrcode

把 hellosky983/dsh-qrcode 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-qrcode

Awesome DSH Plugin

An offline QR code and barcode generator for DeepSeek Harness. Pure local computation — no network, no shell, no dependencies.

Overview

DeepSeek Harness sessions often run with restricted network access (no npm, no CDN, no online encoder APIs), so generating a scannable code from inside a session is not trivial. This plugin solves that: it provides qrcode and barcode model tools that encode and render entirely locally, with zero runtime dependencies. It is for agents and users who need QR codes (URLs, WiFi, vCard, tel, sms) or 1D barcodes (Code128, EAN-13) as SVG / PNG / ASCII output inside any DSH session — including fully offline or sandboxed ones.

Compatibility

  • DSH version: 0.1.0-rc.6
  • Mainline: verified against deepseek-harness mainline snapshots of 2026-08-14
  • Last verified: 2026-08-14

Install / Uninstall

Install (from GitHub):

dsh plugin add github:hellosky983/dsh-qrcode

Or clone and install locally:

git clone https://github.com/hellosky983/dsh-qrcode.git
cd dsh-qrcode
dsh plugin add .

Upgrade: re-run the install command after git pull.

Disable temporarily: remove the plugin row from your profile composition, or run:

dsh plugin remove dsh-qrcode

Uninstall: remove the dsh-qrcode dependency and its bundle entry from the profile package.json, then pnpm install.

Quick start

Tell the agent:

把这个链接做成二维码: https://example.com

or call the tools directly:

qrcode text="https://example.com" format=svg
barcode text="ABC-123" symbology=code128 format=svg

qrcode returns SVG markup (save to a .svg file), PNG data URLs, or ASCII previews. barcode supports code128 and ean13.

Configuration

Tool Option Default Description
qrcode text — (required) Content to encode: URL, WIFI:..., vCard, tel/sms, or plain text
qrcode format svg svg / ascii / png
qrcode ecl M Error correction level L/M/Q/H
qrcode scale / border / fg / bg / mask 4 / 4 / #000 / #fff / auto Rendering options
barcode text — (required) Content for Code128 (ASCII) or EAN-13 (12/13 digits)
barcode symbology code128 code128 / ean13

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-web-fetch-moli 下一个 Next dsh-simplify →