{"slug": "foliagestride-ai-scenic-autumn-run-park-route-explorer", "title": "FoliageStride AI — Scenic Autumn Run & Park Route Explorer", "summary": "A developer built FoliageStride AI, an open-source browser-based running route generator that uses Google's Gemma 2 (gemma2:2b) model through Ollama to synthesize scenic autumn routes from distance, terrain and pacing preferences. The app runs the model locally for offline-first use, falls back to a deterministic route-generation engine when the model is unavailable, and uses the Web Audio API to play cadence chimes at kilometer milestones so runners avoid checking their phones. The project was pair-programmed with Google Antigravity and its code is published on GitHub.", "body_md": "*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass](https://dev.to/challenges/hacktoberfest-week1-2026-10-05)*\n\n**FoliageStride AI** is a scenic autumn run & park route builder built to solve a modern fitness irony: runners going outdoors just to stare at GPS screens, pace charts, and turn-by-turn prompts every 30 seconds.\n\nInstead of keeping runners glued to their devices, FoliageStride AI uses **Google Gemma 2** to synthesize autumn running routes based on distance (2 km, 5 km, 8 km), terrain preference (Maple & Oak canopies, riverbank reflections, historic park perimeters, or hilltop ridges), and pacing style.\n\nIn under 30 seconds:\n\nThe application runs in modern browsers and includes a fallback route-generation engine when the local AI model is unavailable.\n\nThe complete open-source code is available on GitHub:\n\n**GitHub Repository:**\n\n[https://github.com/ahanghosh77/foliagestride-ai](https://github.com/ahanghosh77/foliagestride-ai)\n\nThe repository contains:\n\n`index.html` — Main application interface with distance selection, route visualization, elevation profile, visual waypoints, stopwatch, and Stride Journal.`style.css` — Responsive autumn-themed UI with glassmorphism styling.`app.js` — Gemma 2 integration through Ollama, fallback route generation, Web Audio API cadence chimes, and localStorage-based journal tracking.\nFoliageStride AI is designed with an offline-first architecture.\n\nThe core AI component uses **Google Gemma 2 (`gemma2:2b`)** through Ollama.\n\nThe model receives the runner's preferences, including:\n\nIt then generates structured route information and memorable physical landmarks that the runner can remember before starting the run.\n\nThe application uses the browser's native **Web Audio API** with `OscillatorNode` and `GainNode` to generate cadence chimes at kilometer milestones.\n\nThis means the runner does not need to continuously look at the phone during the run.\n\nThe application uses SVG-based graphics to display the route and elevation profile, together with visual markers representing foliage and important landmarks.\n\nIf the local Gemma 2 model is unavailable, the application uses a deterministic fallback route-generation engine.\n\nThis allows the application to remain usable even without a running local AI model.\n\nThe Stride Journal uses browser `localStorage` to keep track of completed sessions and outdoor streaks without requiring a cloud database.\n\nOpen innovation and open-weight models like **Google Gemma 2** are especially useful for outdoor and fitness applications.\n\nOutdoor runners can lose cellular reception inside parks, ravines, mountain trails, and nature reserves.\n\nA local AI model reduces dependence on a continuously available cloud API.\n\nRunning applications can involve sensitive information such as routes, workout frequency, and frequently visited locations.\n\nFoliageStride AI is designed around local processing and local journal storage rather than sending this information to a third-party fitness server.\n\nRunning an open-weight model locally avoids paying for every AI request through a hosted API.\n\nThis makes experimentation more accessible to students, developers, and open-source communities.\n\nThis project was built through pair-programming with **Google Antigravity**.\n\nThe agent helped with the responsive UI layout, autumn visual design, SVG course elevation profile, structured JSON schema for Google Gemma 2 prompting, hands-free Web Audio API split-chime synthesizer, and overall project structure.\n\nThe final project was refined around the core idea of helping runners **touch grass instead of constantly checking a screen**.\n\nFoliageStride AI uses **Google Gemma 2 (`gemma2:2b`)** as the local route-synthesis engine, converting a runner's distance, scenery preference, and pacing style into structured scenic route information with memorable physical landmarks.\n\nFoliageStride AI turns an ordinary run into a more screen-free outdoor experience.\n\nThe idea is simple:\n\n**Plan with AI → Remember the landmarks → Pocket the phone → Run → Touch Grass.** landmarks.", "url": "https://wpnews.pro/news/foliagestride-ai-scenic-autumn-run-park-route-explorer", "canonical_source": "https://dev.to/abhishek_jha_db6eaa98a2af/foliagestride-ai-scenic-autumn-run-park-route-explorer-56ja", "published_at": "2026-10-08 05:26:20+00:00", "updated_at": "2026-10-08 05:47:19.109398+00:00", "lang": "en", "topics": ["ai-tools", "generative-ai", "large-language-models", "ai-products", "developer-tools"], "entities": ["FoliageStride AI", "Google Gemma 2", "Ollama", "Google Antigravity", "GitHub", "Web Audio API"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/foliagestride-ai-scenic-autumn-run-park-route-explorer", "markdown": "https://wpnews.pro/news/foliagestride-ai-scenic-autumn-run-park-route-explorer.md", "text": "https://wpnews.pro/news/foliagestride-ai-scenic-autumn-run-park-route-explorer.txt", "jsonld": "https://wpnews.pro/news/foliagestride-ai-scenic-autumn-run-park-route-explorer.jsonld"}}