# nina1012/fip-catcare architecture

> Architecture diagram of the GitHub repository nina1012/fip-catcare, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nina1012/fip-catcare
- Repository: https://github.com/nina1012/fip-catcare

## Overview

FIP CatCare is a web app for owners managing cats undergoing FIP treatment. The principal workflow is to open a cat’s profile, record medication and health observations, and review treatment progress alongside bloodwork and care reminders. Authentication and account management support that workflow; landing pages and a dosage calculator are additional user-facing capabilities. The README documents the product areas, while sampled source confirms some profile and form-to-API connections; unsampled feature internals are represented at their exact feature directories, with uncertain links omitted.

Main entry points: [`src/app/index.tsx`](https://github.com/nina1012/fip-catcare/blob/main/src/app/index.tsx) (Web app), [`src/app/pages/app/cat/[catID]/index.tsx`](https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/app/cat/%5BcatID%5D/index.tsx) (Cat profile), [`src/lib/supabase.ts`](https://github.com/nina1012/fip-catcare/blob/main/src/lib/supabase.ts) (Supabase client), [`src/app/pages/auth`](https://github.com/nina1012/fip-catcare/tree/main/src/app/pages/auth) (Sign-in pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_app["Web app<br/>[index.tsx]"]
  node_landing["Landing content<br/>[landing.tsx]"]
  node_dashboard["Dashboard<br/>[dashboard.tsx]"]
  node_dosage["Dosage calculator<br/>[dosage-calc.tsx]"]
end

subgraph group_identity["Accounts"]
  node_authpages["Sign-in pages"]
  node_authforms["Account forms"]
  node_authapi["Authentication API"]
  node_userprofile["User profile"]
end

subgraph group_care["Cat care"]
  node_catprofile["Cat profile<br/>[index.tsx]"]
  node_catdata["Cat records"]
  node_dailylogs["Daily health logs"]
  node_bloodwork["Bloodwork"]
  node_reminders["Care reminders"]
  node_visualization["Progress charts"]
  node_notifications["Notifications"]
end

subgraph group_platform["Data services"]
  node_supabase["Supabase client<br/>[supabase.ts]"]
end

node_owner(("Cat owner"))

node_owner -->|"uses"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_authpages
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_dosage
node_app -->|"routes to"| node_catprofile
node_authpages -.->|"presents"| node_authforms
node_authforms -.->|"submits to"| node_authapi
node_authapi -->|"authenticates with"| node_supabase
node_catprofile -->|"loads"| node_catdata
node_catprofile -->|"loads and displays"| node_dailylogs
node_catprofile -->|"displays"| node_bloodwork
node_catprofile -->|"displays"| node_reminders
node_catprofile -->|"renders"| node_visualization
node_dailylogs -.->|"stores records"| node_supabase
node_bloodwork -->|"stores results"| node_supabase
node_reminders -->|"stores schedules"| node_supabase
node_owner -.->|"manages account"| node_userprofile
node_owner -.->|"receives updates"| node_notifications

click node_app "https://github.com/nina1012/fip-catcare/blob/main/src/app/index.tsx"
click node_landing "https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/landing.tsx"
click node_dashboard "https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/app/dashboard.tsx"
click node_dosage "https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/app/dosage-calc.tsx"
click node_authpages "https://github.com/nina1012/fip-catcare/tree/main/src/app/pages/auth"
click node_authforms "https://github.com/nina1012/fip-catcare/tree/main/src/features/auth/components"
click node_authapi "https://github.com/nina1012/fip-catcare/tree/main/src/features/auth/api"
click node_catprofile "https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/app/cat/%5BcatID%5D/index.tsx"
click node_catdata "https://github.com/nina1012/fip-catcare/tree/main/src/features/cat/api"
click node_dailylogs "https://github.com/nina1012/fip-catcare/tree/main/src/features/daily-logs"
click node_bloodwork "https://github.com/nina1012/fip-catcare/tree/main/src/features/bloodwork"
click node_reminders "https://github.com/nina1012/fip-catcare/tree/main/src/features/care-reminders"
click node_visualization "https://github.com/nina1012/fip-catcare/tree/main/src/features/visualization"
click node_userprofile "https://github.com/nina1012/fip-catcare/tree/main/src/features/user"
click node_notifications "https://github.com/nina1012/fip-catcare/tree/main/src/features/notifications"
click node_supabase "https://github.com/nina1012/fip-catcare/blob/main/src/lib/supabase.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_app,node_landing,node_dashboard,node_dosage toneBlue
class node_authpages,node_authforms,node_authapi,node_userprofile toneAmber
class node_catprofile,node_catdata,node_dailylogs,node_bloodwork,node_reminders,node_visualization,node_notifications toneMint
class node_supabase toneRose
class node_owner toneIndigo
```

## Components

### App experience

- [Web app](https://github.com/nina1012/fip-catcare/blob/main/src/app/index.tsx): `src/app/index.tsx`
- [Landing content](https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/landing.tsx): `src/app/pages/landing.tsx`
- [Dashboard](https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/app/dashboard.tsx): `src/app/pages/app/dashboard.tsx`
- [Dosage calculator](https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/app/dosage-calc.tsx): `src/app/pages/app/dosage-calc.tsx`

### Accounts

- [Sign-in pages](https://github.com/nina1012/fip-catcare/tree/main/src/app/pages/auth): `src/app/pages/auth`
- [Account forms](https://github.com/nina1012/fip-catcare/tree/main/src/features/auth/components): `src/features/auth/components`
- [Authentication API](https://github.com/nina1012/fip-catcare/tree/main/src/features/auth/api): `src/features/auth/api`
- [User profile](https://github.com/nina1012/fip-catcare/tree/main/src/features/user): `src/features/user`

### Cat care

- [Cat profile](https://github.com/nina1012/fip-catcare/blob/main/src/app/pages/app/cat/%5BcatID%5D/index.tsx): `src/app/pages/app/cat/[catID]/index.tsx`
- [Cat records](https://github.com/nina1012/fip-catcare/tree/main/src/features/cat/api): `src/features/cat/api`
- [Daily health logs](https://github.com/nina1012/fip-catcare/tree/main/src/features/daily-logs): `src/features/daily-logs`
- [Bloodwork](https://github.com/nina1012/fip-catcare/tree/main/src/features/bloodwork): `src/features/bloodwork`
- [Care reminders](https://github.com/nina1012/fip-catcare/tree/main/src/features/care-reminders): `src/features/care-reminders`
- [Progress charts](https://github.com/nina1012/fip-catcare/tree/main/src/features/visualization): `src/features/visualization`
- [Notifications](https://github.com/nina1012/fip-catcare/tree/main/src/features/notifications): `src/features/notifications`

### Data services

- [Supabase client](https://github.com/nina1012/fip-catcare/blob/main/src/lib/supabase.ts): `src/lib/supabase.ts`

### Other components

- **Cat owner**

## Connections

- Cat owner → Web app: uses (evidence: `README.md`)
- Web app → Landing content: routes to
- Web app → Sign-in pages: routes to
- Web app → Dashboard: routes to
- Web app → Dosage calculator: routes to
- Web app → Cat profile: routes to
- Sign-in pages → Account forms: presents
- Account forms → Authentication API: submits to
- Authentication API → Supabase client: authenticates with (evidence: `src/features/auth/api/get-auth-user.ts`)
- Cat profile → Cat records: loads (evidence: `src/app/pages/app/cat/[catID]/index.tsx`)
- Cat profile → Daily health logs: loads and displays (evidence: `src/app/pages/app/cat/[catID]/index.tsx`)
- Cat profile → Bloodwork: displays (evidence: `src/app/pages/app/cat/[catID]/index.tsx`)
- Cat profile → Care reminders: displays (evidence: `src/app/pages/app/cat/[catID]/index.tsx`)
- Cat profile → Progress charts: renders (evidence: `src/app/pages/app/cat/[catID]/index.tsx`)
- Daily health logs → Supabase client: stores records
- Bloodwork → Supabase client: stores results (evidence: `src/features/bloodwork/api/bloodwork-mutations.ts`)
- Care reminders → Supabase client: stores schedules (evidence: `src/features/care-reminders/api/care-reminder-mutations.ts`)
- Cat owner → User profile: manages account
- Cat owner → Notifications: receives updates
