# ishitasem/planzypop-ai architecture

> Architecture diagram of the GitHub repository ishitasem/planzypop-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ishitasem/planzypop-ai
- Repository: https://github.com/ishitasem/planzypop-ai

## Overview

PlanzyPop AI is an event-planning app: users manage celebrations in the React interface, request a generated plan or event-specific advice, and receive structured results with curated fallback when Gemini is unavailable. The frontend also offers budget, task, vendor, inspiration, and settings areas; its event data is stored in browser localStorage. The backend exposes health, plan, and chat endpoints and delegates planning and chat generation to a Gemini service. The graph follows documented capabilities and shown calls; unsampled frontend details are grouped rather than inferred.

Main entry points: [`frontend/src/App.tsx`](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx) (Planning workspace), [`frontend/src/services/api.ts`](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/services/api.ts) (Typed API client), [`backend/app/services/gemini_service.py`](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/services/gemini_service.py) (Plan and chat generation), [`backend/app/main.py`](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/main.py) (FastAPI application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Planning interface"]
  node_app["Planning workspace<br/>[App.tsx]"]
  node_browser_store[("Browser storage")]
  node_api_client["Typed API client<br/>[api.ts]"]
  node_health_ui["Health status<br/>[App.tsx]"]
  node_events["Event management<br/>[App.tsx]"]
  node_budget["Budget planning<br/>[App.tsx]"]
  node_tasks["Task tracking<br/>[App.tsx]"]
  node_vendors["Vendor management<br/>[App.tsx]"]
  node_inspiration["Inspiration<br/>[App.tsx]"]
  node_settings["Settings<br/>[App.tsx]"]
end

subgraph group_api["Backend API"]
  node_backend["FastAPI application<br/>[main.py]"]
  node_health_route["Health endpoint<br/>[health.py]"]
  node_plan_route["Plan endpoint<br/>[planner.py]"]
  node_chat_route["Chat endpoint<br/>[chat.py]"]
  node_schemas["Request validation<br/>[planner.py]"]
end

subgraph group_planning["Planning services"]
  node_gemini_service["Plan and chat generation<br/>[gemini_service.py]"]
end

subgraph group_runtime["Runtime configuration"]
  node_config["Environment settings<br/>[config.py]"]
end

node_user(("Event planner"))
node_gemini{{"Google Gemini"}}

node_user -->|"uses"| node_app
node_app -->|"manages"| node_events
node_app -->|"plans"| node_budget
node_app -->|"tracks"| node_tasks
node_app -->|"manages"| node_vendors
node_app -->|"browses"| node_inspiration
node_app -->|"configures"| node_settings
node_app -->|"reads and writes"| node_browser_store
node_app -->|"calls"| node_api_client
node_api_client -->|"sends HTTP requests"| node_backend
node_backend -->|"registers"| node_health_route
node_backend -->|"registers"| node_plan_route
node_backend -->|"registers"| node_chat_route
node_api_client -->|"requests health"| node_health_route
node_api_client -->|"requests plans"| node_plan_route
node_api_client -->|"requests advice"| node_chat_route
node_health_route -->|"reads settings"| node_config
node_health_route -->|"returns health schema"| node_schemas
node_plan_route -->|"validates requests"| node_schemas
node_plan_route -->|"generates plan"| node_gemini_service
node_chat_route -->|"validates requests"| node_schemas
node_chat_route -->|"generates advice"| node_gemini_service
node_gemini_service -->|"builds responses"| node_schemas
node_gemini_service -->|"reads credentials"| node_config
node_gemini_service -->|"generates content"| node_gemini

click node_app "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx"
click node_api_client "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/services/api.ts"
click node_health_ui "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx"
click node_events "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx"
click node_budget "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx"
click node_tasks "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx"
click node_vendors "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx"
click node_inspiration "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx"
click node_settings "https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx"
click node_backend "https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/main.py"
click node_health_route "https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/routes/health.py"
click node_plan_route "https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/routes/planner.py"
click node_chat_route "https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/routes/chat.py"
click node_schemas "https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/schemas/planner.py"
click node_gemini_service "https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/services/gemini_service.py"
click node_config "https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/core/config.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_browser_store,node_api_client,node_health_ui,node_events,node_budget,node_tasks,node_vendors,node_inspiration,node_settings toneBlue
class node_backend,node_health_route,node_plan_route,node_chat_route,node_schemas toneAmber
class node_gemini_service toneMint
class node_config toneRose
class node_user,node_gemini toneIndigo
```

## Components

### Planning interface

- [Planning workspace](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- **Browser storage**
- [Typed API client](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`
- [Health status](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Event management](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Budget planning](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Task tracking](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Vendor management](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Inspiration](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Settings](https://github.com/ishitasem/planzypop-ai/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`

### Backend API

- [FastAPI application](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/main.py): `backend/app/main.py`
- [Health endpoint](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/routes/health.py): `backend/app/routes/health.py`
- [Plan endpoint](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/routes/planner.py): `backend/app/routes/planner.py`
- [Chat endpoint](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/routes/chat.py): `backend/app/routes/chat.py`
- [Request validation](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/schemas/planner.py): `backend/app/schemas/planner.py`

### Planning services

- [Plan and chat generation](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/services/gemini_service.py): `backend/app/services/gemini_service.py`

### Runtime configuration

- [Environment settings](https://github.com/ishitasem/planzypop-ai/blob/main/backend/app/core/config.py): `backend/app/core/config.py`

### Other components

- **Event planner**
- **Google Gemini**

## Connections

- Event planner → Planning workspace: uses (evidence: `README.md`)
- Planning workspace → Event management: manages (evidence: `frontend/src/App.tsx`)
- Planning workspace → Budget planning: plans (evidence: `README.md`)
- Planning workspace → Task tracking: tracks (evidence: `README.md`)
- Planning workspace → Vendor management: manages (evidence: `README.md`)
- Planning workspace → Inspiration: browses (evidence: `README.md`)
- Planning workspace → Settings: configures (evidence: `README.md`)
- Planning workspace → Browser storage: reads and writes (evidence: `frontend/src/App.tsx`)
- Planning workspace → Typed API client: calls (evidence: `frontend/src/App.tsx`)
- Typed API client → FastAPI application: sends HTTP requests (evidence: `frontend/src/services/api.ts`)
- FastAPI application → Health endpoint: registers (evidence: `backend/app/main.py`)
- FastAPI application → Plan endpoint: registers (evidence: `backend/app/main.py`)
- FastAPI application → Chat endpoint: registers (evidence: `backend/app/main.py`)
- Typed API client → Health endpoint: requests health (evidence: `frontend/src/services/api.ts`)
- Typed API client → Plan endpoint: requests plans (evidence: `frontend/src/services/api.ts`)
- Typed API client → Chat endpoint: requests advice (evidence: `frontend/src/services/api.ts`)
- Health endpoint → Environment settings: reads settings (evidence: `backend/app/routes/health.py`)
- Health endpoint → Request validation: returns health schema (evidence: `backend/app/routes/health.py`)
- Plan endpoint → Request validation: validates requests (evidence: `backend/app/routes/planner.py`)
- Plan endpoint → Plan and chat generation: generates plan (evidence: `backend/app/routes/planner.py`)
- Chat endpoint → Request validation: validates requests (evidence: `backend/app/routes/chat.py`)
- Chat endpoint → Plan and chat generation: generates advice (evidence: `backend/app/routes/chat.py`)
- Plan and chat generation → Request validation: builds responses (evidence: `backend/app/services/gemini_service.py`)
- Plan and chat generation → Environment settings: reads credentials (evidence: `backend/app/services/gemini_service.py`)
- Plan and chat generation → Google Gemini: generates content (evidence: `backend/app/services/gemini_service.py`)
