How sebastiangerhaupt/qr_box works
QR Box is a browser-based QR-code generator that also aims to teach how QR codes are created. Its runtime is concentrated in js/main.js: the QR class prepares encoded content and error-correction data, while Matrix builds and draws the QR pattern. The excerpt shows page-load generation of a sample code and a call to draw it; the README describes generating custom codes, but the input interface and the rest of the page wiring were not sampled, so those links are left unverified.
Main entry points: main.js Page startup · index.html QR Box page
Components 8
QR encoding
- QR data encoding
js/main.js - Error correction
js/main.js
QR matrix
- Matrix construction
js/main.js - Matrix drawing
js/main.js
Browser runtime
- QR Box page
index.html - Page startup
js/main.js
Other components
- User
- QR code
Connections 7
- User → QR Box page: uses
- QR Box page → Page startup: loads
- Page startup → QR data encoding: creates QR
js/main.js - QR data encoding → Error correction: builds blocks
js/main.js - Page startup → Matrix construction: builds matrix
js/main.js - Matrix construction → Matrix drawing: draws
js/main.js - Matrix drawing → QR code: renders