# ruslanburlai/gpsnotebook architecture

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

- Interactive diagram: https://gitdiagram.com/ruslanburlai/gpsnotebook
- Repository: https://github.com/ruslanburlai/gpsnotebook

## Overview

GpsNotebook is a Xamarin.Forms GPS notepad for saving locations and visit reminders. The app initializes theme and authentication, then navigates to sign-in/registration or the map-and-pin workspace. Users can add, search, filter, and manage saved pins; account and pin services persist records through a SQLite repository, with pins scoped to the signed-in user. The tree also documents settings, QR scanning/sharing, and platform renderers. Edges rely on shown code, source-index references, or the README; unsampled UI wiring is not inferred.

Main entry points: [`GpsNotebook/GpsNotebook/App.xaml.cs`](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/App.xaml.cs) (App bootstrap), [`GpsNotebook/GpsNotebook/ViewModel/AddPinViewModel.cs`](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/AddPinViewModel.cs) (Pin creation), [`GpsNotebook/GpsNotebook/Services/AuthorizationService/AuthorizationService.cs`](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/AuthorizationService/AuthorizationService.cs) (Authorization service), [`GpsNotebook/GpsNotebook/Services/PinModelService/PinModelService.cs`](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/PinModelService/PinModelService.cs) (Pin data service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App navigation"]
  node_app["App bootstrap<br/>[App.xaml.cs]"]
  node_auth_views["Sign-in and registration"]
  node_auth_vm["Authentication view models"]
end

subgraph group_location["Location workflow"]
  node_map_view["Map workspace<br/>[MapTabView.xaml.cs]"]
  node_map_vm["Map pin browsing<br/>[MapTabViewModel.cs]"]
  node_add_view["Add pin screen<br/>[AddPinView.xaml.cs]"]
  node_add_vm["Pin creation<br/>[AddPinViewModel.cs]"]
  node_pin_tab["Pin list screen<br/>[PinTabView.xaml.cs]"]
  node_pin_vm["Pin list logic<br/>[PinTabViewModel.cs]"]
  node_pin_model["Saved pin<br/>[PinModel.cs]"]
  node_categories["Pin categories"]
  node_qr_scan["QR scanning"]
  node_qr_share["QR pin sharing"]
end

subgraph group_identity["Identity and settings"]
  node_authorization["Authorization service"]
  node_user_service["User account service"]
  node_user_model["User account<br/>[UserModel.cs]"]
  node_settings["Local settings<br/>[SettingsManager.cs]"]
  node_theme["Theme service<br/>[AppThemeService.cs]"]
end

subgraph group_persistence["Data persistence"]
  node_pin_service["Pin data service<br/>[PinModelService.cs]"]
  node_repository[("SQLite repository")]
end

subgraph group_platform["Platform integration"]
  node_android["Android host<br/>[MainActivity.cs]"]
  node_ios["iOS host<br/>[AppDelegate.cs]"]
end

node_user(("App user"))

node_user -->|"opens"| node_app
node_app -->|"routes unauthenticated"| node_auth_views
node_app -->|"routes authorized"| node_map_view
node_app -->|"registers navigation"| node_auth_vm
node_app -->|"registers navigation"| node_map_vm
node_app -->|"registers navigation"| node_add_vm
node_app -->|"registers navigation"| node_pin_vm
node_app -->|"registers navigation"| node_qr_scan
node_app -->|"sets startup theme"| node_theme
node_auth_vm -.->|"checks identity"| node_authorization
node_map_vm -->|"loads and filters"| node_pin_service
node_add_vm -->|"saves pin"| node_pin_service
node_map_vm -->|"uses pin data"| node_pin_model
node_add_vm -->|"creates pin data"| node_pin_model
node_add_vm -->|"uses categories"| node_categories
node_authorization -->|"checks registration"| node_user_service
node_authorization -->|"reads and sets user"| node_settings
node_user_service -->|"reads and writes users"| node_repository
node_user_service -->|"loads users"| node_user_model
node_pin_service -->|"reads and writes pins"| node_repository
node_pin_service -->|"scopes by user"| node_authorization
node_repository -->|"persists records"| node_pin_model
node_repository -->|"persists records"| node_user_model
node_theme -->|"loads and saves theme"| node_settings
node_user -.->|"scans pin code"| node_qr_scan
node_user -.->|"shares pin"| node_qr_share
node_android -.->|"hosts app"| node_app
node_ios -.->|"hosts app"| node_app

click node_app "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/App.xaml.cs"
click node_auth_views "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/LogInOrRegisterView.xaml.cs"
click node_auth_vm "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/LogInOrRegisteredViewModel.cs"
click node_map_view "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/MapTabView.xaml.cs"
click node_map_vm "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/MapTabViewModel.cs"
click node_add_view "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/AddPinView.xaml.cs"
click node_add_vm "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/AddPinViewModel.cs"
click node_pin_tab "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/PinTabView.xaml.cs"
click node_pin_vm "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/PinTabViewModel.cs"
click node_pin_model "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Models/PinModel.cs"
click node_categories "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Models/CategoriesForPin.cs"
click node_qr_scan "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/ScanningQrCodeView.xaml.cs"
click node_qr_share "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Dialogs/SharePinViaQRDialogViewModel.cs"
click node_authorization "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/AuthorizationService/AuthorizationService.cs"
click node_user_service "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/UserModelService/UserModelService.cs"
click node_user_model "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Models/UserModel.cs"
click node_settings "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/SettingsManager/SettingsManager.cs"
click node_theme "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/AppThemeService/AppThemeService.cs"
click node_pin_service "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/PinModelService/PinModelService.cs"
click node_repository "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/RepositoryService/RepositoryService.cs"
click node_android "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook.Android/MainActivity.cs"
click node_ios "https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook.iOS/AppDelegate.cs"

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_app,node_auth_views,node_auth_vm,node_user toneBlue
class node_map_view,node_map_vm,node_add_view,node_add_vm,node_pin_tab,node_pin_vm,node_pin_model,node_categories,node_qr_scan,node_qr_share toneAmber
class node_authorization,node_user_service,node_user_model,node_settings,node_theme toneMint
class node_pin_service,node_repository toneRose
class node_android,node_ios toneIndigo
```

## Components

### App navigation

- [App bootstrap](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/App.xaml.cs): `GpsNotebook/GpsNotebook/App.xaml.cs`
- [Sign-in and registration](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/LogInOrRegisterView.xaml.cs): `GpsNotebook/GpsNotebook/View/LogInOrRegisterView.xaml.cs`
- [Authentication view models](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/LogInOrRegisteredViewModel.cs): `GpsNotebook/GpsNotebook/ViewModel/LogInOrRegisteredViewModel.cs`

### Location workflow

- [Map workspace](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/MapTabView.xaml.cs): `GpsNotebook/GpsNotebook/View/MapTabView.xaml.cs`
- [Map pin browsing](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/MapTabViewModel.cs): `GpsNotebook/GpsNotebook/ViewModel/MapTabViewModel.cs`
- [Add pin screen](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/AddPinView.xaml.cs): `GpsNotebook/GpsNotebook/View/AddPinView.xaml.cs`
- [Pin creation](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/AddPinViewModel.cs): `GpsNotebook/GpsNotebook/ViewModel/AddPinViewModel.cs`
- [Pin list screen](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/PinTabView.xaml.cs): `GpsNotebook/GpsNotebook/View/PinTabView.xaml.cs`
- [Pin list logic](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/ViewModel/PinTabViewModel.cs): `GpsNotebook/GpsNotebook/ViewModel/PinTabViewModel.cs`
- [Saved pin](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Models/PinModel.cs): `GpsNotebook/GpsNotebook/Models/PinModel.cs`
- [Pin categories](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Models/CategoriesForPin.cs): `GpsNotebook/GpsNotebook/Models/CategoriesForPin.cs`
- [QR scanning](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/View/ScanningQrCodeView.xaml.cs): `GpsNotebook/GpsNotebook/View/ScanningQrCodeView.xaml.cs`
- [QR pin sharing](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Dialogs/SharePinViaQRDialogViewModel.cs): `GpsNotebook/GpsNotebook/Dialogs/SharePinViaQRDialogViewModel.cs`

### Identity and settings

- [Authorization service](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/AuthorizationService/AuthorizationService.cs): `GpsNotebook/GpsNotebook/Services/AuthorizationService/AuthorizationService.cs`
- [User account service](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/UserModelService/UserModelService.cs): `GpsNotebook/GpsNotebook/Services/UserModelService/UserModelService.cs`
- [User account](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Models/UserModel.cs): `GpsNotebook/GpsNotebook/Models/UserModel.cs`
- [Local settings](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/SettingsManager/SettingsManager.cs): `GpsNotebook/GpsNotebook/Services/SettingsManager/SettingsManager.cs`
- [Theme service](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/AppThemeService/AppThemeService.cs): `GpsNotebook/GpsNotebook/Services/AppThemeService/AppThemeService.cs`

### Data persistence

- [Pin data service](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/PinModelService/PinModelService.cs): `GpsNotebook/GpsNotebook/Services/PinModelService/PinModelService.cs`
- [SQLite repository](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook/Services/RepositoryService/RepositoryService.cs): `GpsNotebook/GpsNotebook/Services/RepositoryService/RepositoryService.cs`

### Platform integration

- [Android host](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook.Android/MainActivity.cs): `GpsNotebook/GpsNotebook.Android/MainActivity.cs`
- [iOS host](https://github.com/ruslanburlai/gpsnotebook/blob/main/GpsNotebook/GpsNotebook.iOS/AppDelegate.cs): `GpsNotebook/GpsNotebook.iOS/AppDelegate.cs`

### Other components

- **App user**

## Connections

- App user → App bootstrap: opens (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- App bootstrap → Sign-in and registration: routes unauthenticated (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- App bootstrap → Map workspace: routes authorized (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- App bootstrap → Authentication view models: registers navigation (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- App bootstrap → Map pin browsing: registers navigation (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- App bootstrap → Pin creation: registers navigation (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- App bootstrap → Pin list logic: registers navigation (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- App bootstrap → QR scanning: registers navigation (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- App bootstrap → Theme service: sets startup theme (evidence: `GpsNotebook/GpsNotebook/App.xaml.cs`)
- Authentication view models → Authorization service: checks identity
- Map pin browsing → Pin data service: loads and filters (evidence: `GpsNotebook/GpsNotebook/ViewModel/MapTabViewModel.cs`)
- Pin creation → Pin data service: saves pin (evidence: `GpsNotebook/GpsNotebook/ViewModel/AddPinViewModel.cs`)
- Map pin browsing → Saved pin: uses pin data (evidence: `GpsNotebook/GpsNotebook/ViewModel/MapTabViewModel.cs`)
- Pin creation → Saved pin: creates pin data (evidence: `GpsNotebook/GpsNotebook/ViewModel/AddPinViewModel.cs`)
- Pin creation → Pin categories: uses categories (evidence: `GpsNotebook/GpsNotebook/ViewModel/AddPinViewModel.cs`)
- Authorization service → User account service: checks registration (evidence: `GpsNotebook/GpsNotebook/Services/AuthorizationService/AuthorizationService.cs`)
- Authorization service → Local settings: reads and sets user (evidence: `GpsNotebook/GpsNotebook/Services/AuthorizationService/AuthorizationService.cs`)
- User account service → SQLite repository: reads and writes users (evidence: `GpsNotebook/GpsNotebook/Services/UserModelService/UserModelService.cs`)
- User account service → User account: loads users (evidence: `GpsNotebook/GpsNotebook/Services/UserModelService/UserModelService.cs`)
- Pin data service → SQLite repository: reads and writes pins (evidence: `GpsNotebook/GpsNotebook/Services/PinModelService/PinModelService.cs`)
- Pin data service → Authorization service: scopes by user (evidence: `GpsNotebook/GpsNotebook/Services/PinModelService/PinModelService.cs`)
- SQLite repository → Saved pin: persists records (evidence: `GpsNotebook/GpsNotebook/Services/RepositoryService/RepositoryService.cs`)
- SQLite repository → User account: persists records (evidence: `GpsNotebook/GpsNotebook/Services/RepositoryService/RepositoryService.cs`)
- Theme service → Local settings: loads and saves theme (evidence: `GpsNotebook/GpsNotebook/Services/AppThemeService/AppThemeService.cs`)
- App user → QR scanning: scans pin code
- App user → QR pin sharing: shares pin
- Android host → App bootstrap: hosts app
- iOS host → App bootstrap: hosts app
