# kusitms-34th-gudogging/gudogging-fe architecture

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

- Interactive diagram: https://gitdiagram.com/kusitms-34th-gudogging/gudogging-fe
- Repository: https://github.com/kusitms-34th-gudogging/gudogging-fe

## Overview

This is an Expo subscription-management app. Users can discover or import subscriptions, enter and review payment details, then manage subscriptions, billing dates, checkups, and cancellation guidance. The sampled registration flow shows service selection backed by the services API and a persisted draft; the broader screens and hooks indicate the other product areas. Several route-to-screen and domain-to-domain connections are not visible in the excerpts, so they are left unconnected rather than inferred.

Main entry points: [`src/hooks/useRegisterDraft.ts`](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useRegisterDraft.ts) (Registration draft), [`src/screens/register/RegisterServiceSelectScreen.tsx`](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/register/RegisterServiceSelectScreen.tsx) (Service selection), [`src/lib/request.ts`](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/lib/request.ts) (Authenticated API client), [`src/app/register`](https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/app/register) (Registration routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and account"]
  node_auth["Login and session<br/>[LoginScreen.tsx]"]
  node_onboarding["Onboarding"]
  node_profile["Account settings"]
end

subgraph group_registration["Subscription registration"]
  node_register_routes["Registration routes"]
  node_service_select["Service selection"]
  node_service_input["Payment details"]
  node_register_confirm["Review and submit"]
  node_import_subscriptions["Subscription import"]
  node_register_draft["Registration draft"]
end

subgraph group_management["Subscription management"]
  node_home["Home overview<br/>[HomeScreen.tsx]"]
  node_manage["Subscription management<br/>[ManageScreen.tsx]"]
  node_subscription_detail["Subscription details"]
  node_calendar["Billing calendar<br/>[CalendarScreen.tsx]"]
  node_cancel["Cancellation guidance"]
end

subgraph group_engagement["Checkups and notifications"]
  node_checkup["Subscription checkup<br/>[CheckupScreen.tsx]"]
  node_notifications["Notifications"]
end

subgraph group_platform["App data and services"]
  node_service_catalog["Service catalog data<br/>[useServices.ts]"]
  node_subscription_data["Subscription data"]
  node_api_client["Authenticated API client<br/>[request.ts]"]
end

node_user(("App user"))
node_backend{{"Application API"}}
node_local_storage[("Device draft storage")]

node_user -->|"signs in"| node_auth
node_user -.->|"starts setup"| node_onboarding
node_user -.->|"uses app"| node_home
node_user -.->|"registers subscriptions"| node_register_routes
node_register_routes -.->|"routes to"| node_service_select
node_service_select -->|"queries services"| node_service_catalog
node_service_select -->|"updates selection"| node_register_draft
node_service_input -->|"reads and updates"| node_register_draft
node_register_confirm -->|"uses draft"| node_register_draft
node_import_subscriptions -.->|"stores findings"| node_register_draft
node_register_draft -->|"persists draft"| node_local_storage
node_service_catalog -->|"requests catalog"| node_api_client
node_subscription_data -->|"requests subscriptions"| node_api_client
node_api_client -->|"sends requests"| node_backend
node_user -.->|"manages services"| node_manage
node_user -.->|"views billing dates"| node_calendar
node_user -.->|"reviews usage"| node_checkup
node_user -.->|"seeks cancellation help"| node_cancel
node_user -.->|"checks alerts"| node_notifications
node_user -.->|"changes account settings"| node_profile

click node_auth "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/login/LoginScreen.tsx"
click node_onboarding "https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/screens/onboarding"
click node_home "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/home/HomeScreen.tsx"
click node_register_routes "https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/app/register"
click node_service_select "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/register/RegisterServiceSelectScreen.tsx"
click node_service_input "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/register/RegisterServiceInputScreen.tsx"
click node_register_confirm "https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/screens/register"
click node_import_subscriptions "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useAnalyzeSubscriptions.ts"
click node_register_draft "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useRegisterDraft.ts"
click node_manage "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/manage/ManageScreen.tsx"
click node_subscription_detail "https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/screens/manage"
click node_calendar "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/calendar/CalendarScreen.tsx"
click node_cancel "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/cancel/CancelGuideScreen.tsx"
click node_checkup "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/checkup/CheckupScreen.tsx"
click node_notifications "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/home/HomeNotificationScreen.tsx"
click node_profile "https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/screens/mypage"
click node_service_catalog "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useServices.ts"
click node_subscription_data "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useSubscriptions.ts"
click node_api_client "https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/lib/request.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_auth,node_onboarding,node_profile,node_user toneBlue
class node_register_routes,node_service_select,node_service_input,node_register_confirm,node_import_subscriptions,node_register_draft,node_local_storage toneAmber
class node_home,node_manage,node_subscription_detail,node_calendar,node_cancel,node_backend toneMint
class node_checkup,node_notifications toneRose
class node_service_catalog,node_subscription_data,node_api_client toneIndigo
```

## Components

### Entry and account

- [Login and session](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/login/LoginScreen.tsx): `src/screens/login/LoginScreen.tsx`
- [Onboarding](https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/screens/onboarding): `src/screens/onboarding`
- [Account settings](https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/screens/mypage): `src/screens/mypage`

### Subscription registration

- [Registration routes](https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/app/register): `src/app/register`
- [Service selection](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/register/RegisterServiceSelectScreen.tsx): `src/screens/register/RegisterServiceSelectScreen.tsx`
- [Payment details](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/register/RegisterServiceInputScreen.tsx): `src/screens/register/RegisterServiceInputScreen.tsx`
- [Review and submit](https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/screens/register): `src/screens/register`
- [Subscription import](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useAnalyzeSubscriptions.ts): `src/hooks/useAnalyzeSubscriptions.ts`
- [Registration draft](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useRegisterDraft.ts): `src/hooks/useRegisterDraft.ts`

### Subscription management

- [Home overview](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/home/HomeScreen.tsx): `src/screens/home/HomeScreen.tsx`
- [Subscription management](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/manage/ManageScreen.tsx): `src/screens/manage/ManageScreen.tsx`
- [Subscription details](https://github.com/kusitms-34th-gudogging/gudogging-fe/tree/dev/src/screens/manage): `src/screens/manage`
- [Billing calendar](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/calendar/CalendarScreen.tsx): `src/screens/calendar/CalendarScreen.tsx`
- [Cancellation guidance](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/cancel/CancelGuideScreen.tsx): `src/screens/cancel/CancelGuideScreen.tsx`

### Checkups and notifications

- [Subscription checkup](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/checkup/CheckupScreen.tsx): `src/screens/checkup/CheckupScreen.tsx`
- [Notifications](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/screens/home/HomeNotificationScreen.tsx): `src/screens/home/HomeNotificationScreen.tsx`

### App data and services

- [Service catalog data](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useServices.ts): `src/hooks/useServices.ts`
- [Subscription data](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/hooks/useSubscriptions.ts): `src/hooks/useSubscriptions.ts`
- [Authenticated API client](https://github.com/kusitms-34th-gudogging/gudogging-fe/blob/dev/src/lib/request.ts): `src/lib/request.ts`

### Other components

- **App user**
- **Application API**
- **Device draft storage**

## Connections

- App user → Login and session: signs in
- App user → Onboarding: starts setup
- App user → Home overview: uses app
- App user → Registration routes: registers subscriptions
- Registration routes → Service selection: routes to
- Service selection → Service catalog data: queries services (evidence: `src/screens/register/RegisterServiceSelectScreen.tsx`)
- Service selection → Registration draft: updates selection (evidence: `src/screens/register/RegisterServiceSelectScreen.tsx`)
- Payment details → Registration draft: reads and updates (evidence: `src/screens/register/RegisterServiceInputScreen.tsx`)
- Review and submit → Registration draft: uses draft (evidence: `src/screens/register/RegisterSelectedServiceScreen.tsx`)
- Subscription import → Registration draft: stores findings
- Registration draft → Device draft storage: persists draft (evidence: `src/hooks/useRegisterDraft.ts`)
- Service catalog data → Authenticated API client: requests catalog (evidence: `src/hooks/useServices.ts`)
- Subscription data → Authenticated API client: requests subscriptions (evidence: `src/hooks/useSubscriptions.ts`)
- Authenticated API client → Application API: sends requests (evidence: `src/lib/request.ts`)
- App user → Subscription management: manages services
- App user → Billing calendar: views billing dates
- App user → Subscription checkup: reviews usage
- App user → Cancellation guidance: seeks cancellation help
- App user → Notifications: checks alerts
- App user → Account settings: changes account settings
