# GreenBreak AI 🌱 — Less Scrolling, More Living!

> Source: <https://dev.to/sriindu/greenbreak-ai-less-scrolling-more-living-3l2e>
> Published: 2026-10-10 11:05:37+00:00

What if we used our screen breaks to reconnect with the outdoors instead of scrolling through another feed?

That's the idea behind **GreenBreak AI** — a project that encourages people to step away from their screens and enjoy small, meaningful outdoor activities.

We spend a lot of time looking at screens, even when we only intended to check something for a few minutes. Taking a break can easily turn into more scrolling.

I wanted to build something that makes it easier to choose an outdoor activity instead.

`gemma2:2b` model to generate break-plan suggestions locally.
The goal is simple: make it easier to replace a few minutes of scrolling with a refreshing break outdoors.

GreenBreak AI combines a Python backend with a web frontend.

When a user requests a break plan, the backend sends a structured generation request to a locally running Ollama service. The model's response is validated before being returned to the frontend. If AI generation fails, the application can use the template-based fallback.

This approach keeps the core experience available even when the local model cannot generate a response.

I used **Gemma 2 2B (`gemma2:2b`) through Ollama**.

Instead of relying on a paid, hosted AI API, the application can generate suggestions using a model running on the user's own computer. This avoids per-request cloud inference charges, although running the model still requires suitable local hardware and resources.

The model is distributed under Google's Gemma Terms of Use. It is an open-weight model with specific license conditions, so I am not claiming that it is OSI-approved open-source software.

```
git clone https://github.com/Sri-Indu/GreenBreak-AI.git
cd GreenBreak-AI
```

Create and activate a Python virtual environment if desired, then install the project's requirements:

```
python -m pip install -r requirements.txt
```

Install Ollama and make sure the `gemma2:2b` model is available locally.

If you do not already have the model, run:

```
ollama pull gemma2:2b
```

If it is already installed, you do not need to download it again. Ensure the Ollama service is running.

From the project directory, run:

```
python -m uvicorn backend.main:app --host 127.0.0.1 --port 8000
```

Follow the frontend instructions in the repository README to open the application locally.

If Ollama is unavailable, the template fallback can provide break plans instead.

I ran the Python test suite after integrating local AI generation:

These results verify the tested application behavior. Actual AI generation also depends on the local Ollama service and model being available.

I wanted to explore how AI could support healthier digital habits without requiring a paid hosted AI API.

Local inference gives developers an opportunity to experiment with AI on their own machines, understand how model integration works, and build useful applications with fewer external service dependencies.

This project also helped me learn about structured model responses, backend validation, error handling, and fallback behavior.

A short break outside can be more meaningful than another few minutes scrolling.

With GreenBreak AI, I hope to make those small breaks easier to plan — one outdoor activity at a time.

Thanks for reading! 🌱
