# pradeepsankaran-s/thirukkural architecture

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

- Interactive diagram: https://gitdiagram.com/pradeepsankaran-s/thirukkural
- Repository: https://github.com/pradeepsankaran-s/thirukkural

## Overview

This is a Flutter application organized around Thirukkural content, with modules for browsing its hierarchy, viewing kurals, searching, and favorites. The tree also shows local JSON data, models, a service, repository, and provider. The README gives no product-specific behavior, and no Dart implementation was excerpted, so feature links below are dashed and unverified rather than asserted as observed calls. Platform runner and generated build files are omitted.

Main entry points: [`lib/core/providers/thirukkural_provider.dart`](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/core/providers/thirukkural_provider.dart) (Content provider), [`lib/modules/home/home_page.dart`](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/home/home_page.dart) (Home), [`lib/routes/app_pages.dart`](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/routes/app_pages.dart) (App routes), [`lib/modules/paal/paal_page.dart`](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/paal/paal_page.dart) (Paal browsing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_entry["App entry<br/>[main.dart]"]
  node_routes["App routes<br/>[app_pages.dart]"]
  node_splash["Splash screen<br/>[splash_page.dart]"]
end

subgraph group_browse["Content Browsing"]
  node_home["Home<br/>[home_page.dart]"]
  node_paal["Paal browsing<br/>[paal_page.dart]"]
  node_iyal["Iyal browsing<br/>[iyals_page.dart]"]
  node_athigaram["Athigaram browsing"]
  node_kural["Kural browsing<br/>[kurals_page.dart]"]
  node_detail["Kural details"]
end

subgraph group_support["Discovery &amp; Saved"]
  node_search["Search<br/>[search_page.dart]"]
  node_favorites["Favorites"]
end

subgraph group_data["Content Data"]
  node_provider["Content provider"]
  node_repository["Content repository"]
  node_json["Local JSON service"]
  node_assets["JSON content"]
  node_models["Content models"]
end

node_reader(("Reader"))

node_reader -.->|"opens"| node_entry
node_entry -.->|"configures"| node_routes
node_routes -.->|"routes to"| node_splash
node_routes -.->|"routes to"| node_home
node_home -.->|"opens"| node_paal
node_paal -.->|"opens"| node_iyal
node_iyal -.->|"opens"| node_athigaram
node_athigaram -.->|"opens"| node_kural
node_kural -.->|"opens"| node_detail
node_home -.->|"opens"| node_search
node_home -.->|"opens"| node_favorites
node_home -.->|"requests data"| node_provider
node_paal -.->|"requests data"| node_provider
node_iyal -.->|"requests data"| node_provider
node_athigaram -.->|"requests data"| node_provider
node_kural -.->|"requests data"| node_provider
node_detail -.->|"requests data"| node_provider
node_search -.->|"requests data"| node_provider
node_favorites -.->|"requests data"| node_provider
node_provider -.->|"delegates to"| node_repository
node_repository -.->|"uses"| node_json
node_json -.->|"loads"| node_assets
node_repository -.->|"uses"| node_models

click node_entry "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/main.dart"
click node_routes "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/routes/app_pages.dart"
click node_splash "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/splash/splash_page.dart"
click node_home "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/home/home_page.dart"
click node_paal "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/paal/paal_page.dart"
click node_iyal "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/iyal/iyals_page.dart"
click node_athigaram "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/athigaram/athigarams_page.dart"
click node_kural "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/kural/kurals_page.dart"
click node_detail "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/kural/kural_detail_page.dart"
click node_search "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/search/search_page.dart"
click node_favorites "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/favorites/favorites_page.dart"
click node_provider "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/core/providers/thirukkural_provider.dart"
click node_repository "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/data/repository/thirukkural_repository.dart"
click node_json "https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/data/services/local_json_service.dart"
click node_assets "https://github.com/pradeepsankaran-s/thirukkural/tree/main/assets/json"
click node_models "https://github.com/pradeepsankaran-s/thirukkural/tree/main/lib/data/models"

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_routes,node_splash toneBlue
class node_home,node_paal,node_iyal,node_athigaram,node_kural,node_detail toneAmber
class node_search,node_favorites toneMint
class node_provider,node_repository,node_json,node_assets,node_models toneRose
class node_reader toneIndigo
```

## Components

### Application

- [App entry](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/main.dart): `lib/main.dart`
- [App routes](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/routes/app_pages.dart): `lib/routes/app_pages.dart`
- [Splash screen](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/splash/splash_page.dart): `lib/modules/splash/splash_page.dart`

### Content Browsing

- [Home](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/home/home_page.dart): `lib/modules/home/home_page.dart`
- [Paal browsing](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/paal/paal_page.dart): `lib/modules/paal/paal_page.dart`
- [Iyal browsing](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/iyal/iyals_page.dart): `lib/modules/iyal/iyals_page.dart`
- [Athigaram browsing](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/athigaram/athigarams_page.dart): `lib/modules/athigaram/athigarams_page.dart`
- [Kural browsing](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/kural/kurals_page.dart): `lib/modules/kural/kurals_page.dart`
- [Kural details](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/kural/kural_detail_page.dart): `lib/modules/kural/kural_detail_page.dart`

### Discovery & Saved

- [Search](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/search/search_page.dart): `lib/modules/search/search_page.dart`
- [Favorites](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/modules/favorites/favorites_page.dart): `lib/modules/favorites/favorites_page.dart`

### Content Data

- [Content provider](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/core/providers/thirukkural_provider.dart): `lib/core/providers/thirukkural_provider.dart`
- [Content repository](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/data/repository/thirukkural_repository.dart): `lib/data/repository/thirukkural_repository.dart`
- [Local JSON service](https://github.com/pradeepsankaran-s/thirukkural/blob/main/lib/data/services/local_json_service.dart): `lib/data/services/local_json_service.dart`
- [JSON content](https://github.com/pradeepsankaran-s/thirukkural/tree/main/assets/json): `assets/json`
- [Content models](https://github.com/pradeepsankaran-s/thirukkural/tree/main/lib/data/models): `lib/data/models`

### Other components

- **Reader**

## Connections

- Reader → App entry: opens
- App entry → App routes: configures
- App routes → Splash screen: routes to
- App routes → Home: routes to
- Home → Paal browsing: opens
- Paal browsing → Iyal browsing: opens
- Iyal browsing → Athigaram browsing: opens
- Athigaram browsing → Kural browsing: opens
- Kural browsing → Kural details: opens
- Home → Search: opens
- Home → Favorites: opens
- Home → Content provider: requests data
- Paal browsing → Content provider: requests data
- Iyal browsing → Content provider: requests data
- Athigaram browsing → Content provider: requests data
- Kural browsing → Content provider: requests data
- Kural details → Content provider: requests data
- Search → Content provider: requests data
- Favorites → Content provider: requests data
- Content provider → Content repository: delegates to
- Content repository → Local JSON service: uses
- Local JSON service → JSON content: loads
- Content repository → Content models: uses
