# umc-i-pill-good/ipillgood-client architecture

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

- Interactive diagram: https://gitdiagram.com/umc-i-pill-good/ipillgood-client
- Repository: https://github.com/umc-i-pill-good/ipillgood-client

## Overview

IPillGood is a personalized supplement recommendation and routine-building web app. The main user journey is to provide health information, receive tailored recommendations, explore products and ingredient information, add supplements to a cabinet, and track daily intake and condition. The README also documents product ranking/comparison, interaction warnings, weekly condition-based suggestions, and ingredient transparency. The tree establishes the feature domains; sampled source confirms selected query and review workflows, but does not expose most page-to-feature wiring or backend calls.

Main entry points: [`ipillgood-client/src/features/survey`](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/survey) (Personalization survey), [`ipillgood-client/src/features/cabinet`](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/cabinet) (Supplement cabinet), [`ipillgood-client/src/app/api/api.ts`](https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/app/api/api.ts) (API client), [`ipillgood-client/src/features/home`](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/home) (Home dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery &amp; recommendations"]
  node_landing["Landing<br/>[page.tsx]"]
  node_survey["Personalization survey"]
  node_recommend["Recommendations"]
end

subgraph group_routine["Supplement routines"]
  node_home["Home dashboard"]
  node_cabinet["Supplement cabinet"]
  node_intake["Intake tracking"]
end

subgraph group_insights["Health insights"]
  node_condition["Condition tracking"]
  node_health["Health recommendations"]
end

subgraph group_community["Products &amp; reviews"]
  node_ranking["Product ranking"]
  node_ingredient["Ingredient reports"]
  node_reviews["Product reviews"]
end

subgraph group_operations["Account &amp; operations"]
  node_auth["Login &amp; signup"]
  node_profile["Profile &amp; settings"]
  node_policy["Policy documents"]
  node_admin["Admin tools"]
  node_api["API client<br/>[api.ts]"]
end

node_user(("User"))

node_user -->|"visits"| node_landing
node_user -->|"signs in"| node_auth
node_user -->|"provides health info"| node_survey
node_survey -->|"personalizes"| node_recommend
node_user -->|"views"| node_home
node_home -->|"presents"| node_recommend
node_user -->|"manages supplements"| node_cabinet
node_cabinet -->|"supports routine"| node_intake
node_user -->|"tracks intake"| node_intake
node_user -->|"records condition"| node_condition
node_condition -->|"guides suggestions"| node_health
node_user -->|"explores products"| node_ranking
node_ranking -->|"compares ingredients"| node_ingredient
node_user -->|"writes reviews"| node_reviews
node_user -->|"manages account"| node_profile
node_user -->|"views policies"| node_policy
node_user -->|"administers content"| node_admin
node_survey -.->|"loads recommendation"| node_api
node_cabinet -.->|"searches products"| node_api
node_reviews -.->|"submits reviews"| node_api

click node_landing "https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/app/(public)/(landing)/page.tsx"
click node_auth "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/login"
click node_survey "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/survey"
click node_recommend "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/home"
click node_home "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/home"
click node_cabinet "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/cabinet"
click node_intake "https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/features/home/components/intake-calendar-section/IntakeCalendarSection.tsx"
click node_condition "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/condition"
click node_health "https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/features/condition/components/health-result/HealthResultContent.tsx"
click node_ranking "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/ranking"
click node_ingredient "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/ingredient"
click node_reviews "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/reviews"
click node_profile "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/my"
click node_policy "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/policy"
click node_admin "https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/admin"
click node_api "https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/app/api/api.ts"

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_landing,node_survey,node_recommend,node_user toneBlue
class node_home,node_cabinet,node_intake toneAmber
class node_condition,node_health toneMint
class node_ranking,node_ingredient,node_reviews toneRose
class node_auth,node_profile,node_policy,node_admin,node_api toneIndigo
```

## Components

### Discovery & recommendations

- [Landing](https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/app/(public)/(landing)/page.tsx): `ipillgood-client/src/app/(public)/(landing)/page.tsx`
- [Personalization survey](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/survey): `ipillgood-client/src/features/survey`
- [Recommendations](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/home): `ipillgood-client/src/features/home`

### Supplement routines

- [Home dashboard](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/home): `ipillgood-client/src/features/home`
- [Supplement cabinet](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/cabinet): `ipillgood-client/src/features/cabinet`
- [Intake tracking](https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/features/home/components/intake-calendar-section/IntakeCalendarSection.tsx): `ipillgood-client/src/features/home/components/intake-calendar-section/IntakeCalendarSection.tsx`

### Health insights

- [Condition tracking](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/condition): `ipillgood-client/src/features/condition`
- [Health recommendations](https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/features/condition/components/health-result/HealthResultContent.tsx): `ipillgood-client/src/features/condition/components/health-result/HealthResultContent.tsx`

### Products & reviews

- [Product ranking](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/ranking): `ipillgood-client/src/features/ranking`
- [Ingredient reports](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/ingredient): `ipillgood-client/src/features/ingredient`
- [Product reviews](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/reviews): `ipillgood-client/src/features/reviews`

### Account & operations

- [Login & signup](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/login): `ipillgood-client/src/features/login`
- [Profile & settings](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/my): `ipillgood-client/src/features/my`
- [Policy documents](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/policy): `ipillgood-client/src/features/policy`
- [Admin tools](https://github.com/umc-i-pill-good/ipillgood-client/tree/develop/ipillgood-client/src/features/admin): `ipillgood-client/src/features/admin`
- [API client](https://github.com/umc-i-pill-good/ipillgood-client/blob/develop/ipillgood-client/src/app/api/api.ts): `ipillgood-client/src/app/api/api.ts`

### Other components

- **User**

## Connections

- User → Landing: visits (evidence: `README.md`)
- User → Login & signup: signs in (evidence: `README.md`)
- User → Personalization survey: provides health info (evidence: `README.md`)
- Personalization survey → Recommendations: personalizes (evidence: `README.md`)
- User → Home dashboard: views (evidence: `README.md`)
- Home dashboard → Recommendations: presents (evidence: `README.md`)
- User → Supplement cabinet: manages supplements (evidence: `README.md`)
- Supplement cabinet → Intake tracking: supports routine (evidence: `README.md`)
- User → Intake tracking: tracks intake (evidence: `README.md`)
- User → Condition tracking: records condition (evidence: `README.md`)
- Condition tracking → Health recommendations: guides suggestions (evidence: `README.md`)
- User → Product ranking: explores products (evidence: `README.md`)
- Product ranking → Ingredient reports: compares ingredients (evidence: `README.md`)
- User → Product reviews: writes reviews (evidence: `README.md`)
- User → Profile & settings: manages account (evidence: `README.md`)
- User → Policy documents: views policies (evidence: `README.md`)
- User → Admin tools: administers content (evidence: `README.md`)
- Personalization survey → API client: loads recommendation
- Supplement cabinet → API client: searches products
- Product reviews → API client: submits reviews
