# yyejin00/graduated-project-master architecture

> Architecture diagram of the GitHub repository yyejin00/graduated-project-master, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yyejin00/graduated-project-master
- Repository: https://github.com/yyejin00/graduated-project-master

## Overview

MiniStar is a React Native social mini-homepage combining profiles and customizable rooms with social posts, search, chat, and a points-based store. The documented user journey is authentication into the app, then browsing or creating social content and personalizing a profile. The map highlights those product areas and shared state. Several subsystems are represented from the README and source index rather than inspected implementation; those links are shown only where the index or documentation supports them.

Main entry points: [`src/navigators/AppStack.js`](https://github.com/yyejin00/graduated-project-master/blob/master/src/navigators/AppStack.js) (App Navigation), [`src/utils/AuthProvider.js`](https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/AuthProvider.js) (Auth Provider), [`src/utils/Routes.js`](https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/Routes.js) (Auth Routing), [`src/screens/ProfileScreen/ProfileScreen.js`](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/ProfileScreen.js) (Profile Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App Entry"]
  node_routes["Auth Routing<br/>[Routes.js]"]
  node_authnav["Sign-in Screens"]
  node_appstack["App Navigation<br/>[AppStack.js]"]
end

subgraph group_social["Social Discovery"]
  node_feed["Social Feed<br/>[SnsScreen.js]"]
  node_postcard["Post Card<br/>[PostCard.js]"]
  node_poststyles["Feed Presentation<br/>[FeedStyles.js]"]
  node_search["Search and Trends<br/>[SearchScreen.js]"]
  node_tagposts["Tagged Posts<br/>[SearchSnsScreen.js]"]
  node_publish["Post Creation<br/>[AddPostScreen.js]"]
end

subgraph group_profile["Personal Space"]
  node_profile["Profile Home<br/>[ProfileScreen.js]"]
  node_profilestack["Profile Sections"]
  node_editprofile["Profile Editing<br/>[EditProfile.js]"]
  node_miniroom["Miniroom<br/>[Miniroom.js]"]
  node_store["Item Store<br/>[Store.js]"]
end

subgraph group_chat["Messaging"]
  node_chatnav["Chat Navigation<br/>[ChatNavigator.js]"]
  node_chatscreen["Chat Screen<br/>[ChatScreen.js]"]
  node_presents["Gift Sending<br/>[PresentScreen.js]"]
end

subgraph group_shared["Shared Services"]
  node_auth["Auth Provider<br/>[AuthProvider.js]"]
  node_firebaseauth{{"Firebase Auth"}}
  node_firestore[("Cloud Firestore")]
  node_zustand["UI State<br/>[store.js]"]
  node_redux["Redux State<br/>[reducer.ts]"]
  node_counter["Counter Slice<br/>[counter.js]"]
  node_userstate["User Slice<br/>[user.ts]"]
  node_loading["Loading View<br/>[Loading.js]"]
  node_theme["Chat Theme<br/>[ChatTheme.js]"]
  node_songs["Song Catalog<br/>[songdata.js]"]
end

node_user(("User"))

node_user -->|"opens app"| node_routes
node_routes -->|"reads session"| node_auth
node_routes -->|"routes signed out"| node_authnav
node_routes -->|"routes signed in"| node_appstack
node_authnav -.->|"hosts sign-in"| node_auth
node_auth -->|"signs in"| node_firebaseauth
node_auth -->|"loads user data"| node_firestore
node_appstack -->|"routes to feed"| node_feed
node_appstack -->|"routes to search"| node_search
node_appstack -->|"routes to profile"| node_profile
node_appstack -->|"routes to profile sections"| node_profilestack
node_appstack -->|"routes to editing"| node_editprofile
node_appstack -->|"routes to chat"| node_chatscreen
node_appstack -->|"routes to gifts"| node_presents
node_feed -->|"renders posts"| node_postcard
node_postcard -->|"reads post data"| node_firestore
node_search -->|"queries posts"| node_firestore
node_search -->|"opens tagged posts"| node_tagposts
node_tagposts -->|"renders results"| node_postcard
node_profilestack -->|"navigates to"| node_editprofile
node_profile -->|"reads profile"| node_firestore
node_editprofile -->|"uses account context"| node_auth
node_editprofile -->|"uses shared state"| node_zustand
node_profile -->|"uses shared state"| node_zustand
node_miniroom -.->|"uses room state"| node_zustand
node_store -.->|"equips room items"| node_miniroom
node_chatscreen -->|"uses account context"| node_auth
node_chatnav -->|"routes to gifts"| node_presents
node_presents -->|"uses account context"| node_auth
node_presents -->|"shows while loading"| node_loading
node_redux -->|"combines slice"| node_counter
node_redux -->|"combines slice"| node_userstate
node_zustand -->|"shares room state"| node_miniroom
node_songs -->|"provides song data"| node_profile

click node_routes "https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/Routes.js"
click node_authnav "https://github.com/yyejin00/graduated-project-master/blob/master/src/navigators/AuthStackNavigator.js"
click node_appstack "https://github.com/yyejin00/graduated-project-master/blob/master/src/navigators/AppStack.js"
click node_feed "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/SnsScreen/SnsScreen.js"
click node_postcard "https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/PostCard.js"
click node_poststyles "https://github.com/yyejin00/graduated-project-master/blob/master/styles/FeedStyles.js"
click node_search "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/SearchScreen/SearchScreen.js"
click node_tagposts "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/SearchScreen/SearchSnsScreen.js"
click node_publish "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/SnsScreen/AddPostScreen.js"
click node_profile "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/ProfileScreen.js"
click node_profilestack "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/ProfileStackScreen.js"
click node_editprofile "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/EditProfile.js"
click node_miniroom "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/Miniroom/Miniroom.js"
click node_store "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/StoreScreen/Store.js"
click node_chatnav "https://github.com/yyejin00/graduated-project-master/blob/master/src/Chat/ChatNavigator.js"
click node_chatscreen "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ChatScreen/ChatScreen.js"
click node_presents "https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ChatScreen/PresentScreen.js"
click node_auth "https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/AuthProvider.js"
click node_zustand "https://github.com/yyejin00/graduated-project-master/blob/master/store/store.js"
click node_redux "https://github.com/yyejin00/graduated-project-master/blob/master/store/reducer.ts"
click node_counter "https://github.com/yyejin00/graduated-project-master/blob/master/slices/counter.js"
click node_userstate "https://github.com/yyejin00/graduated-project-master/blob/master/slices/user.ts"
click node_loading "https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/Loading.js"
click node_theme "https://github.com/yyejin00/graduated-project-master/blob/master/src/Chat/ChatTheme.js"
click node_songs "https://github.com/yyejin00/graduated-project-master/blob/master/src/data/songdata.js"

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_routes,node_authnav,node_appstack,node_user toneBlue
class node_feed,node_postcard,node_poststyles,node_search,node_tagposts,node_publish toneAmber
class node_profile,node_profilestack,node_editprofile,node_miniroom,node_store toneMint
class node_chatnav,node_chatscreen,node_presents toneRose
class node_auth,node_firebaseauth,node_firestore,node_zustand,node_redux,node_counter,node_userstate,node_loading,node_theme,node_songs toneIndigo
```

## Components

### App Entry

- [Auth Routing](https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/Routes.js): `src/utils/Routes.js`
- [Sign-in Screens](https://github.com/yyejin00/graduated-project-master/blob/master/src/navigators/AuthStackNavigator.js): `src/navigators/AuthStackNavigator.js`
- [App Navigation](https://github.com/yyejin00/graduated-project-master/blob/master/src/navigators/AppStack.js): `src/navigators/AppStack.js`

### Social Discovery

- [Social Feed](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/SnsScreen/SnsScreen.js): `src/screens/SnsScreen/SnsScreen.js`
- [Post Card](https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/PostCard.js): `src/utils/PostCard.js`
- [Feed Presentation](https://github.com/yyejin00/graduated-project-master/blob/master/styles/FeedStyles.js): `styles/FeedStyles.js`
- [Search and Trends](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/SearchScreen/SearchScreen.js): `src/screens/SearchScreen/SearchScreen.js`
- [Tagged Posts](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/SearchScreen/SearchSnsScreen.js): `src/screens/SearchScreen/SearchSnsScreen.js`
- [Post Creation](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/SnsScreen/AddPostScreen.js): `src/screens/SnsScreen/AddPostScreen.js`

### Personal Space

- [Profile Home](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/ProfileScreen.js): `src/screens/ProfileScreen/ProfileScreen.js`
- [Profile Sections](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/ProfileStackScreen.js): `src/screens/ProfileScreen/ProfileStackScreen.js`
- [Profile Editing](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/EditProfile.js): `src/screens/ProfileScreen/EditProfile.js`
- [Miniroom](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ProfileScreen/Miniroom/Miniroom.js): `src/screens/ProfileScreen/Miniroom/Miniroom.js`
- [Item Store](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/StoreScreen/Store.js): `src/screens/StoreScreen/Store.js`

### Messaging

- [Chat Navigation](https://github.com/yyejin00/graduated-project-master/blob/master/src/Chat/ChatNavigator.js): `src/Chat/ChatNavigator.js`
- [Chat Screen](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ChatScreen/ChatScreen.js): `src/screens/ChatScreen/ChatScreen.js`
- [Gift Sending](https://github.com/yyejin00/graduated-project-master/blob/master/src/screens/ChatScreen/PresentScreen.js): `src/screens/ChatScreen/PresentScreen.js`

### Shared Services

- [Auth Provider](https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/AuthProvider.js): `src/utils/AuthProvider.js`
- **Firebase Auth**
- **Cloud Firestore**
- [UI State](https://github.com/yyejin00/graduated-project-master/blob/master/store/store.js): `store/store.js`
- [Redux State](https://github.com/yyejin00/graduated-project-master/blob/master/store/reducer.ts): `store/reducer.ts`
- [Counter Slice](https://github.com/yyejin00/graduated-project-master/blob/master/slices/counter.js): `slices/counter.js`
- [User Slice](https://github.com/yyejin00/graduated-project-master/blob/master/slices/user.ts): `slices/user.ts`
- [Loading View](https://github.com/yyejin00/graduated-project-master/blob/master/src/utils/Loading.js): `src/utils/Loading.js`
- [Chat Theme](https://github.com/yyejin00/graduated-project-master/blob/master/src/Chat/ChatTheme.js): `src/Chat/ChatTheme.js`
- [Song Catalog](https://github.com/yyejin00/graduated-project-master/blob/master/src/data/songdata.js): `src/data/songdata.js`

### Other components

- **User**

## Connections

- User → Auth Routing: opens app (evidence: `src/utils/Routes.js`)
- Auth Routing → Auth Provider: reads session (evidence: `src/utils/Routes.js`)
- Auth Routing → Sign-in Screens: routes signed out (evidence: `src/utils/Routes.js`)
- Auth Routing → App Navigation: routes signed in (evidence: `src/utils/Routes.js`)
- Sign-in Screens → Auth Provider: hosts sign-in
- Auth Provider → Firebase Auth: signs in (evidence: `src/utils/AuthProvider.js`)
- Auth Provider → Cloud Firestore: loads user data (evidence: `src/utils/AuthProvider.js`)
- App Navigation → Social Feed: routes to feed (evidence: `src/navigators/AppStack.js`)
- App Navigation → Search and Trends: routes to search (evidence: `src/navigators/AppStack.js`)
- App Navigation → Profile Home: routes to profile (evidence: `src/navigators/AppStack.js`)
- App Navigation → Profile Sections: routes to profile sections (evidence: `src/navigators/AppStack.js`)
- App Navigation → Profile Editing: routes to editing (evidence: `src/navigators/AppStack.js`)
- App Navigation → Chat Screen: routes to chat (evidence: `src/navigators/AppStack.js`)
- App Navigation → Gift Sending: routes to gifts (evidence: `src/navigators/AppStack.js`)
- Social Feed → Post Card: renders posts (evidence: `src/screens/SnsScreen/SnsScreen.js`)
- Post Card → Cloud Firestore: reads post data (evidence: `src/utils/PostCard.js`)
- Search and Trends → Cloud Firestore: queries posts (evidence: `src/screens/SearchScreen/SearchScreen.js`)
- Search and Trends → Tagged Posts: opens tagged posts (evidence: `src/screens/SearchScreen/SearchScreen.js`)
- Tagged Posts → Post Card: renders results (evidence: `src/screens/SearchScreen/SearchSnsScreen.js`)
- Profile Sections → Profile Editing: navigates to (evidence: `src/screens/ProfileScreen/ProfileStackScreen.js`)
- Profile Home → Cloud Firestore: reads profile (evidence: `src/screens/ProfileScreen/ProfileScreen.js`)
- Profile Editing → Auth Provider: uses account context (evidence: `src/screens/ProfileScreen/EditProfile.js`)
- Profile Editing → UI State: uses shared state (evidence: `src/screens/ProfileScreen/EditProfile.js`)
- Profile Home → UI State: uses shared state (evidence: `src/screens/ProfileScreen/ProfileScreen.js`)
- Miniroom → UI State: uses room state
- Item Store → Miniroom: equips room items
- Chat Screen → Auth Provider: uses account context (evidence: `src/screens/ChatScreen/ChatScreen.js`)
- Chat Navigation → Gift Sending: routes to gifts (evidence: `src/Chat/ChatNavigator.js`)
- Gift Sending → Auth Provider: uses account context (evidence: `src/screens/ChatScreen/PresentScreen.js`)
- Gift Sending → Loading View: shows while loading (evidence: `src/screens/ChatScreen/PresentScreen.js`)
- Redux State → Counter Slice: combines slice (evidence: `store/reducer.ts`)
- Redux State → User Slice: combines slice (evidence: `store/reducer.ts`)
- UI State → Miniroom: shares room state
- Song Catalog → Profile Home: provides song data (evidence: `src/screens/ProfileScreen/ProfileScreen.js`)
