DEV Community

Cover image for LazyChef & Pantry Autopilot 🦥
Mochammad Qaysa Al-Haq
Mochammad Qaysa Al-Haq

Posted on

LazyChef & Pantry Autopilot 🦥

Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady Submission 🦥

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady

What I Built

LazyChef & Pantry Autopilot 🦥 is an autonomous, privacy-first, on-device kitchen copilot designed specifically for exhausted developers, neurodivergent brains, and anyone suffering from cooking decision paralysis and dirty pan dread.

What does it do?

Instead of forcing you to scroll through 2,000-word food blog memoirs or buy twenty exotic ingredients you'll only use once, LazyChef works backwards:

  1. Pantry First: You click what you already have sitting in your fridge, freezer, or pantry (eggs, rice, garlic, cheese, bread, etc.).
  2. Laziness Level Constraints: Filter by One-Pan Only (zero sink pile-ups) or Speed Demon (ready in under 15 minutes).
  3. Autonomous Recipe Matching & Generation: An instant heuristic engine matches recipes in under 15 milliseconds, while an on-device Gemma 2B open-weight model runs locally to synthesize custom creative variations.
  4. Step-by-Step Cooking Assistant: Large, tactile check-off steps with a celebratory sloth confetti finish.
  5. The Lazy Payoff Dashboard: Quantifies your accumulated laziness in real-time—minutes saved from recipe indecision, dirty pans eliminated, and money saved from avoiding food delivery apps.

Who gets to be a little lazier?

Every developer who has ever stared into a full fridge at 8:00 PM after a marathon coding session and ordered expensive, oily takeout just because they couldn't muster the cognitive energy to plan a recipe or wash three different frying pans.


Demo

  • Live Repository & Code: mochammadqaysa/hf-challenges-week-3
  • Local Experience: Clone, npm install, and npm run dev for an instant zero-latency experience at http://localhost:5173/.

Key User Features:

  • ⚡ Instant Heuristic Matching: Zero waiting time (<15ms) for recipe lookups and ingredient substitutions.
  • 🧠 On-Device Gemma 2B AI: Runs entirely inside your browser via WebGPU Web Workers—no API keys, zero cloud latency, and 100% offline capability.
  • 🍳 Pan-Count & Time Enforcement: Every suggested meal adheres to strict low-effort criteria (maximum 1 pot/pan, <=15 minutes).
  • 📊 The Lazy Payoff Metrics: Automatically tracks minutes saved, pans saved from the sink, and dollars kept in your wallet.
  • 🌓 High-Contrast & Dyslexia-Friendly Accessibility: Built-in high-contrast theme toggle for effortless reading in dim kitchen lighting.

Code

LazyChef & Pantry Autopilot 🦥

