<?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: TanviMalewar</title>
    <description>The latest articles on DEV Community by TanviMalewar (@tanvimalewar).</description>
    <link>https://dev.to/tanvimalewar</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%2F4174544%2Fb9af9544-545e-45ff-9b34-9c69adce4e5a.png</url>
      <title>DEV Community: TanviMalewar</title>
      <link>https://dev.to/tanvimalewar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tanvimalewar"/>
    <language>en</language>
    <item>
      <title>I built a local AI that tells me to go outside (Gemma + Ollama, works offline)</title>
      <dc:creator>TanviMalewar</dc:creator>
      <pubDate>Sun, 11 Oct 2026 19:15:26 +0000</pubDate>
      <link>https://dev.to/tanvimalewar/i-built-a-local-ai-that-tells-me-to-go-outside-gemma-ollama-works-offline-2983</link>
      <guid>https://dev.to/tanvimalewar/i-built-a-local-ai-that-tells-me-to-go-outside-gemma-ollama-works-offline-2983</guid>
      <description>&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Touch Grass Prompter&lt;/strong&gt; is a tiny web app that runs entirely on my laptop. You pick the weather, how many minutes you have, and your mood. A local Gemma model gives you one short outdoor mini-mission. Then you close the laptop and go do it.&lt;/p&gt;

&lt;p&gt;The screen is meant to be the shortest part of the experience: about 4 seconds to get a mission, then 15 minutes outside.&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%2F9btfgw6fy1qucoozzkvk.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%2F9btfgw6fy1qucoozzkvk.png" alt=" " width="720" height="866"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why open-weight AI mattered here
&lt;/h2&gt;

&lt;p&gt;I chose an open-weight model on purpose, and it changed what the app could be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Works with no internet.&lt;/strong&gt; After the one-time model download, I turned off Wi-Fi and it kept working. That matters for something meant to be used outdoors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private by default.&lt;/strong&gt; My mood, weather, and time never leave my laptop. There is no server and no API key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free to run.&lt;/strong&gt; No per-request cost, so I can click the button as many times as I like.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swappable.&lt;/strong&gt; The model is one constant in &lt;code&gt;server.js&lt;/code&gt;. Changing &lt;code&gt;gemma3:1b&lt;/code&gt; to another model is a one-line edit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;A plain HTML page collects weather, minutes, and mood.&lt;/li&gt;
&lt;li&gt;A small Node/Express server builds a prompt and sends it to Ollama's local API.&lt;/li&gt;
&lt;li&gt;Gemma returns one short, concrete mission.&lt;/li&gt;
&lt;li&gt;The page shows the mission and how long it took to generate locally.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Stack: &lt;strong&gt;Gemma (via Ollama), Node.js, Express, vanilla HTML/CSS/JS.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The prompt asks for one mission, three short sentences, and nothing that needs a phone or screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Taking it outside
&lt;/h2&gt;

&lt;p&gt;I picked "light rain", "15 minutes", and "tired", and the app gave me my mission in &lt;strong&gt;3.7 seconds&lt;/strong&gt;, fully local.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[WRITE 2 TO 3 SENTENCES HERE: where you went, what you did, how it felt.]&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What worked and what didn't
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Latency was about &lt;strong&gt;3.7 seconds&lt;/strong&gt; per mission with the 1B model, which is fast enough that I never felt like I was waiting on a screen.&lt;/li&gt;
&lt;li&gt;The small model sometimes &lt;strong&gt;invents things it can't know&lt;/strong&gt;. In my test it said "I've spotted a patch of wildflowers", but it can't see where I am. The missions work as inspiration, not as facts. A bigger Gemma would likely do better, and swapping it in takes one line.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I'd improve next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Add the user's real local weather as input instead of a dropdown.&lt;/li&gt;
&lt;li&gt;Try a larger Gemma and compare quality against speed.&lt;/li&gt;
&lt;li&gt;Make it a phone-friendly offline app.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;GitHub: &lt;a href="https://github.com/TanviMalewar/touch-grass-prompter" rel="noopener noreferrer"&gt;https://github.com/TanviMalewar/touch-grass-prompter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Entering for &lt;strong&gt;Best Use of Gemma&lt;/strong&gt;.&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/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;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;Best Use of Gemma: the whole app runs on Gemma, served locally through Ollama. It generates every mission offline on my laptop, and I can swap the model by changing one line.&lt;/p&gt;

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