# curiousily/chefskiss architecture

> Architecture diagram of the GitHub repository curiousily/chefskiss, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/curiousily/chefskiss
- Repository: https://github.com/curiousily/chefskiss

## Overview

##### Project type and purpose
- Chef’s Kiss is a conversational, agent-driven recipe suggestion application.
- It’s built with Python and the Google Agentic Development Kit (ADK), exposing a web UI (`adk web`) that interacts with an LLM (via Ollama or the Gemini API) to generate personalized recipes.

##### File structure
Top-level files and folders:
- `.github`, `LICENSE`, `.gitignore`, `.pre-commit-config.yaml`, `.python-version`, `.vscode` – standard repo and CI/editor config
- `pyproject.toml`, `uv.lock` – Python dependency and lock files for the `uv` toolchain
- `README.md` – project overview and run instructions
- `artefacts/` – contains static JSON data (`macros.json`, `recipes.json`) used by the agent for domain knowledge
- `chefskiss/` – the main Python package:
– `.env.example` – environment variable template for the Gemini API key
– `agent.py` – the core Agent implementation using the ADK
– `__init__.py` – package marker

##### README for additional insights
- The ADK web server (`adk web`) provides the HTTP/WebSocket endpoints and UI shell.
- LLM inference is done locally through Ollama (default Qwen2.5 7B) or remotely via the Gemini API (configured via `.env`).
- The artefacts JSON files seed the agent’s knowledge base (recipe formats, macros, etc.).

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Frontend"
        Browser["User Browser UI"]:::ui
    end

    subgraph "Backend"
        ADK["ADK Web Server"]:::runtime
        Agent["Chef's Kiss Agent"]:::runtime
        Browser -->|HTTP/WebSocket| ADK
        ADK -->|routes requests| Agent
    end

    subgraph "Data & Config"
        ArtefactsDir["artefacts/"]:::data
        Macros["macros.json"]:::data
        Recipes["recipes.json"]:::data
        Env[".env (LLM Config)"]:::data

        ArtefactsDir --> Macros
        ArtefactsDir --> Recipes
        Macros --> Agent
        Recipes --> Agent
        Env --> Agent
    end

    subgraph "LLM Inference"
        Ollama["Ollama (Local LLM)"]:::external
        Gemini["Gemini API (Remote LLM)"]:::external
        Agent -->|construct prompts| Ollama
        Agent -->|construct prompts| Gemini
        Ollama -->|returns recipe| Agent
        Gemini -->|returns recipe| Agent
    end

    Agent -->|formats response| ADK
    ADK -->|delivers response| Browser

    subgraph "Developer Toolchain"
        PyProj["pyproject.toml"]:::tool
        UVLock["uv.lock"]:::tool
        Github[".github/"]:::tool
        PreCommit[".pre-commit-config.yaml"]:::tool
        README["README.md"]:::tool
    end

    classDef ui fill:#9BD1FF,stroke:#0366d6;
    classDef runtime fill:#B4F8C8,stroke:#028A0F;
    classDef data fill:#F5E1A4,stroke:#A46708;
    classDef external fill:#FFD1D1,stroke:#D90429;
    classDef tool fill:#E0E0E0,stroke:#6E6E6E;

    click Agent "https://github.com/curiousily/chefskiss/blob/master/chefskiss/agent.py"
    click ArtefactsDir "https://github.com/curiousily/chefskiss/tree/master/artefacts/"
    click Macros "https://github.com/curiousily/chefskiss/blob/master/artefacts/macros.json"
    click Recipes "https://github.com/curiousily/chefskiss/blob/master/artefacts/recipes.json"
    click Env "https://github.com/curiousily/chefskiss/blob/master/chefskiss/.env.example"
    click PyProj "https://github.com/curiousily/chefskiss/blob/master/pyproject.toml"
    click UVLock "https://github.com/curiousily/chefskiss/blob/master/uv.lock"
    click Github "https://github.com/curiousily/chefskiss/tree/master/.github/"
    click PreCommit "https://github.com/curiousily/chefskiss/blob/master/.pre-commit-config.yaml"
    click README "https://github.com/curiousily/chefskiss/blob/master/README.md"
```
