A QR code is an image, but a managed QR link is a small system. My QR Dashboard project brings together link creation, labels, downloadable codes, and scan-event views in a Next.js application. This retrospective follows the public March 2026 source. It describes the implementation, rather than claiming a new launch or reporting production traffic.
The central idea is a separation between the address encoded in the QR image and the destination a person ultimately visits. The image contains an application URL with a short slug. The server looks up that slug and decides where the request should go.
Give the printed code a stable address
The SVG download route builds a URL in the form /r/your-slug and encodes that address. The destination is stored separately in the link record. This indirection means a destination could be changed in the data without changing the printed image, provided the application domain and slug stay available.
That is an architectural possibility, not a claim that this version includes a complete destination-editing workflow. The distinction matters when discussing a project: the storage model can support an operation before the interface exposes it. The source shows link creation and a detail page with a preview, copy control, SVG download, status, labels, and recent scan events.
Validate before creating the link
The creation action checks for an authenticated user, requires a title, and accepts HTTP or HTTPS destinations. A custom slug is normalized to lowercase and restricted to letters, numbers, and hyphens. When a custom slug is absent, the code generates one and checks whether it already exists.
The link and its labels are separate records. A join table connects them, allowing labels to organize links without making a label part of the public redirect URL. This keeps the visitor-facing address independent from the organization of the dashboard. The public TypeScript definitions describe those relationships, although they do not establish which database constraints or access policies are deployed.
Follow the redirect’s failure paths
The redirect handler looks up a link by slug and checks whether it is active. Missing or inactive links receive a 404 response. For an active link, the handler collects request metadata and calls a Supabase database function to record a scan event before returning a 307 redirect.
If that recording call returns an error, the handler logs it and still redirects to the destination. That makes the intended priority visible: a returned analytics error should not prevent navigation. There is a practical limit to this behavior. The handler still awaits the recording call, so it is not a background queue and does not by itself eliminate analytics latency.
Explain what a scan count means
The analytics page lists recent events with a linked title, timestamp, browser, device category, operating system, and referrer when available. The route records requests to the short URL; it does not prove that each event came from a different person or a camera scan. A shared link or automated request can reach the same endpoint.
That boundary is useful when designing any dashboard. A number should describe what the system actually observed. Unique visitors, verified human scans, and campaign conversions would each need additional definitions and implementation. The existing source provides a concrete starting point for discussing those requirements.
Explore QR Dashboard’s source to follow one link through creation, rendering, redirection, and event display. The interesting work is in how those pieces agree on an address and how they behave when one step fails.
Join the conversation.
Have a question or something to add? Comments are reviewed before appearing. Keep it thoughtful and on topic.