How sleepyhead46/emmortal-qr works
Emmortal is a browser-based QR generator: users choose a purpose, enter details, adjust appearance, preview the code, and export PNG or SVG. The main workflow and rendering, styling, and export responsibilities live in the client-side QR studio; theme preference is a separate browser-local feature. The README documents the purpose formats and privacy behavior, while the sampled source shows the QR library calls and theme persistence. Unsampled implementation details are represented only where the README documents them.
Main entry points: page.tsx Page shell · theme-toggle.tsx Theme toggle · qr-studio.tsx QR preview · layout.tsx Root layout
Components 12
QR generation
- QR studio
app/qr-studio.tsx - Purpose forms
app/qr-studio.tsx - Payload validation
app/qr-studio.tsx - Style and logo
app/qr-studio.tsx - QR preview
app/qr-studio.tsx - QR renderer
- PNG / SVG export
app/qr-studio.tsx
App presentation
- Page shell
app/page.tsx - Root layout
app/layout.tsx
Local preferences
- Theme toggle
app/theme-toggle.tsx
Other components
- Visitor
- Browser localStorage
Connections 15
- Visitor → Page shell: opens
README.md - Page shell → QR studio: renders
app/page.tsx - Page shell → Theme toggle: renders
app/page.tsx - Visitor → Purpose forms: chooses and enters
README.md - Purpose forms → Payload validation: validates and encodes
README.md - Visitor → Style and logo: customizes
README.md - Payload validation → QR preview: updates data
README.md - Style and logo → QR preview: updates style
README.md - QR studio → QR renderer: creates, updates
app/qr-studio.tsx - QR renderer → QR preview: renders
app/qr-studio.tsx - Visitor → PNG / SVG export: requests download
README.md - PNG / SVG export → QR renderer: downloads
app/qr-studio.tsx - Visitor → Theme toggle: toggles
app/theme-toggle.tsx - Theme toggle → Browser localStorage: reads and writes preference
app/theme-toggle.tsx - Root layout → Page shell: wraps