<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sergi Villagrasa</title>
    <description>The latest articles on DEV Community by Sergi Villagrasa (@sergi_villagrasa).</description>
    <link>https://dev.to/sergi_villagrasa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4176059%2Fab7c8712-8385-4243-8840-cadb06d5d780.png</url>
      <title>DEV Community: Sergi Villagrasa</title>
      <link>https://dev.to/sergi_villagrasa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sergi_villagrasa"/>
    <language>en</language>
    <item>
      <title>SnapHunt: Let AI Host the Game. Go Outside and Play.</title>
      <dc:creator>Sergi Villagrasa</dc:creator>
      <pubDate>Mon, 12 Oct 2026 01:12:28 +0000</pubDate>
      <link>https://dev.to/sergi_villagrasa/snaphunt-let-ai-host-the-game-go-outside-and-play-2chd</link>
      <guid>https://dev.to/sergi_villagrasa/snaphunt-let-ai-host-the-game-go-outside-and-play-2chd</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/events/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;SnapHunt is a real-world multiplayer scavenger hunt where your surroundings become the game board.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Gather some friends, secretly photograph nearby objects, and let an AI moderator turn them into clues. Then stop looking at the screen and start looking around.&lt;/p&gt;

&lt;p&gt;When you think you've found your target, take a photo. The AI compares it with the original: finding another object of the same kind isn't enough—you're hunting for that particular object.&lt;/p&gt;

&lt;p&gt;A successful discovery can unlock a generated visual clue for another target, putting you in a race against its original hunter. Find it first, and you can eliminate your rival from the round.&lt;/p&gt;

&lt;p&gt;The idea is simple: &lt;strong&gt;AI handles the clues and photo comparisons so everyone gets to play.&lt;/strong&gt; Nobody has to sit out to prepare the hunt or act as referee.&lt;/p&gt;

&lt;p&gt;And yes, your host is a cheerful pug.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fghtacdhtma6e7z37dcw9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fghtacdhtma6e7z37dcw9.png" alt="Game Starts" width="776" height="1080"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmgs9bwof6gevjzirdgr3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmgs9bwof6gevjzirdgr3.png" alt="Image Clue" width="617" height="928"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Please try the actual game
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://sergi-villagrasa.tech/projects/snaphunt" rel="noopener noreferrer"&gt;Play SnapHunt →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the playable application, not just a landing page or a recorded walkthrough. I'd especially love judges to try a round: the experience makes more sense when you're searching for something a friend secretly photographed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you need:&lt;/strong&gt; 2–6 people in the same physical area, one phone each, and an internet connection. No account registration or API keys are needed to play.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For a quick judging session:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open SnapHunt on your phones.&lt;/li&gt;
&lt;li&gt;One person selects &lt;strong&gt;Create a room&lt;/strong&gt;, enters a nickname, and chooses the 10-minute option.&lt;/li&gt;
&lt;li&gt;Everyone else selects &lt;strong&gt;Join with a code&lt;/strong&gt; and enters the host's room code.&lt;/li&gt;
&lt;li&gt;Each player secretly photographs a different nearby object. Keep it accessible and leave it where it is.&lt;/li&gt;
&lt;li&gt;Once everyone's target is accepted, the host starts the game.&lt;/li&gt;
&lt;li&gt;Listen to your clue, search the area, and photograph the object you think matches.&lt;/li&gt;
&lt;li&gt;Watch the score update after an accepted discovery—and, with enough players, follow the visual clues into a race for another target.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Two players are enough to try the basic hunt; three or more are recommended to experience the competitive visual-clue mechanic.&lt;/strong&gt; Allow camera access and turn up your volume for the voice clues. Clue text is also displayed.&lt;/p&gt;

&lt;p&gt;Please play somewhere safe, respect other people's privacy, and don't enter restricted areas to chase an object.&lt;/p&gt;

&lt;h3&gt;
  
  
  Watch the video
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://drive.google.com/file/d/1wKuDRf7nL-k8ujCB4NbgPSmx_ULod4wN/view?usp=sharing" rel="noopener noreferrer"&gt;Watch the SnapHunt video demo →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Watch the video for a preview, then try the live game with your own objects and surroundings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frw5cvvp8erhgm4460qrr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frw5cvvp8erhgm4460qrr.png" alt="End of Game" width="776" height="1080"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What I tested
&lt;/h3&gt;

&lt;p&gt;I first tested SnapHunt with &lt;strong&gt;three people at home, using common household objects&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We also tried a &lt;strong&gt;real case outdoors with some objects&lt;/strong&gt;, to check that the hunt works beyond the living room: photographing targets outside, listening to the clues, and walking around to find and capture them.&lt;/p&gt;

&lt;p&gt;That's the experience I want to encourage for the Touch Grass theme: listen to a clue, put the phone down, explore your surroundings, and return to the screen to capture your discovery. The phone is a tool for the hunt, not the place where the hunt happens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/SergiVillagrasa/Hacktoberfest-W1" rel="noopener noreferrer"&gt;View the source on GitHub →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SnapHunt is a TypeScript monorepo with a Next.js frontend, an Express API, and shared packages for game rules, contracts, and infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;The AI is central to the game, but it doesn't get unrestricted control over the rules.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Qwen3.8-27B through Nebius&lt;/strong&gt; is the default vision model for understanding target photos, writing clues, and comparing a discovery photo with its reference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mastra&lt;/strong&gt; provides the agent integration and structured responses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ElevenLabs&lt;/strong&gt; turns written clues into speech, so players can listen and return their attention to the physical world.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;fal.ai&lt;/strong&gt; transforms target photos into indirect visual hints, creating a second way to hunt rather than merely decorating the interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL and Supabase Storage&lt;/strong&gt; hold game state and photographs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server-Sent Events&lt;/strong&gt; keep players updated as the round progresses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fblq83rw90lzs41fv6u5v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fblq83rw90lzs41fv6u5v.png" alt="SnapHunt architecture: phones talk to an Express API; core game rules call adapters for the Mastra vision agent, ElevenLabs, fal, Drizzle/PostgreSQL and Supabase Storage, and push live room state over SSE" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The backend owns assignments, scoring, elimination, and whether a target can still be claimed. The model supplies structured evidence; the application applies the rules.&lt;/p&gt;

&lt;p&gt;Original target photos are not handed to other hunters as clues. Service credentials stay on the backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;SnapHunt's central mechanic relies on an open-weight vision model and an open-source agent framework—not just a proprietary API added around the edges.&lt;/p&gt;

&lt;p&gt;Keeping the model integration separate from the game rules matters. I can change the vision provider without rewriting how rooms, assignments, scores, or eliminations work. Gemma is also available as a configurable alternative.&lt;/p&gt;

&lt;p&gt;That separation makes the project easier to inspect and extend. Someone can experiment with different models or clue styles while keeping the same multiplayer game.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open-weight does not mean this deployment runs offline or costs nothing.&lt;/strong&gt; The live demo uses hosted inference and complementary services. The benefit here is keeping the core understandable and replaceable, rather than tying the entire game to one model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of ElevenLabs:&lt;/strong&gt; spoken clues make voice part of the gameplay, helping players look away from their screens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Mastra:&lt;/strong&gt; the vision integration uses Mastra over an open-weight model for target understanding, clue generation, and photo comparison.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Built with AI coding assistance; this write-up was also drafted with AI assistance.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
