Skip to main content
Web Tool
Production

QR Forge

Instant QR codes for any URL.

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

Next.js 15TypeScriptTailwind 4qrcodeVercelCloudflare

$ 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.

Next.js 15 App Router

Single static page + one API route

qrcode library

Server-side PNG generation as base64 data URL

Rate Limiter

In-memory sliding window with auto-cleanup

Vercel Edge

Serverless deployment, Cloudflare DNS

← All Work

decimalabs.io/work/qr-forge