QRgen is a QR generation library fully written in Nim without any external dependencies other than std/strformat and std/encodings.
You can find it in GitHub and it's also published on nimble, with the stable release v1.0.0.
This is a extract of the README showing some features and examples:
Here you can see an example usage:
import QRgen
let myQR = newQR("https://github.com/aruZeta/QRgen")
Terminal:
myQR.printTerminal
Svg:
myQR.printSvg
myQR.printSvg("#1d2021","#98971a") # The first param sets the "light" or "background" color and the 2nd the "dark" or "module" color
myQR.printSvg("#1d2021","#98971a",2) # 2 sets the radius of the alignment patterns
myQR.printSvg("#1d2021","#98971a",3.5,0.4) # 0.4 sets the radius of each module (the squares)
As you can see for the moment only svg and terminal outputs are supported.