A clean and lightweight QR Code Generator web application that allows users to generate, preview, and download QR codes for any URL instantly.
This project is built with a focus on core web fundamentals, correct backend–frontend interaction, and a professional UI, making it suitable for portfolios, internships, and technical interviews.
- Generate QR codes for any valid URL
- Instant QR preview on the page
- Automatic QR code download (PNG)
- Stateless backend (no file storage)
- Clean, modern, responsive UI
- Reliable browser-safe download using Blob URLs
- HTML5
- CSS3 (Flexbox, modern layout, gradients)
- Vanilla JavaScript (Fetch API, Blob handling)
- Node.js
- Express.js
qr-image(QR code generation library)
-
The user enters a URL and an optional QR name.
-
The frontend sends the URL to the backend using the Fetch API.
-
The backend generates a QR code and streams it directly as a PNG response.
-
The frontend:
- Displays the QR code preview
- Automatically downloads the QR image using a Blob-based approach
This design avoids server-side file storage and scales cleanly.
git clone https://github.com/Divyanshu227/QRProject.git
cd qr-code-generatornpm installnode index.jshttp://localhost:3000
├──node_modules
├── public/
│ ├── index.html
│ ├── style.css
│ └── main.js
├── .gitignore
├── index.js
├── package.json
├── package-lock.json
├── page.png
└── readme.md
- No server-side file saving — improves security and scalability
- Streaming QR generation — faster and memory efficient
- Blob-based downloads — reliable across modern browsers
- Framework-free frontend — demonstrates strong fundamentals
- SVG download support
- Toggle for auto-download
- Additional QR types (text, WiFi, vCard)
- Loading indicators
- Dark mode
QR Code Generator — built using modern web fundamentals.
