Skip to content

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

Notifications You must be signed in to change notification settings

coral-xyz/qr-worker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 91.2%
  • JavaScript 8.8%