This project aims to be the best, clearest library for generating QR Codes. My primary goals are flexible options and absolute correctness. Secondary goals are compact implementation size and good documentation comments.
This work is an independent implementation based on reading the official ISO specification documents. I believe that my library has a more intuitive API and shorter code length than competing libraries out there. The library is designed first in Java and then ported to TypeScript, Python, Rust, C++, and C. It is open source under the MIT License. For each language, the codebase is roughly 1000 lines of code and has no dependencies other than the respective language’s standard library.
Available in 6 programming languages, all with nearly equal functionality: Java, Java (fast), TypeScript/JavaScript, Python, Rust, Rust (no heap), C++, C
Significantly shorter code but more documentation comments compared to competing libraries (a competitive analysis is provided near the bottom of this page)