# khoadng/boorusama architecture

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

- Interactive diagram: https://gitdiagram.com/khoadng/boorusama
- Repository: https://github.com/khoadng/boorusama
- Video tour (about a minute): https://gitdiagram.com/khoadng/boorusama/video

## Overview

Boorusama is a cross-platform Flutter client for browsing and managing content from multiple booru imageboards. The main user workflow is to choose a board, browse or search posts, open a post, then save, favorite, or otherwise act on it. The README also documents bulk downloads, advanced blacklisting, and favorite tags; the tree shows additional configuration, backup, and community features. The Flutter feature directories and platform launchers are visible, but their Dart implementations were not sampled, so internal call wiring is intentionally limited.

Main entry points: [`lib/boorus`](https://github.com/khoadng/boorusama/tree/master/lib/boorus) (Board adapters), [`lib/core/hive`](https://github.com/khoadng/boorusama/tree/master/lib/core/hive) (Local persistence), [`lib/core/home`](https://github.com/khoadng/boorusama/tree/master/lib/core/home) (Home and navigation), [`lib/core/posts/listing`](https://github.com/khoadng/boorusama/tree/master/lib/core/posts/listing) (Post listings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App experience"]
  node_home["Home and navigation"]
end

subgraph group_boards["Imageboard support"]
  node_board_config["Board setup"]
  node_board_adapters["Board adapters"]
end

subgraph group_post["Post workflow"]
  node_search["Post search"]
  node_post_listing["Post listings"]
  node_post_details["Post details"]
  node_media["Media viewing"]
end

subgraph group_personal["Personal tools"]
  node_favorites["Favorites"]
  node_blacklists["Advanced blacklists"]
  node_bulk_downloads["Bulk downloads"]
  node_downloader["Download manager"]
  node_configs["App settings"]
  node_backups["Backups"]
end

subgraph group_platform["Platform services"]
  node_http["HTTP client"]
  node_local_state[("Local persistence")]
  node_native_apps["Platform launchers<br/>[MainActivity.kt]"]
end

node_user(("App user"))
node_board_services{{"Booru services"}}

node_user -->|"opens"| node_home
node_home -->|"selects board"| node_board_config
node_board_config -->|"configures"| node_board_adapters
node_user -->|"searches"| node_search
node_search -->|"requests posts"| node_board_adapters
node_board_adapters -->|"queries"| node_board_services
node_board_adapters -->|"uses network"| node_http
node_board_adapters -->|"provides posts"| node_post_listing
node_user -->|"browses"| node_post_listing
node_post_listing -->|"opens post"| node_post_details
node_post_details -->|"shows media"| node_media
node_user -->|"manages favorites"| node_favorites
node_user -->|"configures filters"| node_blacklists
node_user -->|"queues downloads"| node_bulk_downloads
node_bulk_downloads -->|"schedules"| node_downloader
node_user -->|"manages downloads"| node_downloader
node_user -->|"changes settings"| node_configs
node_user -->|"manages backups"| node_backups
node_favorites -->|"persists data"| node_local_state
node_blacklists -->|"persists rules"| node_local_state
node_configs -->|"persists settings"| node_local_state
node_backups -->|"reads and writes"| node_local_state
node_native_apps -->|"hosts Flutter UI"| node_home

click node_home "https://github.com/khoadng/boorusama/tree/master/lib/core/home"
click node_board_config "https://github.com/khoadng/boorusama/tree/master/lib/core/boorus"
click node_board_adapters "https://github.com/khoadng/boorusama/tree/master/lib/boorus"
click node_search "https://github.com/khoadng/boorusama/tree/master/lib/core/posts/filter"
click node_post_listing "https://github.com/khoadng/boorusama/tree/master/lib/core/posts/listing"
click node_post_details "https://github.com/khoadng/boorusama/tree/master/lib/core/posts/details"
click node_media "https://github.com/khoadng/boorusama/tree/master/lib/core/posts/post"
click node_favorites "https://github.com/khoadng/boorusama/tree/master/lib/core/posts/favorites"
click node_blacklists "https://github.com/khoadng/boorusama/tree/master/lib/core/blacklists"
click node_bulk_downloads "https://github.com/khoadng/boorusama/tree/master/lib/core/bulk_downloads"
click node_downloader "https://github.com/khoadng/boorusama/tree/master/lib/core/downloads/downloader"
click node_configs "https://github.com/khoadng/boorusama/tree/master/lib/core/configs"
click node_backups "https://github.com/khoadng/boorusama/tree/master/lib/core/backups"
click node_http "https://github.com/khoadng/boorusama/tree/master/lib/core/http/client"
click node_local_state "https://github.com/khoadng/boorusama/tree/master/lib/core/hive"
click node_native_apps "https://github.com/khoadng/boorusama/blob/master/android/app/src/main/kotlin/com/degenk/boorusama/MainActivity.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_home,node_user toneBlue
class node_board_config,node_board_adapters toneAmber
class node_search,node_post_listing,node_post_details,node_media toneMint
class node_favorites,node_blacklists,node_bulk_downloads,node_downloader,node_configs,node_backups toneRose
class node_http,node_local_state,node_native_apps,node_board_services toneIndigo
```

## Components

### App experience

- [Home and navigation](https://github.com/khoadng/boorusama/tree/master/lib/core/home): `lib/core/home`

### Imageboard support

- [Board setup](https://github.com/khoadng/boorusama/tree/master/lib/core/boorus): `lib/core/boorus`
- [Board adapters](https://github.com/khoadng/boorusama/tree/master/lib/boorus): `lib/boorus`

### Post workflow

- [Post search](https://github.com/khoadng/boorusama/tree/master/lib/core/posts/filter): `lib/core/posts/filter`
- [Post listings](https://github.com/khoadng/boorusama/tree/master/lib/core/posts/listing): `lib/core/posts/listing`
- [Post details](https://github.com/khoadng/boorusama/tree/master/lib/core/posts/details): `lib/core/posts/details`
- [Media viewing](https://github.com/khoadng/boorusama/tree/master/lib/core/posts/post): `lib/core/posts/post`

### Personal tools

- [Favorites](https://github.com/khoadng/boorusama/tree/master/lib/core/posts/favorites): `lib/core/posts/favorites`
- [Advanced blacklists](https://github.com/khoadng/boorusama/tree/master/lib/core/blacklists): `lib/core/blacklists`
- [Bulk downloads](https://github.com/khoadng/boorusama/tree/master/lib/core/bulk_downloads): `lib/core/bulk_downloads`
- [Download manager](https://github.com/khoadng/boorusama/tree/master/lib/core/downloads/downloader): `lib/core/downloads/downloader`
- [App settings](https://github.com/khoadng/boorusama/tree/master/lib/core/configs): `lib/core/configs`
- [Backups](https://github.com/khoadng/boorusama/tree/master/lib/core/backups): `lib/core/backups`

### Platform services

- [HTTP client](https://github.com/khoadng/boorusama/tree/master/lib/core/http/client): `lib/core/http/client`
- [Local persistence](https://github.com/khoadng/boorusama/tree/master/lib/core/hive): `lib/core/hive`
- [Platform launchers](https://github.com/khoadng/boorusama/blob/master/android/app/src/main/kotlin/com/degenk/boorusama/MainActivity.kt): `android/app/src/main/kotlin/com/degenk/boorusama/MainActivity.kt`

### Other components

- **App user**
- **Booru services**

## Connections

- App user → Home and navigation: opens
- Home and navigation → Board setup: selects board
- Board setup → Board adapters: configures
- App user → Post search: searches
- Post search → Board adapters: requests posts
- Board adapters → Booru services: queries
- Board adapters → HTTP client: uses network
- Board adapters → Post listings: provides posts
- App user → Post listings: browses
- Post listings → Post details: opens post
- Post details → Media viewing: shows media
- App user → Favorites: manages favorites
- App user → Advanced blacklists: configures filters
- App user → Bulk downloads: queues downloads
- Bulk downloads → Download manager: schedules
- App user → Download manager: manages downloads
- App user → App settings: changes settings
- App user → Backups: manages backups
- Favorites → Local persistence: persists data
- Advanced blacklists → Local persistence: persists rules
- App settings → Local persistence: persists settings
- Backups → Local persistence: reads and writes
- Platform launchers → Home and navigation: hosts Flutter UI
