DEV Community

Nasrul Faizin
Nasrul Faizin

Posted on Edited on

MasakApa: Building a Local AI Meal Planner for My Wife

Hacktoberfest: Maintainer Spotlight

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend

What I Built

I built MasakApa for my wife, who works and also cares for our children.

After a long day, deciding what to cook can become another source of stress. MasakApa helps by turning the ingredients already available at home into practical meal ideas.

The user enters available ingredients, selects a cooking mood, and chooses the number of servings. MasakApa then generates three recipe suggestions, including:

  • Why the recipe fits the situation
  • Available ingredients
  • Required missing ingredients and seasonings
  • Optional additions
  • Simple cooking instructions
  • Copy and download actions

Demo

Watch the MasakApa demo recording

Code

View the MasakApa source code on GitHub

GitHub logo nasrul21 / MasakApa

Local AI meal planner using Gemma and Ollama to help busy families cook with ingredients they already have.

MasakApa

MasakApa is a local AI meal planner for busy families. It was built for my wife, who works and also cares for our children. After a long day, the app turns the ingredients already available at home into practical meal ideas.

Why it exists

I made MasakApa for my wife. She works and also cares for our children so deciding what to cook after a long day can become another source of stress. This project is a small, practical tool designed around her real situation: limited time, limited energy, and the ingredients already available at home.

Choosing what to cook can be difficult when time, energy, and ingredients are limited. MasakApa helps by considering:

  • Ingredients already available
  • Cooking mood
  • Family serving size
  • Required missing ingredients and seasonings
  • Optional ingredients

Solution

MasakApa turns a short list of ingredients into practical meal ideas that fit the user's situation. The user enters…

How I Built It

MasakApa is built with Python and Streamlit. It uses Gemma 3 4B through a local Ollama server and the OpenAI-compatible API.

The application flow is:

Streamlit UI
    ↓
Application state and meal services
    ↓
OpenAI-compatible client
    ↓
Ollama → Gemma 3 4B
Enter fullscreen mode Exit fullscreen mode

The app includes defensive response parsing because local models may return Markdown, explanations, thinking blocks, or imperfect JSON. It also validates recipe data and ensures that missing seasonings are included in the cooking instructions.

Why Does Open Innovation Matter?

Using a local open-weight model made it possible to build a private and accessible household tool.
Ingredient information can remain on the user’s computer instead of being sent to a hosted AI service. The model, prompt, and response-processing logic are also visible and changeable.
This makes the solution easier to understand, adapt, and run without depending on a paid closed API.

Prize Categories

  • Best Use of Gemma — Gemma 3 4B running locally through Ollama

Top comments (0)