Client-side QR code generator. Built with Rust (compiled to WebAssembly) and a plain HTML/CSS/JS frontend. Nothing leaves the browser.
Live at qrc.api.br.
A single Rust function (generate_qr) uses the qrcode crate to produce an SVG string. It's compiled to WASM with wasm-bindgen and called directly from JavaScript. The page respects prefers-color-scheme for dark/light mode, adjusting QR colors to match.
Type or paste text into the input field to generate a QR code in real time.
You can also link directly to a QR code with a query parameter:
https://qrc.api.br/?data=https://example.com
Or embed it in an iframe:
<iframe src="https://qrc.api.br/?data=hello" width="350" height="400"></iframe>Requires wasm-pack:
wasm-pack build --target web --releaseThen serve the project root with any static file server (e.g. python3 -m http.server).