Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.12 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.12 KB

qr-worker

A simple WASM worker that generates QR codes as SVG images.

Deploy to Cloudflare Workers

Query format

https://worker.example.com/fg=000000/bg=ffffff/min=128/max=256/ec=m/qz=1?data

Options are position-insensitive.

Option Description Values Default
data (everything after ?) Data to encode in the QR code Any Whole URL of the request
fg Foreground color Hex colors (without #) 000000
bg Background color Hex colors (without #) ffffff
min Minimum size of the resulting code, including the quiet zone u32 n/a
max Maximum size of the resulting code, including the quiet zone; overrides effect of min u32 n/a
ec Error correction l, m, q, h - see qrcode crate docs m
qz Quiet zone 1 = true, 0 = false 1