This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass
What I Built
hyper-local digital naturalist, designed to reverse the "doomscrolling" trend and get people into the woods.
Instead of acting as a generic map or a chatty assistant, TerraScout generates a personalized "Nature Quest" (e.g., Find a red oak leaf, Spot a local songbird, Locate a quartz rock) based on your selected location. Once you hit the trail, the app is designed to be pocketed. The core feature is the Offline Field Guide: If you spot something interesting or need a hint to complete your quest, you can ask the app in natural language. Because the AI runs entirely locally in the browser memory, you can get instant answers deep in the woods or canyons where cellular service drops to zero. The screen is strictly a tool to facilitate physical exploration, not the destination itself.
Code
How I Built It
TerraScout was built within a highly constrained timeframe using the Google AntiGravity multi-agent IDE.
The Tech Stack & Open-Source AI:
Local AI Inference (The Core): The Offline Field Guide is powered by WebLLM leveraging the WebGPU API. It runs the open-weight gemma-2-2b-it-q4f16_1-MLC model entirely locally on the user's device (phone or laptop). The model is cached in IndexedDB via Service Workers, allowing it to initialize without a network connection.
Frontend PWA: Built with Next.js 16 (App Router) and Tailwind CSS. I used next-pwa to ensure the application shell caches correctly for offline reopening.
Backend & Data (The Pre-Hike Phase): Hosted on Render (frontend) and DigitalOcean (backend microservices). When the user is still on Wi-Fi, the app uses SerpApi to check trail conditions and TabPFN to analyze local tabular weather datasets (stored in TigerData) to predict the most likely flora/fauna to generate the quest. The AI orchestration was mapped using Entire.
Database & Dashboard: Completed quests sync back to MongoDB Atlas when the user reconnects, managed via a Backboard admin panel.
Development Tools: Rapidly prototyped the Gemma prompts using Tinker, and accelerated the Next.js boilerplate using GitHub Copilot alongside AntiGravity.
Why Does Open Innovation Matter?
By utilizing open-weight models like Gemma 2B and open frameworks like WebLLM, TerraScout achieves three things closed systems cannot:
Zero-Connectivity Execution: You can take the AI miles away from a cell tower. It processes your questions instantly on your device's GPU.
Absolute Privacy: Your location, queries, and trail habits never hit a remote server while you are exploring.
Zero Inference Cost: I don't pay a cent for API calls when users are chatting with the field guide on the trail.
My Agent Session
Google AntiGravity's autonomous agent workflows to handle the WebGPU boilerplate and Next.js PWA configuration.
Prize Categories
Github Copilot
Render
Tinker
Gemma
Top comments (0)