DevPrep
  • Interview Prep
  • Projects
  • Resources
  • Pricing
  • About Us
Submit Question
DevPrep
  • Pricing
  • About Us
Submit Question
← From Beginner to Expert in Fundamentals of Frontend
  • Project 1: The Performance-First Dashboard
  • Project 2: Accessible Video Player
  • Project 3: Markdown Blog Engine
  • Project 4: Browser-Based Code Editor
  • Project 5: Multi-Tab Whiteboard
  • Project 6: Infinite Scroll Image Gallery
  • Project 7: Recipe Optimizer & Converter
  • Project 8: Budget Tracker with Charts
  • Project 9: Typing Speed Test
  • Project 10: Weather App with Time-Travel
  • Project 11: CSS Grid Layout Builder
  • Project 12: Password Vault (Frontend Only)
  • Project 13: Kanban Board (Trello Clone)
  • Project 14: Quiz App with Leaderboard
  • Project 15: Habit Tracker (GitHub Style)
  • Project 16: E-commerce Product Page
  • Project 17: Unit Converter (Expert Mode)
  • Project 18: Music Visualizer
  • Project 19: Flashcard Learning App
  • Project 20: Custom Form Validator
  • Project 21: Virtual Terminal
  • Project 22: Pomodoro Timer (Focus Pro)
  • Project 23: SVG Path Editor
  • Project 24: Movie Database Matchmaker
  • Project 25: Interactive Resume / Portfolio
  • Project 26: Recipe Scraper UI
  • Project 27: Crypto Tracker (Real-Time)
  • Project 28: Find My Pet (PWA)
  • Project 29: Markdown-to-Slide Tool
  • Project 30: Browser Health Dashboard
← From Beginner to Expert in Fundamentals of Frontend

Project 26: Recipe Scraper UI

30 min read
Content ExtractionRegex ParsingWake Lock APIFraction MathChecklist UXPrint/Export

📋 Project Brief

Build a recipe cleaner UI that strips away the ads, life stories, and clutter from recipe blog pages, presenting only the ingredients and instructions in a clean, usable format.

✅ Feature Requirements

Feature 1: Content Extraction

Acceptance Criteria:

  • Simulated input: user pastes raw recipe text or HTML
  • Regex and heuristics extract: title, ingredients list, and step-by-step instructions
  • Ignore non-recipe content (ads, author bios, "Jump to Recipe" links)

Feature 2: Cook Mode

Acceptance Criteria:

  • Large font (20px+), high contrast, simplified layout
  • Wake Lock API keeps screen on
  • Step-by-step navigation with "Next Step" / "Previous Step" buttons
  • Current step highlighted; completed steps dimmed

Feature 3: Fraction Scaling

Acceptance Criteria:

  • A multiplier (0.5x, 1x, 2x, 3x) scales all ingredient quantities
  • Fractions displayed as readable characters (½, ¼, ¾)
  • Non-scalable items (e.g., "1 bay leaf") remain unchanged

Feature 4: Ingredient Checklist

Acceptance Criteria:

  • Each ingredient is a clickable checkbox
  • Checked items get strikethrough styling
  • A progress bar shows "5 of 12 ingredients ready"

Feature 5: Shopping List Export

Acceptance Criteria:

  • Unchecked ingredients exported as a plain-text shopping list
  • Grouped by category (Produce, Dairy, Pantry) if possible
  • "Copy to Clipboard" and "Share" options

🧪 Testing Checklist

  • Unit test ingredient parsing and fraction scaling
  • Unit test content extraction regex
  • Integration test: pasting recipe text produces clean output
  • A11y: Cook Mode fully keyboard-navigable

Practice

  • JavaScript
  • DSA
  • Machine Coding
  • System Design

Resources

  • Learning Tracks
  • Articles
  • Roadmaps
  • Compare Concepts
  • Glossary
  • Developer Tools
  • All Questions

Company

  • About
  • Pricing

Legal

  • Privacy Policy
  • Terms of Service
DevPrep

© 2026 DevPrep. All rights reserved.