Inspiration
Every gift starts with the same question: what do I get them? The answer is completely different for a best friend than for a boss, and for someone you've known ten years than for someone you met last month. Most gift guides ignore that and sort by price or category. I wanted something that starts with the person and your relationship with them, and explains why each gift fits, the way a thoughtful friend would. That's where the name comes from: every ribbon comes with a reason.
What it does
Ribbon & Reason is a short quiz that turns what you know about someone into 10+ personalised gift ideas.
- Personal or professional? This splits the quiz into two different question sets.
- Who are they to you? Partner, best friend, parent, roommate… or manager, client, mentor, Secret Santa.
- How close are you? A 0–100 slider split into four ranges (0–25, 26–50, 51–75, 76–100). Each range unlocks its own questions. Someone you barely know gets "how much do you know about their taste?", a close friend unlocks experience gifts and an inside-joke question, and work contacts get office-safe options and a "shareable with the team?" question.
- Gift type, budget, the reaction you want, their personality and interests.
The results page ranks 12 ideas at a time. Each one has tags explaining why it fits, a personalisation tip, and a shopping link. You also get a card message idea, a wrapping idea and an etiquette tip, such as how to handle gifting up to a manager.
How I built it
- One self-contained HTML/CSS/JavaScript file. No frameworks, no backend. It runs by double-clicking.
- A hand-tagged gift database of 179 gifts. Each one is labelled with the interests it suits (22 options), personality types (8), the reaction it tends to get (laugh, happy tears, wow, feel seen, cozy, useful, surprise), gift type, price, suitable relationships and the minimum closeness it makes sense for.
- A weighted scoring engine. Gifts earn points for each match and lose points for poor fits, such as going over budget or being too personal for how close you are. A diversity rule stops one category from taking over the top results.
- A dynamic question flow. Instead of writing eight separate quizzes, the next question is generated from your previous answers.
- Design: a Winter Wonderland theme with custom SVG illustrations, falling snow, and a sleigh progress bar that moves toward the gift as you answer. It works on phone and desktop.
- I used Claude (an AI assistant) to help write and test the code.
Challenges I ran into
- Questions that change with closeness. Two branches × four closeness ranges means eight different question sets. If someone moves the slider halfway through, earlier answers can stop making sense, so the quiz clears any answers that no longer apply.
- Always having 10+ good ideas. Strict filters left some combinations, like "under $15 for someone I barely know", with too few results. I switched from hard filters to weighted scoring, added more budget-friendly gifts, and clearly label anything slightly over budget. Then I tested all 258,600 possible answer combinations, and every one returns well over 10 options.
- Keeping it appropriate. Perfume for your boss is a no, and prank gifts at work need to be office-safe. I tagged gifts as personal-only or partner-only and gave office-friendly items a boost in the professional branch.
- Turning feelings into data. "How do you want them to feel?" is fuzzy, so I narrowed it to seven reactions and tagged each gift by the reaction it's most likely to get.
- Design and naming. I prototyped four festive themes before choosing one, and went through several rounds of names before landing on Ribbon & Reason.
What I learned
- Good gift recommendations depend on the relationship as much as the person's interests.
- In recommendation systems, soft scoring beats hard filters: you rank imperfect matches lower instead of throwing them out.
- Test every path, not just the obvious one. The bugs were in combinations I would never have clicked through by hand.
- Small touches like a card message or an etiquette tip make the tool feel thoughtful instead of transactional.
What's next
- An occasion picker: birthday, anniversary, Diwali, farewell, graduation
- An age-range question
- An "already has it" button that swaps in a new idea
- A shareable wishlist link
- Links to real products