qr code generator tool
I added a new tool to my online tools collection. A QR code generator, available at tools.thisotherthing.co/qr.
Just start typing in the input field, and the qr code underneath with automatically update.
Implementation
Like the other tools on tools.thisotherthing.co it's made using vite and preact (with prerendering).
The code generation is handled with the rust qrcode crate. It get get's build with wasm-pack
, and handled in vite using vite-plugin-wasm
.
I also updated the github action, that auto deploys the apps, to be able to build the rust code.
Purpose
I've recently been more excited to make more web tools, since I updated/combined them into a single page rencently (and finished switching them from nextjs/react to vite/preact). I also want to make more stuff for myself (without ads, tracking, etc).
So while this qr code generator itself isn't that exciting, it was the first thing that came to mind. And was a nice excuse to look into using rust/webassembly with vite.
This should make a lot of cool things possible. Even if it's just making code from rust crates run in the web.
Future
I think this qr code generator is mostly going to stay as is. It does what it's supposed to.
But the possibility of using rust for more things here is making me really excited.
Something I'd really like to build next is a text diffing tool. There are ones available online already, but I'm never sure I can trust them, and where the pasted text might end up.