Skip to content
Back to skills

Sandbox Qr

ASecurity

Encode text into a QR matrix or SVG inside a Code node or CodeAct action, with uqr running in the guest

  • 552 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 1, 2026
ai-agentsgonode

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 1, 2026

npx -y skills add nodetool-ai/nodetool --skill sandbox-qr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sandbox Qr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sandbox Qr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nodetool-ai-sandbox-qr/badge)](https://www.skillsdirectory.com/skills/nodetool-ai-sandbox-qr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sandbox-qr
description: Encode text into a QR matrix or SVG inside a Code node or CodeAct action, with uqr running in the guest
---

# QR codes in the sandbox

Specifier: `@nodetool-ai/sandbox-qr`. One module, the `uqr` root export.
Import it at the top of the body.

## encode — text to a QR matrix

```js
import { encode } from "@nodetool-ai/sandbox-qr";

const qr = encode(inputs.text);
return { size: qr.size, data: qr.data };
```

`data` is a boolean matrix (`true` is a dark module). `size` is the module count.

## encode — text to SVG

```js
import { encode } from "@nodetool-ai/sandbox-qr";

const qr = encode(inputs.text);
const cells = [];
for (let y = 0; y < qr.size; y++) {
  for (let x = 0; x < qr.size; x++) {
    if (qr.data[y][x]) cells.push(`<rect x="${x}" y="${y}" width="1" height="1"/>`);
  }
}
const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${qr.size} ${qr.size}" shape-rendering="crispEdges">${cells.join("")}</svg>`;
return { svg, size: qr.size };
```

Or pass the matrix to `@nodetool-ai/sandbox-fabric` if you already have that pack.

## Gotchas

- **Guest only.** No canvas, no PNG encoder. Build SVG yourself or rasterize with Fabric.
- **Named export.** `import { encode } from "@nodetool-ai/sandbox-qr"`.

Files in this skill

  • SKILL.md1.2 KB
  • package.json857 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.