OpenMates | Your AI team for getting things done

Your AI team for getting things done

Features

Get started with OpenMates

Create an Interactive Svelte Habit Garden

Sophia builds a three-card habit garden with filtering, habit selection, a streak counter and a real application screenshot.

Svelte habit garden · interactive web application · habit tracking · application screenshot

Last updated:

User:

Create a polished interactive Svelte habit garden web application. It should show three habit cards, a filter input, clickable habit selection, and a button that updates a visible streak counter.

OpenMates:

Here is a complete, interactive **Habit Garden** web application built with [Svelte](wiki:Svelte) 5. It features three botanical habit cards, a real-time filter, clickable selection for detailed inspection, and an interactive watering action that advances the streak and plant growth stage. ### Highlights of the Implementation 1. **Svelte 5 Runes**: Built with `$state` for reactive data (habits array, search term, active selection) and side-effect-free `$derived` expressions for dynamic filtering and garden-wide metrics. 2. **Interactive Filtering**: Real-time search query matching titles, categories, tags, or plant names, with an empty state and clear button. 3. **Habit Selection**: Clicking any of the 3 cards marks it as active and syncs the right-hand inspection conservatory panel. 4. **Streak Updater**: The **"Water Plant & Increment Streak"** button triggers an instant increment on the selected habit's streak counter, re-evaluates the growth phase (e.g. *Seedling*, *Budding*, *Full Bloom*), and fires a visual nourishing pulse animation.