Web app to create retro Game Boy‑styled QR codes with customizable color palettes and controls for scale, padding, and QR size. Export as PNG or copy the Base64 output, and keep a local history of your generated items.
- Monochrome QR generation with preset and custom palettes.
- Title and subtitle rendered with pixel font (Press Start 2P).
- Controls for
scale,padding, andqrSizeto fine‑tune output. - Quick export:
PNG(download) andBase64(copy to clipboard). - Local history (up to 5 entries) with load and delete.
- UI built with accessible components and
Tailwindstyling.
Node.jsandnpminstalled.
npm install
npm run devThe app runs with Vite. Open your browser at the development server URL.
npm run dev: start the development server.npm run build: produce a production build indist/.npm run preview: serve the built app for verification.npm run lint: run ESLint on the project.
- Enter
TITLEandSUBTITLE(max 12 characters each). - Provide QR data (
URLor free text). - Choose a preset palette or enable
CUSTOMto use your own colors. - Adjust
SCALE,PADDING, andQR SIZEas needed. - Click
GENERATE QRto create the image. - Use
SAVE PNGto download orCOPY B64to copy the Base64. - Manage results from
HISTORY(load or delete).
src/components/QRGenerator.tsx: main UI for generation and export.src/lib/gb-qr.ts: QR composition engine and palettes (qrcode+ canvas).src/pages/Index.tsx: root page mounting the generator.src/App.tsx: routing and providers (toasts, tooltips, react‑query).index.html: metadata and entry tosrc/main.tsx.
- React + TypeScript + Vite
- Tailwind CSS
qrcodefor QR rendering- Simple Icons
- Build for production:
npm run build
- Serve the
dist/content on your hosting platform (Vercel, Netlify, GitHub Pages, static server, etc.). - To verify the build locally:
npm run preview
- Font: Press Start 2P (Google Fonts).
- QR library:
qrcode.