I wrote a pure JavaScript HTML QR Code element several years ago. It’s very easy to use:

<script src="https://lnsy-dev.github.io/qr-code-element/src/qr-code-element.js"></script>
<qr-code value="cool url link here"></qr-code>

It acts like a standard div, and you can style it with standard CSS background and foreground colors.

I use this code to generate labels that I can print out. My label-making software can be found here.