Skip to content
UsecaseBoard
← All use cases
blogFood

Build a leftover dinner roulette

At a glance

A writer used Claude Code to make and test a browser wheel that suggests dishes from ingredients on hand. This workflow is listed under Food, Meal Planning.

Agents / tools
Claude Code, Chrome

SourceBuilding a tool for these workflows? See weekly rates.

What they did

1) In Claude Code, request a single HTML file for a leftover-dinner roulette. Specify an ingredient input accepting commas, spaces or line breaks; about 40 home dishes with ingredient lists; a 2–3 second slowing spin; available and missing ingredients for the selected dish; a no-candidate message; browser storage; a phone-sized layout; and no external libraries or network calls. 2) Save the generated file as UTF-8 HTML and open it in Chrome. Enter several ingredients and spin repeatedly. 3) If the pointer and result disagree, ask Claude to calculate from the current angle and center the selected slice beneath the top pointer. Ask it to reserve one candidate per input ingredient before filling remaining slots by score, and add aliases for alternate ingredient names. 4) Test long labels and a 375-pixel viewport; request smaller text and a circular clipping area if needed. Open the corrected HTML, enter ingredients and spin to choose a dish.

How it went

The author reported that all 15 spins after correction matched the pointer and displayed result. The finished list contained 42 dishes and showed at most eight candidates.

Worth knowing

Tests used headless Chrome at 1280 and 375 pixels; the author did not test real phones, Safari, Firefox or actually cook the dishes. The AI-generated ingredient lists were not professionally reviewed.

Save ideas in this browser. Upvotes count across the board.

Prompt excerpt

No prompt excerpt was provided by the source.

Sponsored

CodeBuddy

Tencent Cloud AI coding assistant for IDE and CLI.

Try CodeBuddy ↗
Explore all →