Skip to content
A simple Rust/WASM Cloudflare worker that generates QR codes as SVG images
Rust JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
worker
.gitignore
Cargo.toml
README.md
rustfmt.toml
wrangler.toml

README.md

qr-worker

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

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
You can’t perform that action at this time.