# zyahevans5/benefitbridge-ai architecture

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

- Interactive diagram: https://gitdiagram.com/zyahevans5/benefitbridge-ai
- Repository: https://github.com/zyahevans5/benefitbridge-ai

## Overview

BenefitBridge AI helps people organize benefit applications after applying. Users add applications, review and update statuses, and manage notes, timelines, and document checklists; application data is loaded from and saved to JSON. The Streamlit source also includes benefit information and an AI Assistant page, though the excerpt does not show the assistant’s response logic. The README separately documents running main.py with a menu; main.py was not sampled, so its relationship to the menu and other modules is unverified.

Main entry points: [`app.py`](https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py) (Streamlit app), [`storage.py`](https://github.com/zyahevans5/benefitbridge-ai/blob/main/storage.py) (JSON storage), [`main.py`](https://github.com/zyahevans5/benefitbridge-ai/blob/main/main.py) (CLI entry), [`application.py`](https://github.com/zyahevans5/benefitbridge-ai/blob/main/application.py) (Application model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interfaces"]
  node_streamlit["Streamlit app<br/>[app.py]"]
  node_cli["CLI entry<br/>[main.py]"]
  node_menu["Text menu<br/>[menu.py]"]
end

subgraph group_workflow["Application workflows"]
  node_application_workflow["Application tracking<br/>[app.py]"]
  node_benefit_info["Benefit information<br/>[app.py]"]
  node_case_notes["Notes and timeline<br/>[app.py]"]
  node_documents["Document checklist<br/>[app.py]"]
  node_assistant["AI Assistant<br/>[app.py]"]
  node_benefit_catalog["Benefit catalog<br/>[benefits.py]"]
end

subgraph group_data["Application data"]
  node_application_model["Application model<br/>[application.py]"]
  node_storage["JSON storage<br/>[storage.py]"]
  node_application_file[("Saved applications<br/>[applications.json]")]
end

node_user(("User"))

node_user -->|"uses"| node_streamlit
node_streamlit -->|"dispatches pages"| node_application_workflow
node_streamlit -->|"dispatches page"| node_benefit_info
node_streamlit -->|"dispatches page"| node_case_notes
node_streamlit -->|"dispatches page"| node_documents
node_streamlit -->|"dispatches page"| node_assistant
node_application_workflow -->|"reads catalog"| node_benefit_catalog
node_application_workflow -->|"creates applications"| node_application_model
node_application_workflow -->|"loads and saves"| node_storage
node_storage -->|"constructs records"| node_application_model
node_storage -->|"reads and writes"| node_application_file
node_user -->|"runs entry point"| node_cli
node_cli -.->|"may invoke"| node_menu

click node_streamlit "https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py"
click node_cli "https://github.com/zyahevans5/benefitbridge-ai/blob/main/main.py"
click node_menu "https://github.com/zyahevans5/benefitbridge-ai/blob/main/menu.py"
click node_application_workflow "https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py"
click node_benefit_info "https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py"
click node_case_notes "https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py"
click node_documents "https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py"
click node_assistant "https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py"
click node_benefit_catalog "https://github.com/zyahevans5/benefitbridge-ai/blob/main/benefits.py"
click node_application_model "https://github.com/zyahevans5/benefitbridge-ai/blob/main/application.py"
click node_storage "https://github.com/zyahevans5/benefitbridge-ai/blob/main/storage.py"
click node_application_file "https://github.com/zyahevans5/benefitbridge-ai/blob/main/applications.json"

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_streamlit,node_cli,node_menu,node_user toneBlue
class node_application_workflow,node_benefit_info,node_case_notes,node_documents,node_assistant,node_benefit_catalog toneAmber
class node_application_model,node_storage,node_application_file toneMint
```

## Components

### User interfaces

- [Streamlit app](https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py): `app.py`
- [CLI entry](https://github.com/zyahevans5/benefitbridge-ai/blob/main/main.py): `main.py`
- [Text menu](https://github.com/zyahevans5/benefitbridge-ai/blob/main/menu.py): `menu.py`

### Application workflows

- [Application tracking](https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py): `app.py`
- [Benefit information](https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py): `app.py`
- [Notes and timeline](https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py): `app.py`
- [Document checklist](https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py): `app.py`
- [AI Assistant](https://github.com/zyahevans5/benefitbridge-ai/blob/main/app.py): `app.py`
- [Benefit catalog](https://github.com/zyahevans5/benefitbridge-ai/blob/main/benefits.py): `benefits.py`

### Application data

- [Application model](https://github.com/zyahevans5/benefitbridge-ai/blob/main/application.py): `application.py`
- [JSON storage](https://github.com/zyahevans5/benefitbridge-ai/blob/main/storage.py): `storage.py`
- [Saved applications](https://github.com/zyahevans5/benefitbridge-ai/blob/main/applications.json): `applications.json`

### Other components

- **User**

## Connections

- User → Streamlit app: uses (evidence: `app.py`)
- Streamlit app → Application tracking: dispatches pages (evidence: `app.py`)
- Streamlit app → Benefit information: dispatches page (evidence: `app.py`)
- Streamlit app → Notes and timeline: dispatches page (evidence: `app.py`)
- Streamlit app → Document checklist: dispatches page (evidence: `app.py`)
- Streamlit app → AI Assistant: dispatches page (evidence: `app.py`)
- Application tracking → Benefit catalog: reads catalog (evidence: `app.py`)
- Application tracking → Application model: creates applications (evidence: `app.py`)
- Application tracking → JSON storage: loads and saves (evidence: `app.py`)
- JSON storage → Application model: constructs records (evidence: `storage.py`)
- JSON storage → Saved applications: reads and writes (evidence: `storage.py`)
- User → CLI entry: runs entry point (evidence: `README.md`)
- CLI entry → Text menu: may invoke
