u32i64 / qr-worker

A simple Rust/WASM Cloudflare worker that generates QR codes as SVG images

Home Page:https://qr.warp.workers.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple Rust/WASM Cloudflare worker that generates QR codes as SVG images

https://qr.warp.workers.dev


Languages

Language:Rust 91.2%Language:JavaScript 8.8%