LazyList AI:讓開源 AI 為你規劃餐單和購物清單
LazyList AI: Let Open-Source AI Plan Your Meals and Grocery List
LazyList AI 透過 Ollama 在本機執行 Gemma,根據用戶已有食材推薦餐點,並整理所缺食材的購物清單。清單儲存在瀏覽器的 localStorage,毋須帳戶或遠端資料庫;本機推理可減少向外部 AI 服務分享食材資料,但仍需合適硬件、電力及安裝維護模型。
LazyList AI: Let Open-Source AI Plan Your Meals and Grocery List
Ever opened your refrigerator, stared at the ingredients, and wondered what to cook? Then, after deciding on a meal, you realize you are missing half the ingredients.
I wanted to build something small that makes this everyday task easier.
Meet LazyList AI, a simple AI-powered grocery planning application that suggests meals based on ingredients you already have and creates a shopping list of the missing items.
The idea behind this project is simple: spend less time planning and more time enjoying your day.
What I Built
LazyList AI helps users turn the ingredients they already have into meal suggestions and a practical grocery list.
Here's the workflow:
- Enter the ingredients available in your kitchen.
- Ask the AI to suggest easy meals using those ingredients.
- Generate a combined shopping list of ingredients that are missing.
- Check off purchased items and remove anything you don't need.
- Save your list locally so you can return to it later.
Instead of repeatedly planning meals, searching for recipes, and writing shopping lists manually, users can complete these tasks in one place.
Who is it for?
LazyList AI is designed for people who want to simplify everyday meal planning:
- Students who want to cook simple meals.
- Busy professionals who don't want to spend much time planning dinner.
- People who want to use ingredients they already have.
- Anyone who regularly forgets items when shopping for groceries.
The project focuses on one small problem rather than trying to become a complete meal-planning platform.
Code
GitHub repository: [https://github.com/Leafyte/LazyListAI]
The application uses a simple structure that separates the user interface from the backend and AI integration.
The repository includes the frontend, Flask backend, local model integration, and setup instructions.
How I Built It
I built LazyList AI using a lightweight web stack:
- HTML, CSS, and JavaScript for the frontend.
- Python and Flask for the backend.
- Gemma through Ollama for locally running open-weight AI.
- Browser localStorage for saving grocery lists locally.
I chose this stack to keep the project manageable and easy to run on a personal computer.
1. Enter ingredients
The user starts by entering ingredients they already have, such as rice, eggs, tomatoes, onions, or potatoes.
The frontend sends these ingredients to the Flask backend for processing.
2. Generate meal suggestions
The backend sends a prompt containing the available ingredients to the local Gemma model through Ollama.
The model suggests meals that use those ingredients and identifies any additional ingredients needed.
This is where the language model adds value: instead of relying entirely on a fixed list of recipes, the application can generate suggestions based on the user's specific input.
3. Create the grocery list
The application combines the missing ingredients into a shopping list.
Users can review the suggestions, remove unnecessary items, and check off items as they shop.
The aim is to reduce the number of separate steps required to go from deciding what to cook to knowing what to buy.
4. Save the list
The application uses browser localStorage to retain grocery-list data on the user's device.
This avoids the need for an account system or remote database in the initial version.
Why Does Open Innovation Matter?
Open-source AI is an important part of LazyList AI because the application is designed around local inference rather than a paid, hosted AI API.
Less dependence on paid APIs
A hosted AI service may charge based on usage or impose usage limits.
With a compatible open-weight model running through Ollama, users can generate meal suggestions without paying a third-party AI provider for every request.
Local inference is not completely free, however. Users still need suitable hardware, electricity, and the time to install and maintain the model.
More control over personal data
Ingredient lists can reveal something about a person's routines, preferences, and household habits.
Running the model locally allows the AI requests to stay on the user's computer instead of sending ingredient data to a remote AI provider.
This reduces external data sharing, although users still need to protect their device and local services.
Freedom to experiment
Using an open-weight model makes it easier to experiment with different prompts and compatible models.
For example, the application could be adapted to prioritize budget-friendly meals, vegetarian options, quick recipes, or ingredients commonly used in a particular region.
The model can be changed without rebuilding the entire application around a single provider's hosted API.
For a small project like this, that flexibility is one of the main benefits of open innovation.
The Lazy Payoff
The goal of LazyList AI is to reduce the small decisions and repetitive tasks involved in everyday meal planning.
Without the application, a user might need to:
- Decide what to cook.
- Search for suitable meals.
- Identify missing ingredients.
- Write a shopping list.
- Remember which items have already been purchased.
LazyList AI brings these steps into a single workflow.
I haven't included a measured time-saving claim because that would require testing the application with real users and comparing the time taken with and without it.
A useful next step would be to ask a few people to try the application during their normal grocery planning and collect feedback about its usefulness, accuracy, and ease of use.
What's Next?
If I continue developing LazyList AI, I'd like to explore a few improvements:
- Ingredient quantities and serving sizes.
- Budget-conscious grocery planning.
- Support for dietary preferences.
- A weekly meal planner.
- Better handling of duplicate ingredients.
- More consistent output from the AI model.
I'd prioritize the features that make the application more useful in everyday life rather than adding complexity just for the sake of it.
Conclusion
LazyList AI started with a simple idea: what if planning meals and writing grocery lists required less effort?
By combining a lightweight web application with a locally running open-weight model, I explored how open-source AI can help automate an ordinary task without depending on a paid AI API.
It is a small project, but that is the point. Not every useful AI application needs to be a massive platform or a complicated agent.
Sometimes, making one repetitive task easier is enough.
Build small. Automate the boring parts. Take it slow.
Thanks for reading!
來源:DEV Community · dev.to