miniQR is a micro HTTP service that generates QR codes on the fly.
This server is very small (~1MB docker image) and portable since it runs anywhere Rust can compile for.
Just use the dockerfile provided in the root of the project.
Let's say you want a QR with this text in it: fkpt
.
To get this QR, you will need to send a GET request to http://miniqr_instance/fkpt
. That's it.
Since the QR image that is provided is ridiculously small, you will need to upscale it using your platform's GUI toolkit.
And I am guessing that your GUI toolkit is CSS, so here is a snippet for that:
img.qrcode-image {
width: 400px;
image-rendering: pixelated; /* This line "unblurs" the qr code */
padding: 60px;
background: white;
}
<img src='http://miniqr/aaa' class='qrcode-image'>