跳到正文

hellosky983/dsh-qrcode

30最近提交 2026年8月14日

dsh-qrcode DSH 插件

此插件提供 qrcode 和 barcode 模型工具,完全本地编码和渲染,零运行时依赖。专为需要在 DSH 会话中生成二维码(URL、WiFi、vCard、tel、sms)或一维条形码(Code128、EAN-13)的代理和用户设计,输出格式包括 SVG、PNG 或 ASCII,支持完全离线或沙盒环境。

如何安装 dsh-qrcode DSH 插件

dsh plugin add github:hellosky983/dsh-qrcode

复制不会执行命令。安装 dsh-qrcode DSH 插件前请核对仓库和版本。

dsh-qrcode DSH 插件数据来源

dsh-qrcode DSH 插件快照日期:2026年8月16日

discovered

dsh-qrcode DSH 插件能做什么

  • 从 URL、WiFi 配置、vCard、tel、sms 或纯文本生成二维码
  • 生成 Code128 和 EAN-13 符号的一维条形码
  • 输出 SVG 标记、PNG 数据 URL 或 ASCII 预览
  • 完全本地计算,无需网络访问或 shell 依赖
  • 可配置纠错级别(L/M/Q/H)、缩放、边框、前景/背景色及掩码

dsh-qrcode DSH 插件适合哪些场景

  • 在受限网络环境中创建可扫描的 URL 以便分享
  • 生成 WiFi 二维码方便访客连接
  • 在离线库存系统中为产品标识生成条形码
  • 在代理响应中嵌入 SVG 或 ASCII 艺术二维码
  • 对照 zxing-cpp 等标准库测试编码准确性

dsh-qrcode DSH 插件适合谁

  • 需要无互联网访问生成可扫描码的 DSH 用户
  • 在沙盒会话中需要条形码生成的自动化工作流开发者

dsh-qrcode DSH 插件的限制

  • 仅支持二维码和 Code128/EAN-13 条形码格式,不支持其他符号
  • 需要 DSH 0.1.0-rc.6 或更高版本,且插件必须声明 `inject = ['tools']`
  • PNG 输出为数据 URL;如需文件,代理应优先使用 SVG 格式并保存标记

dsh-qrcode DSH 插件的仓库 README 摘录

以下文字摘自 dsh-qrcode DSH 插件的上游仓库 hellosky983/dsh-qrcode 的 README,版权归原作者,仅作引用。

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): ```bash dsh plugin add github:hellosky983/dsh-qrcode ``` Or clone and install locally: ```bash 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:

阅读完整 README仓库许可: MIT

dsh-qrcode DSH 插件常见问题

安装插件后看不到 qrcode 或 barcode 工具怎么办?

安装后请重启 DSH 会话。如果工具仍然不显示,检查 `dsh --dump-config` 中是否出现该插件的 bundle 行。同时确保插件声明了 `inject = ['tools']`;如果安装的是旧版本,请从最新 commit 重新安装。

如何获取 PNG 文件而不是数据 URL?

`qrcode` 或 `barcode` 的 PNG 输出是数据 URL。如果需要文件,建议使用 `format=svg`,然后将返回的 SVG 标记保存为 `.svg` 文件。代理可以按需转换或使用。

二维码可以编码哪些内容?

可以编码 URL、WiFi 配置字符串(例如 `WIFI:S:MySSID;T:WPA;P:pass;;`)、vCard 数据、电话号码、短信或纯文本。插件会根据输入文本自动检测格式。

这个插件需要联网吗?

不需要。所有编码和渲染都在本地完成,无需网络调用、shell 命令或外部依赖。完全离线或沙盒 DSH 会话中均可使用。

如何升级插件到最新版本?

在克隆的仓库目录中执行 `git pull`,然后重新运行安装命令 `dsh plugin add .`。如果通过 GitHub 直接安装,可以重新运行 `dsh plugin add github:hellosky983/dsh-qrcode` 获取最新 commit。