Escaneou: Micro-Interactions, Local History & QR Code Generation in Next.js
How Escaneou combines Next.js, react-hook-form, react-rewards, and localStorage to generate ad-free QR Codes with instant confetti feedback and recent history.
Most free QR Code websites today are packed with pop-ups, expiring links, or sign-up walls. I built Escaneou (live at https://escaneou.miguelito.dev, source at https://github.com/rniguel/escaneou) to do the opposite: open the page, paste a URL, and download immediately.
Fast Validation, Confetti Feedback & Local History
Even on a focused utility tool, small front-end details elevate the experience:
1. Clean form validation with react-hook-form and smooth transitions with motion/react.
2. Tactile confetti feedback via useReward("rewardId", "confetti") from react-rewards.
3. A deduplicated history of the last 5 generated links persisted in localStorage (qrCodeHistory) with zero backend required.
const { reward } = useReward("rewardId", "confetti");
const onSubmit: SubmitHandler<Inputs> = (data) => {
reward();
setQrCodeData(data.url);
const updatedHistory = [
data.url,
...history.filter((item) => item !== data.url),
].slice(0, 5);
setHistory(updatedHistory);
localStorage.setItem("qrCodeHistory", JSON.stringify(updatedHistory));
};Final Thoughts
Small utility tools are a great canvas to refine UI polish, state persistence, and zero-friction UX.
Miguel Riquelme
Front-end Engineer. Software Engineering MBA student at USP/Esalq.