How morsslieb/qrgenerator works
This is a static, browser-only QR-code design and download app. The user enters text and configures QR appearance and an optional center logo; the app encodes the text, builds and draws a design for live preview, then creates a full-resolution PNG or SVG download. Other documented capabilities include presets, randomization, validation, contrast/readability guidance, and local image processing. Edges use README statements or shown source references; the excerpts are partial, so some internal event wiring is not represented.
Main entry points: app.js UI controller · export.js PNG and SVG export · qr-generator.js Scene geometry · index.html App page
Components 12
User interface
- App page
index.html - UI controller
js/app.js - Validation and guidance
js/app.js - Logo input
js/app.js - App styling
css/style.css
QR generation
- QR encoding
js/qr-generator.js - Scene geometry
js/qr-generator.js - Canvas rendering
js/qr-generator.js
Design assets
- Built-in icons
js/icons.js
Local export
- PNG and SVG export
js/export.js - Browser download
Other components
- User
Connections 13
- User → App page: opens and configures
README.md - App page → UI controller: provides interface
README.md - UI controller → QR encoding: encodes text
js/app.js - UI controller → Validation and guidance: checks readability
README.md - UI controller → Logo input: processes logo
README.md - UI controller → Built-in icons: renders icon choices
js/app.js - UI controller → Scene geometry: requests preview design
README.md - QR encoding → Scene geometry: provides matrix
js/qr-generator.js - Scene geometry → Canvas rendering: provides geometry
js/qr-generator.js - UI controller → PNG and SVG export: requests download
js/export.js - PNG and SVG export → Scene geometry: builds export geometry
js/export.js - PNG and SVG export → Canvas rendering: renders PNG
js/export.js - PNG and SVG export → Browser download: saves file locally
js/export.js