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.
Read Buffers or file paths offline without stalling the event loop, then branch on msg.texts, msg.codes or catch.
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.
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.
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.
Create a known reference image, trigger the flow and check the decoded string character by character.
Create a text QR code encoding https://qrcode-ai.com/ and save the file as qr-reference.png.
{
"payload": "qr-reference.png",
"profile": "fast",
"budgetMs": 0
}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 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.
Refer to the official library listing and README for installation steps, image limits and supported formats.