Local-First Kitchen Copilot under Sloth Constraints (1 Vessel • ≤3 Steps • ≤15 Minutes)
Built for Hacktoberfest 2026 Week 3: Slow and Steady Challenge (#hf26challenge)
Competing for Best Use of Gemma / Open-Weight AI

License: MIT TypeScript Vite Tests E2E Bundle Size Zero Telemetry


🍲 What is LazyChef?

After a draining workday, cooking dinner often feels overwhelming. Decision fatigue sets in, takeout apps beckon, ingredients in the fridge rot, and the dread of scrubbing piles of dirty pans paralyzes tired home cooks.

LazyChef & Pantry Autopilot solves this by strictly enforcing Sloth Constraints:

  • 🍳 Exactly 1 Cooking Vessel: 1 skillet, 1 pot, 1 sheet pan, or 1 microwave bowl. Zero sink piles.
  • 📝 Maximum 3 Imperative Steps: Concise, actionable, zero culinary jargon.
  • ⏱️ Strictly Under 15 Minutes: Fast, hot meals from fridge to plate in minutes.
  • 🎯 Exactly 1 Recommendation: No endless scrolling or recipe choice overload.

✨

…

How I Built It

LazyChef is built around open-source AI and modern open web standards:

1. The Open-Weight AI Stack: Google Gemma 2B + WebGPU

  • Model: Google's gemma-2b-it running in ONNX / WebGPU format via @huggingface/transformers.
  • Worker Isolation: The model is initialized inside a dedicated Web Worker (src/workers/gemmaWorker.ts), ensuring heavy tensor computations never drop frames or stutter the 60fps main UI thread.
  • Graceful Fallback: If the user's browser lacks WebGPU hardware acceleration, the application seamlessly falls back to the deterministic local heuristic rule engine. The user is never blocked or left looking at a broken spinner.

2. High-Speed Local Architecture

  • Vite & Vanilla TypeScript: Pure, lean TypeScript without heavy frontend framework bloat.
  • Micro-Budget Bundle: The entire production bundle is kept under 350 KB gzipped, loading instantly on mobile phones in the kitchen.
  • IndexedDB Recipe & State Storage: Complete offline persistence. Your pantry inventory and accrued Lazy Payoff stats survive page refreshes and browser restarts.
  • Zero-Dependency Security Sanitizer: Implements strict DOMPurify-grade input sanitization (src/core/sanitizer.ts) to eliminate XSS risks without adding bloat or external telemetry dependencies.

Why Does Open Innovation Matter?

Cooking and eating are intimate daily human rituals. Closed-source AI platforms require you to stream your personal daily habits, pantry inventory, and kitchen routines to third-party cloud servers, bound to proprietary subscriptions, rate limits, and constant telemetry.

Open innovation changed the entire paradigm for this project:

  1. Permanent Sovereignty: By utilizing open-weight AI like Gemma 2B, LazyChef runs forever on your personal machine without recurring API costs, subscriptions, or sudden vendor deprecations.
  2. True Kitchen Privacy: Zero telemetry. Not a single byte of your pantry data or cooking habits leaves your device.
  3. Resilience & Offline Autonomy: In the middle of cooking when your home Wi-Fi flickers or drops, LazyChef keeps running uninterrupted. Open weights and web standards turn the browser into an independent, self-contained computing appliance.

My Agent Session

This entire application—from requirements discovery and architecture design down to the test suite and security audit—was pair-programmed with an AI Agent following a disciplined SDLC framework.

LazyChef & Pantry Autopilot: Autonomous Kitchen Copilot with Gemma 2B WebGPU & Local Heuristics
You

Build LazyChef & Pantry Autopilot: a local-first, privacy-preserving kitchen copilot for Hacktoberfest 2026 Week 3: Slow and Steady Challenge (#hf26challenge) enforcing Sloth Constraints (1 vessel, <=3 steps, <=15 min) with Google Gemma 2B in Web Worker via WebGPU and zero-latency (<15ms) deterministic heuristic fallback.

Agent

Implemented 4 Tracer Bullet phases: 1) Instant Offline Cooking MVP (<15ms), 2) Asynchronous WebGPU Gemma 2B streaming with progress reporting & The Lazy Payoff tracking, 3) Dual-layer safety filter with 108+ toxic item blocklist & Ollama adapter, 4) Polish, accessible high-contrast design system, and full test suite (134 unit tests + Playwright E2E) with 28.52 kB gzipped bundle.

Direct link to inspect the full transcript and tool calls:

LazyChef & Pantry Autopilot Agent Session on DEV


The Lazy Payoff

Quantifying laziness is LazyChef's core philosophy. For every meal cooked through the autopilot:

  • 15 Minutes Saved: No endless recipe doom-scrolling or reading lengthy blog intros.
  • 2 Dirty Pans Prevented: Enforced 1-pan recipe constraints keep your sink clean.
  • $6.50+ Saved per Meal: Utilizing existing pantry ingredients instead of defaulting to delivery apps.

During testing throughout Hacktoberfest Week 3, LazyChef consistently provided fast, satisfying meals with zero kitchen anxiety.


Prize Categories

  • Best Use of Gemma / Open-Weight AI

Top comments (0)