# emjaycodes/cluvie_mobile architecture

> Architecture diagram of the GitHub repository emjaycodes/cluvie_mobile, 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/emjaycodes/cluvie_mobile
- Repository: https://github.com/emjaycodes/cluvie_mobile

## Overview

Cluvie is a Flutter client for movie discovery and social viewing, with authentication, clubs, discussions, voting, watch parties, profiles, and notifications represented in its feature tree. The likely user journey is entering the app, exploring movies or communities, then participating in shared activities; shared API/repository modules provide an apparent backend boundary. README documents API base-URL configuration, but the Dart implementation was not sampled, so feature-to-service calls and detailed workflow links cannot be verified. Native host files are platform launch and window scaffolding, not domain logic.

Main entry points: [`lib/main.dart`](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/main.dart) (Flutter entry), [`lib/app.dart`](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/app.dart) (App composition), [`windows/runner/flutter_window.h`](https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/runner/flutter_window.h) (Windows Flutter window), [`windows/runner/main.cpp`](https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/runner/main.cpp) (Windows launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_entry["Flutter entry<br/>[main.dart]"]
  node_app["App composition<br/>[app.dart]"]
  node_routing["App routing<br/>[app_routes.dart]"]
end

subgraph group_features["User features"]
  node_auth["Authentication<br/>[login_screen.dart]"]
  node_discovery["Movie discovery"]
  node_movies["Movie details"]
  node_suggest["Movie suggestions"]
  node_clubs["Clubs and chat"]
  node_discussions["Discussions"]
  node_voting["Movie voting"]
  node_watchparty["Watch parties"]
  node_home["Home feed<br/>[home_screen.dart]"]
  node_profile["User profile"]
  node_notifications["Notifications"]
end

subgraph group_shared["Shared services"]
  node_api["API client<br/>[api_client.dart]"]
  node_tmdb["TMDB API<br/>[tmdb_api.dart]"]
  node_repositories["Domain repositories"]
  node_models["Domain models"]
end

subgraph group_hosts["Platform hosts"]
  node_windows_main["Windows launcher<br/>[main.cpp]"]
  node_windows_flutter["Windows Flutter window<br/>[flutter_window.h]"]
  node_windows_window["Win32 window<br/>[win32_window.h]"]
  node_windows_reg["Windows plugin registry"]
  node_linux_main["Linux launcher<br/>[main.cc]"]
  node_linux_app["Linux application<br/>[my_application.h]"]
  node_linux_reg["Linux plugin registry"]
  node_macos_reg["macOS plugin registry"]
  node_ios_app["iOS app delegate<br/>[AppDelegate.swift]"]
end

node_user(("User"))

node_user -.->|"starts"| node_entry
node_entry -.->|"launches"| node_app
node_windows_main -->|"creates"| node_windows_flutter
node_windows_flutter -->|"extends"| node_windows_window
node_linux_main -->|"creates"| node_linux_app
node_ios_app -.->|"registers plugins"| node_macos_reg
node_app -.->|"uses"| node_api

click node_entry "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/main.dart"
click node_app "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/app.dart"
click node_routing "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/router/app_routes.dart"
click node_auth "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/authentication/presentation/login_screen.dart"
click node_discovery "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/discover/presentation/discover_screen.dart"
click node_movies "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/movies/presentation/movie_details_screen.dart"
click node_suggest "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/suggest/presentation/suggestion_screen.dart"
click node_clubs "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/clubs/presentation/community_list_screen.dart"
click node_discussions "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/movies/presentation/discussion_list_screen.dart"
click node_voting "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/movies/presentation/vote_summary_screen.dart"
click node_watchparty "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/watch_party/presentation/watch_party_list_screen.dart"
click node_home "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/home/presentation/home_screen.dart"
click node_profile "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/user_profile/presentation/profile_screen.dart"
click node_notifications "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/notifications/presentation/notifications_screen.dart"
click node_api "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/core/api/api_client.dart"
click node_tmdb "https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/core/api/tmdb_api.dart"
click node_repositories "https://github.com/emjaycodes/cluvie_mobile/tree/master/lib/core/repository"
click node_models "https://github.com/emjaycodes/cluvie_mobile/tree/master/lib/core/models"
click node_windows_main "https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/runner/main.cpp"
click node_windows_flutter "https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/runner/flutter_window.h"
click node_windows_window "https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/runner/win32_window.h"
click node_windows_reg "https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/flutter/generated_plugin_registrant.h"
click node_linux_main "https://github.com/emjaycodes/cluvie_mobile/blob/master/linux/runner/main.cc"
click node_linux_app "https://github.com/emjaycodes/cluvie_mobile/blob/master/linux/runner/my_application.h"
click node_linux_reg "https://github.com/emjaycodes/cluvie_mobile/blob/master/linux/flutter/generated_plugin_registrant.h"
click node_macos_reg "https://github.com/emjaycodes/cluvie_mobile/blob/master/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_ios_app "https://github.com/emjaycodes/cluvie_mobile/blob/master/ios/Runner/AppDelegate.swift"

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_entry,node_app,node_routing,node_user toneBlue
class node_auth,node_discovery,node_movies,node_suggest,node_clubs,node_discussions,node_voting,node_watchparty,node_home,node_profile,node_notifications toneAmber
class node_api,node_tmdb,node_repositories,node_models toneMint
class node_windows_main,node_windows_flutter,node_windows_window,node_windows_reg,node_linux_main,node_linux_app,node_linux_reg,node_macos_reg,node_ios_app toneRose
```

## Components

### App shell

- [Flutter entry](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/main.dart): `lib/main.dart`
- [App composition](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/app.dart): `lib/app.dart`
- [App routing](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/router/app_routes.dart): `lib/router/app_routes.dart`

### User features

- [Authentication](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/authentication/presentation/login_screen.dart): `lib/features/authentication/presentation/login_screen.dart`
- [Movie discovery](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/discover/presentation/discover_screen.dart): `lib/features/discover/presentation/discover_screen.dart`
- [Movie details](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/movies/presentation/movie_details_screen.dart): `lib/features/movies/presentation/movie_details_screen.dart`
- [Movie suggestions](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/suggest/presentation/suggestion_screen.dart): `lib/features/suggest/presentation/suggestion_screen.dart`
- [Clubs and chat](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/clubs/presentation/community_list_screen.dart): `lib/features/clubs/presentation/community_list_screen.dart`
- [Discussions](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/movies/presentation/discussion_list_screen.dart): `lib/features/movies/presentation/discussion_list_screen.dart`
- [Movie voting](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/movies/presentation/vote_summary_screen.dart): `lib/features/movies/presentation/vote_summary_screen.dart`
- [Watch parties](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/watch_party/presentation/watch_party_list_screen.dart): `lib/features/watch_party/presentation/watch_party_list_screen.dart`
- [Home feed](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/home/presentation/home_screen.dart): `lib/features/home/presentation/home_screen.dart`
- [User profile](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/user_profile/presentation/profile_screen.dart): `lib/features/user_profile/presentation/profile_screen.dart`
- [Notifications](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/features/notifications/presentation/notifications_screen.dart): `lib/features/notifications/presentation/notifications_screen.dart`

### Shared services

- [API client](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/core/api/api_client.dart): `lib/core/api/api_client.dart`
- [TMDB API](https://github.com/emjaycodes/cluvie_mobile/blob/master/lib/core/api/tmdb_api.dart): `lib/core/api/tmdb_api.dart`
- [Domain repositories](https://github.com/emjaycodes/cluvie_mobile/tree/master/lib/core/repository): `lib/core/repository`
- [Domain models](https://github.com/emjaycodes/cluvie_mobile/tree/master/lib/core/models): `lib/core/models`

### Platform hosts

- [Windows launcher](https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Windows Flutter window](https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/runner/win32_window.h): `windows/runner/win32_window.h`
- [Windows plugin registry](https://github.com/emjaycodes/cluvie_mobile/blob/master/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`
- [Linux launcher](https://github.com/emjaycodes/cluvie_mobile/blob/master/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux application](https://github.com/emjaycodes/cluvie_mobile/blob/master/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Linux plugin registry](https://github.com/emjaycodes/cluvie_mobile/blob/master/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [macOS plugin registry](https://github.com/emjaycodes/cluvie_mobile/blob/master/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`
- [iOS app delegate](https://github.com/emjaycodes/cluvie_mobile/blob/master/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`

### Other components

- **User**

## Connections

- User → Flutter entry: starts
- Flutter entry → App composition: launches
- Windows launcher → Windows Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Windows Flutter window → Win32 window: extends (evidence: `windows/runner/flutter_window.h`)
- Linux launcher → Linux application: creates (evidence: `linux/runner/main.cc`)
- iOS app delegate → macOS plugin registry: registers plugins (evidence: `ios/Runner/AppDelegate.swift`)
- App composition → API client: uses (evidence: `README.md`)
