# axiel7/anihyou-android architecture

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

- Interactive diagram: https://gitdiagram.com/axiel7/anihyou-android
- Repository: https://github.com/axiel7/anihyou-android

## Overview

AniHyou is an unofficial Android AniList client. Users browse and search anime or manga, view community and media details, and manage lists and profile information; the app also checks for notifications in scheduled background work. The repository separates Compose features, domain repositories, GraphQL-facing APIs, and local persistence. Sampled sources support selected navigation, search, notification, and database relationships, but do not expose the complete screen-to-repository wiring, so those connections are omitted rather than inferred.

Main entry points: [`core/network/src/main/java/com/axiel7/anihyou/core/network/api`](https://github.com/axiel7/anihyou-android/tree/master/core/network/src/main/java/com/axiel7/anihyou/core/network/api) (GraphQL APIs), [`feature/worker/src/main/java/com/axiel7/anihyou/feature/worker/NotificationWorker.kt`](https://github.com/axiel7/anihyou-android/blob/master/feature/worker/src/main/java/com/axiel7/anihyou/feature/worker/NotificationWorker.kt) (Notification worker), [`core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/NavActionManager.kt`](https://github.com/axiel7/anihyou-android/blob/master/core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/NavActionManager.kt) (Navigation actions), [`feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreView.kt`](https://github.com/axiel7/anihyou-android/blob/master/feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreView.kt) (Anime discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Android app"]
  node_app_entry["App entry<br/>[App.kt]"]
  node_navigation["Navigation actions"]
  node_routes["App routes<br/>[Route.kt]"]
end

subgraph group_features["User features"]
  node_anime_explore["Anime discovery"]
  node_explore_vm["Explore state"]
  node_media_details["Media details"]
  node_user_list["User media lists"]
  node_profile["Profile<br/>[ProfileView.kt]"]
  node_calendar["Airing calendar<br/>[CalendarView.kt]"]
  node_community["Community content"]
  node_notifications["Notification worker"]
end

subgraph group_domain["Domain and network"]
  node_search["Search repository"]
  node_media_repo["Media repository<br/>[MediaRepository.kt]"]
  node_user_repo["User repository<br/>[UserRepository.kt]"]
  node_review_repo["Review repository"]
  node_network_api["GraphQL APIs"]
end

subgraph group_storage["Local state"]
  node_preferences["App preferences"]
  node_database[("Room database<br/>[AnihyouDatabase.kt]")]
  node_database_access["Local DAOs"]
end

node_user(("App user"))
node_anilist{{"AniList service"}}

node_user -.->|"uses"| node_app_entry
node_anime_explore -->|"observes state"| node_explore_vm
node_navigation -->|"creates routes"| node_routes
node_search -->|"calls APIs"| node_network_api
node_network_api -.->|"queries"| node_anilist
node_review_repo -->|"calls ReviewApi"| node_network_api
node_notifications -->|"reads settings"| node_preferences
node_notifications -->|"reads user data"| node_user_repo
node_notifications -.->|"checks notifications"| node_network_api
node_database -->|"provides DAOs"| node_database_access

click node_app_entry "https://github.com/axiel7/anihyou-android/blob/master/app/src/main/java/com/axiel7/anihyou/App.kt"
click node_navigation "https://github.com/axiel7/anihyou-android/blob/master/core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/NavActionManager.kt"
click node_routes "https://github.com/axiel7/anihyou-android/blob/master/core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/Route.kt"
click node_anime_explore "https://github.com/axiel7/anihyou-android/blob/master/feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreView.kt"
click node_explore_vm "https://github.com/axiel7/anihyou-android/blob/master/feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreViewModel.kt"
click node_media_details "https://github.com/axiel7/anihyou-android/blob/master/feature/mediadetails/src/main/java/com/axiel7/anihyou/feature/mediadetails/MediaDetailsView.kt"
click node_user_list "https://github.com/axiel7/anihyou-android/tree/master/feature/usermedialist"
click node_profile "https://github.com/axiel7/anihyou-android/blob/master/feature/profile/src/main/java/com/axiel7/anihyou/feature/profile/ProfileView.kt"
click node_calendar "https://github.com/axiel7/anihyou-android/blob/master/feature/calendar/src/main/java/com/axiel7/anihyou/feature/calendar/CalendarView.kt"
click node_community "https://github.com/axiel7/anihyou-android/blob/master/feature/activitydetails/src/main/java/com/axiel7/anihyou/feature/activitydetails/ActivityDetailsView.kt"
click node_notifications "https://github.com/axiel7/anihyou-android/blob/master/feature/worker/src/main/java/com/axiel7/anihyou/feature/worker/NotificationWorker.kt"
click node_search "https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/SearchRepository.kt"
click node_media_repo "https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/MediaRepository.kt"
click node_user_repo "https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/UserRepository.kt"
click node_review_repo "https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/ReviewRepository.kt"
click node_network_api "https://github.com/axiel7/anihyou-android/tree/master/core/network/src/main/java/com/axiel7/anihyou/core/network/api"
click node_preferences "https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/DefaultPreferencesRepository.kt"
click node_database "https://github.com/axiel7/anihyou-android/blob/master/core/database/src/main/java/com/axiel7/anihyou/core/database/AnihyouDatabase.kt"
click node_database_access "https://github.com/axiel7/anihyou-android/tree/master/core/database/src/main/java/com/axiel7/anihyou/core/database"

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_entry,node_navigation,node_routes,node_user toneBlue
class node_anime_explore,node_explore_vm,node_media_details,node_user_list,node_profile,node_calendar,node_community,node_notifications toneAmber
class node_search,node_media_repo,node_user_repo,node_review_repo,node_network_api toneMint
class node_preferences,node_database,node_database_access toneRose
class node_anilist toneIndigo
```

## Components

### Android app

- [App entry](https://github.com/axiel7/anihyou-android/blob/master/app/src/main/java/com/axiel7/anihyou/App.kt): `app/src/main/java/com/axiel7/anihyou/App.kt`
- [Navigation actions](https://github.com/axiel7/anihyou-android/blob/master/core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/NavActionManager.kt): `core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/NavActionManager.kt`
- [App routes](https://github.com/axiel7/anihyou-android/blob/master/core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/Route.kt): `core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/Route.kt`

### User features

- [Anime discovery](https://github.com/axiel7/anihyou-android/blob/master/feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreView.kt): `feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreView.kt`
- [Explore state](https://github.com/axiel7/anihyou-android/blob/master/feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreViewModel.kt): `feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreViewModel.kt`
- [Media details](https://github.com/axiel7/anihyou-android/blob/master/feature/mediadetails/src/main/java/com/axiel7/anihyou/feature/mediadetails/MediaDetailsView.kt): `feature/mediadetails/src/main/java/com/axiel7/anihyou/feature/mediadetails/MediaDetailsView.kt`
- [User media lists](https://github.com/axiel7/anihyou-android/tree/master/feature/usermedialist): `feature/usermedialist`
- [Profile](https://github.com/axiel7/anihyou-android/blob/master/feature/profile/src/main/java/com/axiel7/anihyou/feature/profile/ProfileView.kt): `feature/profile/src/main/java/com/axiel7/anihyou/feature/profile/ProfileView.kt`
- [Airing calendar](https://github.com/axiel7/anihyou-android/blob/master/feature/calendar/src/main/java/com/axiel7/anihyou/feature/calendar/CalendarView.kt): `feature/calendar/src/main/java/com/axiel7/anihyou/feature/calendar/CalendarView.kt`
- [Community content](https://github.com/axiel7/anihyou-android/blob/master/feature/activitydetails/src/main/java/com/axiel7/anihyou/feature/activitydetails/ActivityDetailsView.kt): `feature/activitydetails/src/main/java/com/axiel7/anihyou/feature/activitydetails/ActivityDetailsView.kt`
- [Notification worker](https://github.com/axiel7/anihyou-android/blob/master/feature/worker/src/main/java/com/axiel7/anihyou/feature/worker/NotificationWorker.kt): `feature/worker/src/main/java/com/axiel7/anihyou/feature/worker/NotificationWorker.kt`

### Domain and network

- [Search repository](https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/SearchRepository.kt): `core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/SearchRepository.kt`
- [Media repository](https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/MediaRepository.kt): `core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/MediaRepository.kt`
- [User repository](https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/UserRepository.kt): `core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/UserRepository.kt`
- [Review repository](https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/ReviewRepository.kt): `core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/ReviewRepository.kt`
- [GraphQL APIs](https://github.com/axiel7/anihyou-android/tree/master/core/network/src/main/java/com/axiel7/anihyou/core/network/api): `core/network/src/main/java/com/axiel7/anihyou/core/network/api`

### Local state

- [App preferences](https://github.com/axiel7/anihyou-android/blob/master/core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/DefaultPreferencesRepository.kt): `core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/DefaultPreferencesRepository.kt`
- [Room database](https://github.com/axiel7/anihyou-android/blob/master/core/database/src/main/java/com/axiel7/anihyou/core/database/AnihyouDatabase.kt): `core/database/src/main/java/com/axiel7/anihyou/core/database/AnihyouDatabase.kt`
- [Local DAOs](https://github.com/axiel7/anihyou-android/tree/master/core/database/src/main/java/com/axiel7/anihyou/core/database): `core/database/src/main/java/com/axiel7/anihyou/core/database`

### Other components

- **App user**
- **AniList service**

## Connections

- App user → App entry: uses
- Anime discovery → Explore state: observes state (evidence: `feature/explore/src/main/java/com/axiel7/anihyou/feature/explore/anime/AnimeExploreView.kt`)
- Navigation actions → App routes: creates routes (evidence: `core/ui/src/main/java/com/axiel7/anihyou/core/ui/common/navigation/NavActionManager.kt`)
- Search repository → GraphQL APIs: calls APIs (evidence: `core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/SearchRepository.kt`)
- GraphQL APIs → AniList service: queries
- Review repository → GraphQL APIs: calls ReviewApi (evidence: `core/domain/src/main/java/com/axiel7/anihyou/core/domain/repository/ReviewRepository.kt`)
- Notification worker → App preferences: reads settings (evidence: `feature/worker/src/main/java/com/axiel7/anihyou/feature/worker/NotificationWorker.kt`)
- Notification worker → User repository: reads user data (evidence: `feature/worker/src/main/java/com/axiel7/anihyou/feature/worker/NotificationWorker.kt`)
- Notification worker → GraphQL APIs: checks notifications
- Room database → Local DAOs: provides DAOs (evidence: `core/database/src/main/java/com/axiel7/anihyou/core/database/AnihyouDatabase.kt`)
