whatisgithub

What is fridge-chef?

sinansonmez/fridge-chef — explained in plain English

Analysis updated 2026-05-18

1PythonAudience · generalComplexity · 2/5Setup · moderate

In one sentence

A Telegram bot that turns a photo of your fridge into three AI generated recipe ideas using Google's Gemini model.

Mindmap

mindmap
  root((fridge-chef))
    What it does
      Reads fridge photos
      Suggests recipes
      Avoids repeat suggestions
    Tech stack
      Python
      Docker
      Gemini API
    Use cases
      Get quick meal ideas
      Filter by diet
      Track suggestion history
    Audience
      Home cooks

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Send a fridge photo to Telegram and get three recipe ideas back.

USE CASE 2

Add a caption like vegetarian or quick to steer the suggested recipes.

USE CASE 3

Avoid repeat suggestions since recent recipes are excluded automatically.

What is it built with?

PythonDockerTelegram Bot APIGemini APISQLite

How does it compare?

sinansonmez/fridge-chef0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity2/54/54/5
Audiencegeneraldeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs a Telegram bot token and a Gemini API key before it can run.

No license information is given in the README.

So what is it?

fridge-chef is a Telegram bot that turns a photo of the inside of your fridge into three recipe suggestions based on what it can see. You send the bot a picture, and it replies with dishes you could cook using those ingredients, generated by Google's Gemini AI model. The bot runs as a single Docker container and connects to Telegram using long polling, which means it does not need a public server address, a domain name, or any open network ports to work. Photos are analyzed by the cheaper gemini-2.5-flash-lite model first, if that call fails, it retries twice with a short delay between attempts, and if it still fails it falls back to the slightly larger gemini-2.5-flash model once before giving up and reporting an error back in the chat. If several photos are sent together as an album, they are treated as one fridge and combined into a single set of three recipe suggestions rather than three separate replies. Recipes come back in Turkish by default, but adding an English caption to the photo switches the reply to English, and any caption is also read as a constraint, so a note like vegetarian or quick can shape which recipes come back. The bot keeps a small SQLite database of previously suggested dish names so it avoids repeating a recipe within the last five days, shared across everyone allowed to use the bot, and a /recent command lists what has been suggested lately while /forget clears that history. Only Telegram user IDs added to an allowlist can use the bot at all, and setup involves creating a bot through BotFather, getting a Gemini API key, filling in an environment file, then starting it with docker compose.

Copy-paste prompts

Prompt 1
Help me set up this bot with Docker Compose and a Gemini API key.
Prompt 2
Explain how the fallback from gemini-2.5-flash-lite to gemini-2.5-flash works.
Prompt 3
Show me how to add a new allowed Telegram user ID.
Prompt 4
Walk me through what the /recent and /forget commands do.

Frequently asked questions

What is fridge-chef?

A Telegram bot that turns a photo of your fridge into three AI generated recipe ideas using Google's Gemini model.

What language is fridge-chef written in?

Mainly Python. The stack also includes Python, Docker, Telegram Bot API.

What license does fridge-chef use?

No license information is given in the README.

How hard is fridge-chef to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is fridge-chef for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.