A minimal web app that scans QR codes and POSTs the result to a webhook you specify using a URL query parameter.
It uses the html5-qrcode library via CDN.
- 📷 Uses the device camera (rear camera preferred) to scan QR codes
- ✅ Shows a full-screen overlay with the scanned data
- 🟦 Confirm sends the scanned text to your webhook via
fetch()(POST,application/json) - ❌ Cancel closes the overlay and resumes scanning
- ⏸️ Pauses scanning while the overlay is visible (camera stays on)
- The scanner starts automatically when the page loads.
- When a QR code is detected:
- The decoded text is shown in a confirmation overlay.
- Scanning is paused to prevent duplicate reads.
- User action:
- Confirm → sends the scanned text to the webhook endpoint and resumes scanning.
- Cancel → dismisses the overlay and resumes scanning.
endpoint(required): webhook URL to POST toconfirm(optional, default1): set to0/falseto skip the confirm screen and send immediately after scanning- Any other params are forwarded and appended to the webhook URL (except
confirm, which is only used by the scanner)
Example:
https://loqode.github.io/Glide-QR-Scanner?endpoint=https://example.com/webhook&rowid=12345
Skip confirmation:
https://loqode.github.io/Glide-QR-Scanner?endpoint=https://example.com/webhook&confirm=0&rowid=12345
https://loqode.github.io/Glide-QR-Scanner
This is the base URL you will embed inside Glide.
In Glide:
- Create a new workflow
- Add a Webhook trigger
- Copy the generated Webhook URL
This webhook will receive the scanned QR text.
In Glide, use a Construct URL, Template, or dynamic value to append the webhook URL as the endpoint query parameter.
Example:
Paste the constructed URL into a Web Embed component in the Glide Layout Editor.
- The camera scans a QR code
- The scanned value is shown for confirmation
- When Confirm is pressed, the QR text is sent as JSON in the request body to the Glide webhook
- The scanner then resumes automatically