DEV Community

mahip1111
mahip1111

Posted on

FloraFrost — Touch Grass AI Garden Planner & Offline Frost Companion

Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass Submission 🌿

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass

What I Built

FloraFrost is an offline-first, open-source AI garden companion engineered around a single core ethos: make the screen the shortest part of the experience, then get your hands in the dirt.

Most gardening apps trap you in a cycle of doom-scrolling gardening forums, reading 2,000-word SEO-bloated articles, or waiting on cloud LLMs to spit out verbose essays while you're standing in the backyard.

FloraFrost is designed for hobby gardeners, community plot owners, and homesteaders who want actionable intelligence without screen addiction:

  1. Sub-2-Minute Screen Time: Open the app, and the local agronomy engine calculates your microclimate and frost countdown (e.g., "14 Days Until First Fall Frost"). It condenses your entire garden schedule into exactly 3 physical outdoor chores for Saturday morning (e.g. direct-sowing winter spinach, mulching brassicas, harvesting late green tomatoes).
  2. Hands-Free Audio Dirt Briefing: Tap one button, slip your phone into your pocket, and listen to your weekly tasks read aloud via the Web Speech API while you lace up your boots and pull on your gardening gloves.
  3. 1-Click Printable Pocket Card: Generates a compact physical chore card with checkbox circles so your phone stays on the kitchen counter while you work outside in the dirt.
  4. Interactive Companion Bed Planner: A 4x4 raised bed visualizer powered by a graph-based companion planting algorithm that evaluates synergistic pairings (e.g., tomatoes + basil) and root conflicts in real-time. Includes a 1-click Auto-Optimize layout solver.
  5. Offline Backyard Plant & Weed Scanner: An in-browser open-weight computer vision classifier that diagnoses plant pathology (frost burn, powdery mildew, chlorosis, weeds) right in the garden where home Wi-Fi drops out.

Demo


Code

GitHub Repository: https://github.com/mahip1111/hacktoberfest_2

The entire project is open-source under the MIT license, built with clean modern Vanilla JavaScript, Vite, Web Audio/Speech APIs, and client-side computer vision algorithms with zero cloud dependencies.


How I Built It

1. In-Browser Edge Computer Vision (Zero Cloud Dependencies)

Backyards and community allotments rarely have reliable Wi-Fi or cellular data. Instead of streaming video to closed cloud APIs, FloraFrost performs optical feature extraction and tensor classification 100% locally on the user's device using client-side WebGPU/WASM and Canvas image processing:

  • Analyzes chlorophyll absorption ratios, fungal mycelium dispersion, and necrotic cold-burn margins.
  • Classifies leaf health across 6 bio-visual conditions with immediate physical outdoor remediation steps.
  • Built-in synthetic test case suite allows desktop reviewers to test edge vision without needing a real garden leaf handy.

2. Algorithmic Companion Matrix AI

Companion planting is modeled as an undirected constraint graph:

  • Evaluates biological synergies (aromatic pest confusion, nitrogen fixation, taproot vs. shallow root depth).
  • Real-time synergy scoring from 0 to 100%.
  • Includes a greedy heuristic auto-optimization solver that reorders crops across bed plots to maximize polyculture health.

3. Phenology & Frost Countdown Engine

  • Integrates USDA Plant Hardiness Zones (Zones 1-13) and global microclimates with GPS coordinate auto-detection.
  • Evaluates 40+ crops dynamically based on days to maturity, minimum soil germination temperature, and cold tolerance thresholds (Ultra-Hardy, Hardy, Semi-Hardy, and Tender).

Why Does Open Innovation Matter?

Open innovation is what makes FloraFrost work where closed proprietary AI fundamentally fails:

  1. Works Deep in the Dirt With Zero Wi-Fi: Cloud APIs like OpenAI or Gemini fail the moment you lose cellular connection on a trail, rural plot, or backyard garden. Open-weight models and local inference run seamlessly in Airplane Mode.
  2. True "Touch Grass" Focus (Sub-2-Minute Screen Time): Closed commercial AI platforms are incentivized to maximize screen engagement and token consumption. FloraFrost's open-source architecture is designed to minimize screen time through physical pocket checklists and hands-free audio briefings.
  3. Zero Cloud Infrastructure Costs: By offloading tensor math and agronomic reasoning to the client's local hardware, FloraFrost costs $0 to host and run. There are no token invoices or subscription paywalls for community gardeners.
  4. 100% Privacy & Food Sovereignty: Your private garden layout, yields, and location coordinates remain strictly stored in local device storage (localStorage). No commercial tech company is indexing your backyard harvest.
  5. Community-Auditable Agronomy: Closed LLMs frequently hallucinate frost dates or fabricate companion pairings. FloraFrost's agronomic logic is fully open-source, allowing local horticultural societies and master gardeners to audit and contribute regionally accurate planting rules.

My Agent Session

This project was planned, designed, and implemented pair-programming with Google Antigravity. The session covered:

  • Scaffolding a lightweight Vite web application with a botanical glassmorphism design system.
  • Designing the frost date calculation engine and companion matrix graph solver.
  • Building the client-side edge computer vision pipeline for offline plant pathology diagnostics.
  • Testing and committing the codebase directly to GitHub.

Prize Categories

  • Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass

Top comments (0)