# sreyleak-deth/soulnote architecture

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

- Interactive diagram: https://gitdiagram.com/sreyleak-deth/soulnote
- Repository: https://github.com/sreyleak-deth/soulnote

## Overview

This is a Flutter diary/journal app. The tree shows startup, sign-in/sign-up, journal creation and browsing, mood tracking, sharing, and profile screens, but the README describes only a generic starter project and no Dart source was excerpted. The graph therefore reflects the product areas indicated by the tree; dashed, uncited links are unverified, not asserted runtime calls.

Main entry points: [`lib/views/tab_bar_wrapper/tab_bar_wrapper_view.dart`](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/tab_bar_wrapper/tab_bar_wrapper_view.dart) (Tab navigation), [`lib/views/signin/signin_controller.dart`](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/signin/signin_controller.dart) (Sign in), [`lib/views/home/home_controller.dart`](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/home/home_controller.dart) (Journal list), [`lib/views/splash/splash_coontroller.dart`](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/splash/splash_coontroller.dart) (Startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry and navigation"]
  node_startup["Startup"]
  node_navigation["App navigation"]
  node_tabs["Tab navigation"]
end

subgraph group_identity["Account access"]
  node_signin["Sign in"]
  node_signup["Sign up"]
end

subgraph group_journal["Journal writing"]
  node_home["Journal list"]
  node_details["Journal detail"]
  node_create["Journal creation"]
  node_note_model["Journal model<br/>[note_model.dart]"]
end

subgraph group_insights["Mood and profile"]
  node_mood["Mood tracking"]
  node_profile["Profile"]
  node_sharing["Journal sharing"]
end

subgraph group_shared["Shared services"]
  node_api_config["API configuration"]
  node_local_data["Local data helper"]
  node_login_model["Login response"]
end

node_user(("User"))

node_user -.->|"opens app"| node_startup
node_startup -.->|"enters routes"| node_navigation
node_user -.->|"signs in"| node_signin
node_user -.->|"registers"| node_signup
node_user -.->|"uses app"| node_tabs
node_tabs -.->|"opens journal"| node_home
node_home -.->|"opens entry"| node_details
node_user -.->|"writes entry"| node_create
node_create -.->|"creates model"| node_note_model
node_home -.->|"uses model"| node_note_model
node_tabs -.->|"opens moods"| node_mood
node_tabs -.->|"opens profile"| node_profile
node_user -.->|"shares entry"| node_sharing
node_signin -.->|"uses response"| node_login_model
node_signin -.->|"uses API config"| node_api_config
node_signup -.->|"uses API config"| node_api_config
node_signin -.->|"uses local data"| node_local_data

click node_startup "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/splash/splash_coontroller.dart"
click node_navigation "https://github.com/sreyleak-deth/soulnote/tree/main/lib/core/routes"
click node_tabs "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/tab_bar_wrapper/tab_bar_wrapper_view.dart"
click node_signin "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/signin/signin_controller.dart"
click node_signup "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/signup/signup_controller.dart"
click node_home "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/home/home_controller.dart"
click node_details "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/home/details_screen/details_controller.dart"
click node_create "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/create/create_controller.dart"
click node_note_model "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/home/note_model/note_model.dart"
click node_mood "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/mood/mood_controller.dart"
click node_profile "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/profile/profile_controller.dart"
click node_sharing "https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/share/share_controller.dart"
click node_api_config "https://github.com/sreyleak-deth/soulnote/tree/main/lib/core/api/constants"
click node_local_data "https://github.com/sreyleak-deth/soulnote/blob/main/lib/core/api/utils/save_local_data.dart"
click node_login_model "https://github.com/sreyleak-deth/soulnote/blob/main/lib/core/model/login_response.dart"

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_startup,node_navigation,node_tabs,node_user toneBlue
class node_signin,node_signup toneAmber
class node_home,node_details,node_create,node_note_model toneMint
class node_mood,node_profile,node_sharing toneRose
class node_api_config,node_local_data,node_login_model toneIndigo
```

## Components

### App entry and navigation

- [Startup](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/splash/splash_coontroller.dart): `lib/views/splash/splash_coontroller.dart`
- [App navigation](https://github.com/sreyleak-deth/soulnote/tree/main/lib/core/routes): `lib/core/routes`
- [Tab navigation](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/tab_bar_wrapper/tab_bar_wrapper_view.dart): `lib/views/tab_bar_wrapper/tab_bar_wrapper_view.dart`

### Account access

- [Sign in](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/signin/signin_controller.dart): `lib/views/signin/signin_controller.dart`
- [Sign up](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/signup/signup_controller.dart): `lib/views/signup/signup_controller.dart`

### Journal writing

- [Journal list](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/home/home_controller.dart): `lib/views/home/home_controller.dart`
- [Journal detail](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/home/details_screen/details_controller.dart): `lib/views/home/details_screen/details_controller.dart`
- [Journal creation](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/create/create_controller.dart): `lib/views/create/create_controller.dart`
- [Journal model](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/home/note_model/note_model.dart): `lib/views/home/note_model/note_model.dart`

### Mood and profile

- [Mood tracking](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/mood/mood_controller.dart): `lib/views/mood/mood_controller.dart`
- [Profile](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/profile/profile_controller.dart): `lib/views/profile/profile_controller.dart`
- [Journal sharing](https://github.com/sreyleak-deth/soulnote/blob/main/lib/views/share/share_controller.dart): `lib/views/share/share_controller.dart`

### Shared services

- [API configuration](https://github.com/sreyleak-deth/soulnote/tree/main/lib/core/api/constants): `lib/core/api/constants`
- [Local data helper](https://github.com/sreyleak-deth/soulnote/blob/main/lib/core/api/utils/save_local_data.dart): `lib/core/api/utils/save_local_data.dart`
- [Login response](https://github.com/sreyleak-deth/soulnote/blob/main/lib/core/model/login_response.dart): `lib/core/model/login_response.dart`

### Other components

- **User**

## Connections

- User → Startup: opens app
- Startup → App navigation: enters routes
- User → Sign in: signs in
- User → Sign up: registers
- User → Tab navigation: uses app
- Tab navigation → Journal list: opens journal
- Journal list → Journal detail: opens entry
- User → Journal creation: writes entry
- Journal creation → Journal model: creates model
- Journal list → Journal model: uses model
- Tab navigation → Mood tracking: opens moods
- Tab navigation → Profile: opens profile
- User → Journal sharing: shares entry
- Sign in → Login response: uses response
- Sign in → API configuration: uses API config
- Sign up → API configuration: uses API config
- Sign in → Local data helper: uses local data
