Node-RED QR Code Scanner Node

Decode QR codes from image Buffers or file paths straight on your Node-RED host inside a worker thread, making zero network requests and needing no native compiler.

Install via Manage palette

Needs Node-RED 5.0+ and Node.js 22.9+. No native compiler required.

Open Flow Library
  1. 1

    Go to Menu → Manage palette → Install inside Node-RED and search for qrcode-barcode-scanner.

  2. 2

    Install @qrcode-ai-com/node-red-qrcode-barcode-scanner and drag qr & barcode scan from the parser section.

  3. 3

    Connect a Buffer or file path, or load the starter flow via Menu → Import → Examples → scan-image.

Processes WebAssembly in sequence on one worker thread per Node-RED instance so other flows stay smooth.

Route decoded QR codes across Node-RED flows

Read Buffers or file paths offline without stalling the event loop, then branch on msg.texts, msg.codes or catch.

Buffer or file path input

Accepts msg.payload (or any configured Image property) carrying PNG, JPEG, WebP or GIF Buffers from file in, HTTP or MQTT, or a local file path.

msg.payload, msg.texts & msg.codes

Places the complete report on msg.payload, decoded strings on msg.texts and base64 raw + symbology objects on msg.codes while keeping other properties intact.

Dynamic overrides & catch errors

Switch from fast (800 ms default) per message via msg.profile and msg.budgetMs; corrupt or oversized inputs (>8 MiB, 4,096 px) flow to catch.

Try a QR image in Node-RED

Create a known reference image, trigger the flow and check the decoded string character by character.

qr-reference.png

Create a text QR code encoding https://qrcode-ai.com/ and save the file as qr-reference.png.

Pass an image message to qr & barcode scan

JSON
{
  "payload": "qr-reference.png",
  "profile": "fast",
  "budgetMs": 0
}
Expected result · QR code
https://qrcode-ai.com/

Node-RED reads the file inside its worker thread and populates msg.texts with ["https://qrcode-ai.com/"] together with msg.codes and msg.payload.

Sample output for qr-reference.png.

Node-RED QR Code Scanner node questions

Node-RED 5.0+ prerequisites, Buffer vs path inputs, per-message overrides, limits and licensing.

Go to Manage palette → Install and look up qrcode-barcode-scanner, or execute npm install @qrcode-ai-com/node-red-qrcode-barcode-scanner inside ~/.node-red and restart Node-RED. Refer to the Node-RED Flow Library or npm.

Node-RED 5.0 or newer along with Node.js 22.9 or newer. Since the scanner engine executes as WebAssembly, neither a native compiler nor a host C library is required.

Yes. By default it reads msg.payload (configurable via the Image field), taking either a Buffer of PNG, JPEG, WebP or GIF bytes (from file in, http request or MQTT) or a local file path string.

It puts the complete engine report on msg.payload, decoded strings on msg.texts and structured detections (including base64 raw bytes) on msg.codes while leaving other msg fields untouched. An empty image returns msg.texts as [] with status no code.

Profile defaults to fast (800 ms budget, reduced quality score). You can change it to frame (80 ms, no score) or full (4000 ms, complete score) inside the node editor, or override per message using msg.profile and msg.budgetMs.

Inputs are capped at 8 MiB, 4,096 pixels per edge and 16 million total pixels. Corrupt, missing, unsupported or oversized files raise errors handled by a standard Node-RED catch node (such as QRS-001 or QRSCAN_INPUT_LIMIT).

Yes. Both the node and its WebAssembly engine package are MIT-licensed (with Apache-2.0 notices retained for two reader modules). Decoding runs offline on your host and never consumes QR Code AI generation credits.

Node-RED setup and QR Code Scanner references

Refer to the official library listing and README for installation steps, image limits and supported formats.