# easyhooon/book-search-android architecture

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

- Interactive diagram: https://gitdiagram.com/easyhooon/book-search-android
- Repository: https://github.com/easyhooon/book-search-android

## Overview

This is an Android Kakao book-search app with local favorites. Users search and page through remote results, open a shared detail view, or browse, sort, search, and price-filter saved books; favorite changes are shared across screens through Room. The graph follows the documented Root/Presenter/Screen and data-key boundaries. Some feature and favorite-key implementations were not excerpted, so those documented connections cite the README; unsampled implementation details are not inferred.

Main entry points: [`app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt`](https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt) (App composition), [`feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesPresenter.kt`](https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesPresenter.kt) (Favorites), [`feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailPresenter.kt`](https://github.com/easyhooon/book-search-android/blob/main/feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailPresenter.kt) (Book detail), [`app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt`](https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_activity["App entry<br/>[MainActivity.kt]"]
  node_appgraph["Dependency graph<br/>[AppGraph.kt]"]
  node_bookapp["App composition<br/>[BookSearchApp.kt]"]
  node_nav["Tab navigation"]
  node_scene["List-detail layout"]
end

subgraph group_features["Book features"]
  node_search["Book search<br/>[SearchPresenter.kt]"]
  node_searchroot["Search entry"]
  node_searchui["Search screen<br/>[SearchScreen.kt]"]
  node_favorites["Favorites"]
  node_favoritesroot["Favorites entry"]
  node_favoritesui["Favorites screen<br/>[FavoritesScreen.kt]"]
  node_pricefilter["Price filter"]
  node_detailroot["Detail entry"]
  node_detail["Book detail"]
  node_detailui["Detail screen"]
end

subgraph group_data["Data access"]
  node_searchkey["Search query key"]
  node_service["Kakao service"]
  node_favoritesub["Favorite subscription"]
  node_favoritemut["Favorite mutation"]
  node_dao["Favorite DAO<br/>[FavoriteBookDao.kt]"]
  node_db[("Room favorites")]
end

subgraph group_shared["Shared models and UI"]
  node_book["Book model<br/>[Book.kt]"]
  node_ui["Shared UI<br/>[BookCard.kt]"]
end

node_user(("Reader"))
node_kakao["Kakao Books API"]

node_user -->|"opens"| node_activity
node_activity -->|"gets graph"| node_appgraph
node_activity -->|"hosts"| node_bookapp
node_bookapp -->|"composes"| node_nav
node_bookapp -->|"registers"| node_searchroot
node_bookapp -->|"registers"| node_favoritesroot
node_bookapp -->|"registers"| node_detailroot
node_nav -->|"selects layout"| node_scene
node_searchroot -.->|"creates presenter"| node_search
node_search -.->|"provides state"| node_searchui
node_favoritesroot -.->|"creates presenter"| node_favorites
node_favorites -.->|"provides state"| node_favoritesui
node_favoritesui -->|"shows"| node_pricefilter
node_detailroot -.->|"creates presenter"| node_detail
node_detail -.->|"provides state"| node_detailui
node_search -.->|"queries"| node_searchkey
node_searchkey -->|"calls"| node_service
node_service -.->|"requests books"| node_kakao
node_favorites -.->|"subscribes"| node_favoritesub
node_favorites -.->|"submits commands"| node_favoritemut
node_detail -.->|"observes state"| node_favoritesub
node_detail -.->|"changes favorite"| node_favoritemut
node_favoritesub -.->|"observes Room"| node_dao
node_favoritemut -.->|"writes through"| node_dao
node_db -->|"provides"| node_dao
node_searchui -.->|"renders"| node_ui
node_favoritesui -->|"renders"| node_ui
node_detailui -->|"renders"| node_ui
node_searchkey -->|"returns pages"| node_book

click node_activity "https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt"
click node_appgraph "https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/AppGraph.kt"
click node_bookapp "https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt"
click node_nav "https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/BookSearchNavHost.kt"
click node_scene "https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/ListDetailSceneStrategy.kt"
click node_search "https://github.com/easyhooon/book-search-android/blob/main/feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchPresenter.kt"
click node_searchroot "https://github.com/easyhooon/book-search-android/blob/main/feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchScreenGraph.kt"
click node_searchui "https://github.com/easyhooon/book-search-android/blob/main/feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchScreen.kt"
click node_favorites "https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesPresenter.kt"
click node_favoritesroot "https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreenGraph.kt"
click node_favoritesui "https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreen.kt"
click node_pricefilter "https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/PriceFilterSheet.kt"
click node_detailroot "https://github.com/easyhooon/book-search-android/blob/main/feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreenGraph.kt"
click node_detail "https://github.com/easyhooon/book-search-android/blob/main/feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailPresenter.kt"
click node_detailui "https://github.com/easyhooon/book-search-android/blob/main/feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreen.kt"
click node_searchkey "https://github.com/easyhooon/book-search-android/blob/main/core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/SearchBooksQueryKey.kt"
click node_service "https://github.com/easyhooon/book-search-android/blob/main/core/network/src/main/kotlin/io/github/easyhooon/booksearch/core/network/KakaoBookService.kt"
click node_favoritesub "https://github.com/easyhooon/book-search-android/blob/main/core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/FavoriteSubscriptionKeys.kt"
click node_favoritemut "https://github.com/easyhooon/book-search-android/blob/main/core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/FavoriteMutationKey.kt"
click node_dao "https://github.com/easyhooon/book-search-android/blob/main/core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/FavoriteBookDao.kt"
click node_db "https://github.com/easyhooon/book-search-android/blob/main/core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/BookSearchDatabase.kt"
click node_book "https://github.com/easyhooon/book-search-android/blob/main/core/model/src/main/kotlin/io/github/easyhooon/booksearch/core/model/Book.kt"
click node_ui "https://github.com/easyhooon/book-search-android/blob/main/core/ui/src/main/kotlin/io/github/easyhooon/booksearch/core/ui/component/BookCard.kt"

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_activity,node_appgraph,node_bookapp,node_nav,node_scene toneBlue
class node_search,node_searchroot,node_searchui,node_favorites,node_favoritesroot,node_favoritesui,node_pricefilter,node_detailroot,node_detail,node_detailui toneAmber
class node_searchkey,node_service,node_favoritesub,node_favoritemut,node_dao,node_db,node_kakao toneMint
class node_book,node_ui toneRose
class node_user toneIndigo
```

## Components

### App and navigation

- [App entry](https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt): `app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt`
- [Dependency graph](https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/AppGraph.kt): `app/src/main/kotlin/io/github/easyhooon/booksearch/AppGraph.kt`
- [App composition](https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt): `app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt`
- [Tab navigation](https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/BookSearchNavHost.kt): `app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/BookSearchNavHost.kt`
- [List-detail layout](https://github.com/easyhooon/book-search-android/blob/main/app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/ListDetailSceneStrategy.kt): `app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/ListDetailSceneStrategy.kt`

### Book features

- [Book search](https://github.com/easyhooon/book-search-android/blob/main/feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchPresenter.kt): `feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchPresenter.kt`
- [Search entry](https://github.com/easyhooon/book-search-android/blob/main/feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchScreenGraph.kt): `feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchScreenGraph.kt`
- [Search screen](https://github.com/easyhooon/book-search-android/blob/main/feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchScreen.kt): `feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchScreen.kt`
- [Favorites](https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesPresenter.kt): `feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesPresenter.kt`
- [Favorites entry](https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreenGraph.kt): `feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreenGraph.kt`
- [Favorites screen](https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreen.kt): `feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreen.kt`
- [Price filter](https://github.com/easyhooon/book-search-android/blob/main/feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/PriceFilterSheet.kt): `feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/PriceFilterSheet.kt`
- [Detail entry](https://github.com/easyhooon/book-search-android/blob/main/feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreenGraph.kt): `feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreenGraph.kt`
- [Book detail](https://github.com/easyhooon/book-search-android/blob/main/feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailPresenter.kt): `feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailPresenter.kt`
- [Detail screen](https://github.com/easyhooon/book-search-android/blob/main/feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreen.kt): `feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreen.kt`

### Data access

- [Search query key](https://github.com/easyhooon/book-search-android/blob/main/core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/SearchBooksQueryKey.kt): `core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/SearchBooksQueryKey.kt`
- [Kakao service](https://github.com/easyhooon/book-search-android/blob/main/core/network/src/main/kotlin/io/github/easyhooon/booksearch/core/network/KakaoBookService.kt): `core/network/src/main/kotlin/io/github/easyhooon/booksearch/core/network/KakaoBookService.kt`
- [Favorite subscription](https://github.com/easyhooon/book-search-android/blob/main/core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/FavoriteSubscriptionKeys.kt): `core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/FavoriteSubscriptionKeys.kt`
- [Favorite mutation](https://github.com/easyhooon/book-search-android/blob/main/core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/FavoriteMutationKey.kt): `core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/FavoriteMutationKey.kt`
- [Favorite DAO](https://github.com/easyhooon/book-search-android/blob/main/core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/FavoriteBookDao.kt): `core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/FavoriteBookDao.kt`
- [Room favorites](https://github.com/easyhooon/book-search-android/blob/main/core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/BookSearchDatabase.kt): `core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/BookSearchDatabase.kt`

### Shared models and UI

- [Book model](https://github.com/easyhooon/book-search-android/blob/main/core/model/src/main/kotlin/io/github/easyhooon/booksearch/core/model/Book.kt): `core/model/src/main/kotlin/io/github/easyhooon/booksearch/core/model/Book.kt`
- [Shared UI](https://github.com/easyhooon/book-search-android/blob/main/core/ui/src/main/kotlin/io/github/easyhooon/booksearch/core/ui/component/BookCard.kt): `core/ui/src/main/kotlin/io/github/easyhooon/booksearch/core/ui/component/BookCard.kt`

### Other components

- **Reader**
- **Kakao Books API**

## Connections

- Reader → App entry: opens (evidence: `app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt`)
- App entry → Dependency graph: gets graph (evidence: `app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt`)
- App entry → App composition: hosts (evidence: `app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt`)
- App composition → Tab navigation: composes (evidence: `app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt`)
- App composition → Search entry: registers (evidence: `app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt`)
- App composition → Favorites entry: registers (evidence: `app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt`)
- App composition → Detail entry: registers (evidence: `app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt`)
- Tab navigation → List-detail layout: selects layout (evidence: `app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/BookSearchNavHost.kt`)
- Search entry → Book search: creates presenter (evidence: `README.md`)
- Book search → Search screen: provides state (evidence: `README.md`)
- Favorites entry → Favorites: creates presenter (evidence: `README.md`)
- Favorites → Favorites screen: provides state (evidence: `README.md`)
- Favorites screen → Price filter: shows (evidence: `feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreen.kt`)
- Detail entry → Book detail: creates presenter (evidence: `README.md`)
- Book detail → Detail screen: provides state (evidence: `README.md`)
- Book search → Search query key: queries (evidence: `README.md`)
- Search query key → Kakao service: calls (evidence: `core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/SearchBooksQueryKey.kt`)
- Kakao service → Kakao Books API: requests books (evidence: `README.md`)
- Favorites → Favorite subscription: subscribes (evidence: `README.md`)
- Favorites → Favorite mutation: submits commands (evidence: `README.md`)
- Book detail → Favorite subscription: observes state (evidence: `README.md`)
- Book detail → Favorite mutation: changes favorite (evidence: `README.md`)
- Favorite subscription → Favorite DAO: observes Room (evidence: `README.md`)
- Favorite mutation → Favorite DAO: writes through (evidence: `README.md`)
- Room favorites → Favorite DAO: provides (evidence: `core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/BookSearchDatabase.kt`)
- Search screen → Shared UI: renders (evidence: `README.md`)
- Favorites screen → Shared UI: renders (evidence: `feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreen.kt`)
- Detail screen → Shared UI: renders (evidence: `feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreen.kt`)
- Search query key → Book model: returns pages (evidence: `core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/SearchBooksQueryKey.kt`)
