it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

[FEAT] Suggest to use @qrcode-js/qrcode as qrcode generator

Open ruggi99 opened this issue 2 years ago • 5 comments
trafficstars

Hi, great project saw on noted.lol.

I'm the author of @qrcode-js/qrcode a library for Node and browser to generate qrcodes.

Maybe it's worth to try it and see if it's better than qrcode

ruggi99 avatar Mar 24 '23 11:03 ruggi99

Hi @ruggi99 Thank you for the suggestion!

What would the benefits of using @qrcode-js/qrcode instead of qrcode ? Does it have more interesting features ?

CorentinTh avatar Mar 24 '23 12:03 CorentinTh

I would rather see https://github.com/nuintun/qrcode because it also had the ability to decode QR codes and that would be a very nice feature!

TCB13 avatar Mar 24 '23 23:03 TCB13

Hi @CorentinTh , sorry for being late and Happy Easter.

I think it has the same features like qrcode but you can personalize the output of the canvas like you want. You can style it like Telegram or Instagram via a property or you can style on your own via a function. For example: Do you want your dots being a triangle instead? Then write a function (in Javascript) that draws a triangle on the canvas.

Also my project is a monorepo that provides a core library and wrappers around it for NodeJs and browser. So if someone wants to use it only on browser than it would not have to download node-canvas (as a dependency) that it weights around 250 MB if I remember correctly (that was a problem I was facing in a old project and that's why I wrote the monorepo). Also my library should work with Vanilla JS and all framework out there, even Vue.js.

As pointed out my library does not decode qrcodes and I have no plan to support it because I strongly think that encoding and decoding qrcodes are separate functions that share almost no code between them.

I have a PR pending wrapping fastify and docker around the core library to create a server serving qrcodes.

ruggi99 avatar Apr 09 '23 08:04 ruggi99

Hi @ruggi99, @TCB13 and @CorentinTh, implemented enhancements of qr code generator in https://github.com/CorentinTh/it-tools/pull/1104 and QR decoder in https://github.com/CorentinTh/it-tools/pull/914

sharevb avatar Jun 09 '24 12:06 sharevb

Hi @ruggi99, @TCB13 and @CorentinTh, implemented enhancements of qr code generator in #1104 and QR decoder in #914

Thank you very much for providing this features :)

TCB13 avatar Jun 13 '24 19:06 TCB13

Hi @ruggi99, implemented : https://sharevb-it-tools.vercel.app/qr-code-decoder, https://sharevb-it-tools.vercel.app/qrcode-generator, https://sharevb-it-tools.vercel.app/wifi-qrcode-generator, https://sharevb-it-tools.vercel.app/qr-contact-info-generator

And if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar Oct 27 '25 21:10 sharevb