QR code · scan to open
A QR code drawn as one SVG path, encoded right here — no library, no request. Any text, a signal that redraws as it changes, square, rounded or dotted modules, a logo in the middle, and a PNG to save.
Type and it redraws · any text, UTF-8 · save it as a PNG
Made in the page — no library, no request: versions 1–40, four levels of error correction, the best of eight masks.
Looks · a logo in the middle (the error correction rises to H to carry it)
Usage
import { QRCode, qrSvg } from "./components/qrcode.js"; QRCode({ value: url, size: 176, caption: "Scan to open", download: true })QRCode({ value: otpauthUri, look: "dots", color: "#4f46e5" }) // an authenticator's secretQRCode({ value: url, logo: "/logo.svg" }) // error correction rises to H qrSvg(text, { size: 256 }) // an SVG string — for a server or an email