# zerabyte88/gitpulse architecture

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

- Interactive diagram: https://gitdiagram.com/zerabyte88/gitpulse
- Repository: https://github.com/zerabyte88/gitpulse

## Overview

GitPulse is a Flutter Android app for exploring GitHub profiles, contribution activity, repositories, and curated tech news. Its main user workflow is to open a profile, inspect contribution and language analytics, then browse repositories and their files. Other documented capabilities include saved profiles, theme and language customization, and in-app updates. The tree identifies the relevant implementation areas, but no Dart source was excerpted, so the graph shows documented feature-level relationships rather than verified internal calls.

Main entry points: [`lib/screens/home_screen.dart`](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/home_screen.dart) (Home dashboard), [`lib/services/github_api_service.dart`](https://github.com/zerabyte88/gitpulse/blob/master/lib/services/github_api_service.dart) (GitHub API access), [`lib/screens/stats_detail_screen.dart`](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/stats_detail_screen.dart) (Profile statistics), [`lib/screens/repo_detail_screen.dart`](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/repo_detail_screen.dart) (Repository explorer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and screens"]
  node_application["GitPulse app<br/>[main.dart]"]
  node_home["Home dashboard<br/>[home_screen.dart]"]
  node_favorites["Favorite profiles"]
end

subgraph group_github["GitHub insights"]
  node_profile_stats["Profile statistics"]
  node_repo_explorer["Repository explorer"]
  node_file_viewer["Code and README viewer"]
  node_github_api["GitHub API access"]
  node_github_models["GitHub data models"]
  node_contribution_stats["Contribution analytics"]
  node_user_stats["User statistics<br/>[user_stats.dart]"]
  node_repo_data["Repository and file data<br/>[github_repo.dart]"]
end

subgraph group_content["Feeds and updates"]
  node_news_screen["Tech news feed<br/>[home_screen.dart]"]
  node_news_service["News retrieval"]
  node_news_model["News data<br/>[tech_news.dart]"]
  node_update_service["Release updates"]
end

subgraph group_preferences["Preferences and presentation"]
  node_storage_service["Local preferences and cache"]
  node_shared_prefs[("On-device key-value store")]
  node_settings["Settings screen"]
  node_theme_service["Theme preferences"]
  node_language_service["Language preferences"]
  node_localizations["Interface translations"]
  node_themes["Theme definitions<br/>[app_theme.dart]"]
end

node_user(("Mobile user"))
node_github{{"GitHub"}}
node_devto{{"Dev.to"}}

node_user -->|"opens"| node_application
node_application -->|"presents dashboard"| node_home
node_home -->|"shows analytics"| node_profile_stats
node_profile_stats -->|"retrieves profile data"| node_github_api
node_github_api -->|"requests data"| node_github
node_profile_stats -->|"summarizes activity"| node_contribution_stats
node_profile_stats -->|"displays statistics"| node_user_stats
node_home -->|"opens repositories"| node_repo_explorer
node_repo_explorer -->|"browses repository data"| node_github_api
node_repo_explorer -->|"opens files"| node_file_viewer
node_repo_explorer -->|"displays repository data"| node_repo_data
node_home -->|"opens saved profiles"| node_favorites
node_home -->|"shows curated news"| node_news_screen
node_news_screen -->|"loads feed"| node_news_service
node_news_service -->|"retrieves trending repositories"| node_github
node_news_service -->|"retrieves articles"| node_devto
node_news_service -->|"provides feed items"| node_news_model
node_settings -->|"persists preferences"| node_storage_service
node_storage_service -->|"reads and writes"| node_shared_prefs
node_github_api -->|"uses local cache"| node_storage_service
node_github_api -->|"sends conditional requests"| node_github
node_settings -->|"customizes appearance"| node_theme_service
node_theme_service -->|"selects theme"| node_themes
node_settings -->|"selects language"| node_language_service
node_language_service -->|"sets interface language"| node_localizations
node_user -->|"checks for updates"| node_update_service
node_update_service -->|"downloads releases"| node_github

click node_application "https://github.com/zerabyte88/gitpulse/blob/master/lib/main.dart"
click node_home "https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/home_screen.dart"
click node_profile_stats "https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/stats_detail_screen.dart"
click node_repo_explorer "https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/repo_detail_screen.dart"
click node_file_viewer "https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/file_viewer_screen.dart"
click node_favorites "https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/favorite_profiles_screen.dart"
click node_github_api "https://github.com/zerabyte88/gitpulse/blob/master/lib/services/github_api_service.dart"
click node_github_models "https://github.com/zerabyte88/gitpulse/tree/master/lib/models"
click node_contribution_stats "https://github.com/zerabyte88/gitpulse/blob/master/lib/models/contribution_stats.dart"
click node_user_stats "https://github.com/zerabyte88/gitpulse/blob/master/lib/models/user_stats.dart"
click node_repo_data "https://github.com/zerabyte88/gitpulse/blob/master/lib/models/github_repo.dart"
click node_news_screen "https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/home_screen.dart"
click node_news_service "https://github.com/zerabyte88/gitpulse/blob/master/lib/services/tech_news_service.dart"
click node_news_model "https://github.com/zerabyte88/gitpulse/blob/master/lib/models/tech_news.dart"
click node_update_service "https://github.com/zerabyte88/gitpulse/blob/master/lib/services/update_service.dart"
click node_storage_service "https://github.com/zerabyte88/gitpulse/blob/master/lib/services/storage_service.dart"
click node_settings "https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/settings_screen.dart"
click node_theme_service "https://github.com/zerabyte88/gitpulse/blob/master/lib/services/app_theme_service.dart"
click node_language_service "https://github.com/zerabyte88/gitpulse/blob/master/lib/services/app_language_service.dart"
click node_localizations "https://github.com/zerabyte88/gitpulse/blob/master/lib/localization/app_localizations.dart"
click node_themes "https://github.com/zerabyte88/gitpulse/blob/master/lib/theme/app_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_application,node_home,node_favorites,node_user toneBlue
class node_profile_stats,node_repo_explorer,node_file_viewer,node_github_api,node_github_models,node_contribution_stats,node_user_stats,node_repo_data toneAmber
class node_news_screen,node_news_service,node_news_model,node_update_service toneMint
class node_storage_service,node_shared_prefs,node_settings,node_theme_service,node_language_service,node_localizations,node_themes toneRose
class node_github,node_devto toneIndigo
```

## Components

### App and screens

- [GitPulse app](https://github.com/zerabyte88/gitpulse/blob/master/lib/main.dart): `lib/main.dart`
- [Home dashboard](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Favorite profiles](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/favorite_profiles_screen.dart): `lib/screens/favorite_profiles_screen.dart`

### GitHub insights

- [Profile statistics](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/stats_detail_screen.dart): `lib/screens/stats_detail_screen.dart`
- [Repository explorer](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/repo_detail_screen.dart): `lib/screens/repo_detail_screen.dart`
- [Code and README viewer](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/file_viewer_screen.dart): `lib/screens/file_viewer_screen.dart`
- [GitHub API access](https://github.com/zerabyte88/gitpulse/blob/master/lib/services/github_api_service.dart): `lib/services/github_api_service.dart`
- [GitHub data models](https://github.com/zerabyte88/gitpulse/tree/master/lib/models): `lib/models`
- [Contribution analytics](https://github.com/zerabyte88/gitpulse/blob/master/lib/models/contribution_stats.dart): `lib/models/contribution_stats.dart`
- [User statistics](https://github.com/zerabyte88/gitpulse/blob/master/lib/models/user_stats.dart): `lib/models/user_stats.dart`
- [Repository and file data](https://github.com/zerabyte88/gitpulse/blob/master/lib/models/github_repo.dart): `lib/models/github_repo.dart`

### Feeds and updates

- [Tech news feed](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [News retrieval](https://github.com/zerabyte88/gitpulse/blob/master/lib/services/tech_news_service.dart): `lib/services/tech_news_service.dart`
- [News data](https://github.com/zerabyte88/gitpulse/blob/master/lib/models/tech_news.dart): `lib/models/tech_news.dart`
- [Release updates](https://github.com/zerabyte88/gitpulse/blob/master/lib/services/update_service.dart): `lib/services/update_service.dart`

### Preferences and presentation

- [Local preferences and cache](https://github.com/zerabyte88/gitpulse/blob/master/lib/services/storage_service.dart): `lib/services/storage_service.dart`
- **On-device key-value store**
- [Settings screen](https://github.com/zerabyte88/gitpulse/blob/master/lib/screens/settings_screen.dart): `lib/screens/settings_screen.dart`
- [Theme preferences](https://github.com/zerabyte88/gitpulse/blob/master/lib/services/app_theme_service.dart): `lib/services/app_theme_service.dart`
- [Language preferences](https://github.com/zerabyte88/gitpulse/blob/master/lib/services/app_language_service.dart): `lib/services/app_language_service.dart`
- [Interface translations](https://github.com/zerabyte88/gitpulse/blob/master/lib/localization/app_localizations.dart): `lib/localization/app_localizations.dart`
- [Theme definitions](https://github.com/zerabyte88/gitpulse/blob/master/lib/theme/app_theme.dart): `lib/theme/app_theme.dart`

### Other components

- **Mobile user**
- **GitHub**
- **Dev.to**

## Connections

- Mobile user → GitPulse app: opens (evidence: `README.md`)
- GitPulse app → Home dashboard: presents dashboard (evidence: `README.md`)
- Home dashboard → Profile statistics: shows analytics (evidence: `README.md`)
- Profile statistics → GitHub API access: retrieves profile data (evidence: `README.md`)
- GitHub API access → GitHub: requests data (evidence: `README.md`)
- Profile statistics → Contribution analytics: summarizes activity (evidence: `README.md`)
- Profile statistics → User statistics: displays statistics (evidence: `README.md`)
- Home dashboard → Repository explorer: opens repositories (evidence: `README.md`)
- Repository explorer → GitHub API access: browses repository data (evidence: `README.md`)
- Repository explorer → Code and README viewer: opens files (evidence: `README.md`)
- Repository explorer → Repository and file data: displays repository data (evidence: `README.md`)
- Home dashboard → Favorite profiles: opens saved profiles (evidence: `README.md`)
- Home dashboard → Tech news feed: shows curated news (evidence: `README.md`)
- Tech news feed → News retrieval: loads feed (evidence: `README.md`)
- News retrieval → GitHub: retrieves trending repositories (evidence: `README.md`)
- News retrieval → Dev.to: retrieves articles (evidence: `README.md`)
- News retrieval → News data: provides feed items (evidence: `README.md`)
- Settings screen → Local preferences and cache: persists preferences (evidence: `README.md`)
- Local preferences and cache → On-device key-value store: reads and writes (evidence: `README.md`)
- GitHub API access → Local preferences and cache: uses local cache (evidence: `README.md`)
- GitHub API access → GitHub: sends conditional requests (evidence: `README.md`)
- Settings screen → Theme preferences: customizes appearance (evidence: `README.md`)
- Theme preferences → Theme definitions: selects theme (evidence: `README.md`)
- Settings screen → Language preferences: selects language (evidence: `README.md`)
- Language preferences → Interface translations: sets interface language (evidence: `README.md`)
- Mobile user → Release updates: checks for updates (evidence: `README.md`)
- Release updates → GitHub: downloads releases (evidence: `README.md`)
