- Architecture
- Stateless
- Rate Limit
- 10/min
- Tests
- 47 passing
Overview
Project overview
QR Forge is a single-purpose web tool for generating QR codes from URLs. Paste a link, click generate, and download the PNG. The architecture is deliberately minimal: a single Next.js API route generates the QR code server-side using the qrcode library and returns a base64 data URL. Nothing is stored — no database, no user accounts, no persistence. Rate limiting prevents abuse (10 requests per minute per IP). Deployed on Vercel with a custom domain via Cloudflare DNS.
Stack
Tech stack
Features
What it does.
Generation
- Paste any HTTP/HTTPS URL and generate a QR code instantly
- Download as PNG with one click
- Server-side generation via qrcode library
- URL validation and length limits (2048 chars)
Security
- In-memory sliding window rate limiter (10 req/min per IP)
- Retry-After and X-RateLimit-Remaining headers
- Input validation and sanitization on all requests
- No data persistence — zero attack surface for data breaches
Architecture
How it's built.
- 01
Next.js 15 App Router
Single static page + one API route
- 02
qrcode library
Server-side PNG generation as base64 data URL
- 03
Rate Limiter
In-memory sliding window with auto-cleanup
- 04
Vercel Edge
Serverless deployment, Cloudflare DNS
Something like this, but built for you.
Every engagement starts with a written scope — whether it's a native macOS app or a records system for a county.