# hariharan-m-dev/cybershield-mobile architecture

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

- Interactive diagram: https://gitdiagram.com/hariharan-m-dev/cybershield-mobile
- Repository: https://github.com/hariharan-m-dev/cybershield-mobile

## Overview

Cyber Shield is a Flutter mobile app whose source tree indicates a home screen, a URL-scanning feature, and a permission-auditing feature. The likely user workflow starts at the app entry point, then opens either feature and presents scan or audit results. The README is only the default Flutter template, and no Dart source was excerpted, so feature behavior and component wiring are inferred from filenames; dashed, uncited edges mark that uncertainty.

Main entry points: [`lib/screens/home_screen.dart`](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/home_screen.dart) (Home screen), [`lib/main.dart`](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/main.dart) (App entry), [`lib/screens/url_scanner_screen.dart`](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/url_scanner_screen.dart) (URL scanner screen), [`lib/screens/permission_auditor_screen.dart`](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/permission_auditor_screen.dart) (Permission auditor screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_entry["App entry<br/>[main.dart]"]
  node_home["Home screen<br/>[home_screen.dart]"]
end

subgraph group_security["Security features"]
  node_url_screen["URL scanner screen"]
  node_url_service["URL scanner service"]
  node_permission_screen["Permission auditor screen"]
  node_permission_service["Permission auditor service"]
  node_scan_models["Scan models<br/>[scan_models.dart]"]
end

subgraph group_shared["Shared presentation"]
  node_common_widgets["Common widgets"]
  node_theme["App theme<br/>[theme.dart]"]
end

node_user(("User"))

node_user -.->|"opens app"| node_entry
node_entry -.->|"shows"| node_home
node_home -.->|"opens scanner"| node_url_screen
node_home -.->|"opens auditor"| node_permission_screen
node_url_screen -.->|"requests scan"| node_url_service
node_permission_screen -.->|"requests audit"| node_permission_service
node_url_service -.->|"uses models"| node_scan_models
node_permission_service -.->|"uses models"| node_scan_models
node_home -.->|"uses widgets"| node_common_widgets
node_url_screen -.->|"uses widgets"| node_common_widgets
node_permission_screen -.->|"uses widgets"| node_common_widgets
node_entry -.->|"applies theme"| node_theme

click node_entry "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/main.dart"
click node_home "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/home_screen.dart"
click node_url_screen "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/url_scanner_screen.dart"
click node_url_service "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/services/url_scanner_service.dart"
click node_permission_screen "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/permission_auditor_screen.dart"
click node_permission_service "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/services/permission_auditor_service.dart"
click node_scan_models "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/models/scan_models.dart"
click node_common_widgets "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/widgets/common_widgets.dart"
click node_theme "https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/theme.dart"

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_home,node_user toneBlue
class node_url_screen,node_url_service,node_permission_screen,node_permission_service,node_scan_models toneAmber
class node_common_widgets,node_theme toneMint
```

## Components

### App and navigation

- [App entry](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/main.dart): `lib/main.dart`
- [Home screen](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`

### Security features

- [URL scanner screen](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/url_scanner_screen.dart): `lib/screens/url_scanner_screen.dart`
- [URL scanner service](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/services/url_scanner_service.dart): `lib/services/url_scanner_service.dart`
- [Permission auditor screen](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/screens/permission_auditor_screen.dart): `lib/screens/permission_auditor_screen.dart`
- [Permission auditor service](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/services/permission_auditor_service.dart): `lib/services/permission_auditor_service.dart`
- [Scan models](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/models/scan_models.dart): `lib/models/scan_models.dart`

### Shared presentation

- [Common widgets](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/widgets/common_widgets.dart): `lib/widgets/common_widgets.dart`
- [App theme](https://github.com/hariharan-m-dev/cybershield-mobile/blob/master/lib/theme.dart): `lib/theme.dart`

### Other components

- **User**

## Connections

- User → App entry: opens app
- App entry → Home screen: shows
- Home screen → URL scanner screen: opens scanner
- Home screen → Permission auditor screen: opens auditor
- URL scanner screen → URL scanner service: requests scan
- Permission auditor screen → Permission auditor service: requests audit
- URL scanner service → Scan models: uses models
- Permission auditor service → Scan models: uses models
- Home screen → Common widgets: uses widgets
- URL scanner screen → Common widgets: uses widgets
- Permission auditor screen → Common widgets: uses widgets
- App entry → App theme: applies theme
