# zahid0162/aroundme architecture

> Architecture diagram of the GitHub repository zahid0162/aroundme, 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/zahid0162/aroundme
- Repository: https://github.com/zahid0162/aroundme

## Overview

AroundMe is a nearby-place discovery app, represented by a Kotlin Multiplatform application and a React example. The principal workflow is to explore places around a selected or current location, refine results, open a place’s details, and save places; search, collections, and profile preferences are related capabilities. The Kotlin sources show the explore state and place-data flow, while the React example uses sample data. Some persistence, navigation, and API wiring is not shown in excerpts, so those relationships are omitted or marked unverified.

Main entry points: [`composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt`](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt) (Kotlin app shell), [`composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt`](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt) (Places repository), [`composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreViewModel.kt`](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreViewModel.kt) (Explore state), [`composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/RoomRepositories.kt`](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/RoomRepositories.kt) (Local repositories)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry and navigation"]
  node_kmp_app["Kotlin app shell<br/>[App.kt]"]
  node_navigation["Destinations"]
  node_react_entry["React entry<br/>[main.tsx]"]
  node_react_app["React discovery app<br/>[App.tsx]"]
end

subgraph group_discovery["Explore and search"]
  node_explore_screen["Explore screen<br/>[ExploreScreen.kt]"]
  node_explore_vm["Explore state"]
  node_search_screen["Search screen<br/>[SearchScreen.kt]"]
  node_search_vm["Search state<br/>[SearchViewModel.kt]"]
  node_details_screen["Place details"]
  node_details_vm["Details state"]
end

subgraph group_place_data["Place data"]
  node_local_data["Sample places<br/>[samplePlaces.ts]"]
  node_react_types["Place types<br/>[aroundme.ts]"]
  node_geo_utils["Geospatial utilities<br/>[GeoUtils.kt]"]
  node_places_repo["Places repository"]
  node_places_api["Places API client<br/>[PlacesApiClient.kt]"]
  node_places_mapper["Place mapper<br/>[PlacesMapper.kt]"]
  node_category_registry["Category registry"]
end

subgraph group_saved_prefs["Saved places and preferences"]
  node_saved_screen["Saved places<br/>[SavedScreen.kt]"]
  node_saved_vm["Saved state<br/>[SavedViewModel.kt]"]
  node_profile_screen["Profile settings<br/>[ProfileScreen.kt]"]
  node_profile_vm["Profile state"]
  node_database[("Local database")]
  node_room_repos["Local repositories"]
end

subgraph group_platform["Platform services"]
  node_location_contract["Location contract"]
  node_android_location["Android location"]
  node_ios_location["iOS location"]
end

node_person(("App user"))

node_person -->|"uses"| node_kmp_app
node_kmp_app -->|"routes to"| node_explore_screen
node_kmp_app -->|"routes to"| node_search_screen
node_kmp_app -->|"routes to"| node_saved_screen
node_kmp_app -->|"routes to"| node_profile_screen
node_kmp_app -->|"routes to"| node_details_screen
node_person -->|"uses"| node_react_entry
node_react_entry -->|"renders"| node_react_app
node_react_app -->|"reads"| node_local_data
node_react_app -->|"uses types"| node_react_types
node_explore_screen -->|"renders"| node_explore_vm
node_search_screen -->|"uses"| node_search_vm
node_details_screen -->|"uses"| node_details_vm
node_saved_screen -->|"uses"| node_saved_vm
node_profile_screen -->|"uses"| node_profile_vm
node_explore_vm -.->|"loads places"| node_places_repo
node_explore_vm -->|"reads location"| node_location_contract
node_android_location -->|"implements"| node_location_contract
node_ios_location -->|"implements"| node_location_contract
node_places_repo -->|"computes distance"| node_geo_utils
node_places_repo -->|"maps results"| node_places_mapper
node_places_repo -->|"gets API types"| node_category_registry
node_places_repo -.->|"requests places"| node_places_api
node_places_mapper -->|"maps categories"| node_category_registry
node_room_repos -.->|"uses database"| node_database
node_explore_vm -.->|"reads saved state"| node_room_repos
node_saved_vm -.->|"uses storage"| node_room_repos
node_profile_vm -.->|"uses preferences"| node_room_repos

click node_kmp_app "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt"
click node_navigation "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/navigation/AroundMeDestination.kt"
click node_react_entry "https://github.com/zahid0162/aroundme/blob/main/src/main.tsx"
click node_react_app "https://github.com/zahid0162/aroundme/blob/main/src/App.tsx"
click node_explore_screen "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreScreen.kt"
click node_explore_vm "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreViewModel.kt"
click node_search_screen "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchScreen.kt"
click node_search_vm "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchViewModel.kt"
click node_details_screen "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsScreen.kt"
click node_details_vm "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsViewModel.kt"
click node_saved_screen "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedScreen.kt"
click node_saved_vm "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedViewModel.kt"
click node_profile_screen "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileScreen.kt"
click node_profile_vm "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileViewModel.kt"
click node_local_data "https://github.com/zahid0162/aroundme/blob/main/src/data/samplePlaces.ts"
click node_react_types "https://github.com/zahid0162/aroundme/blob/main/src/types/aroundme.ts"
click node_geo_utils "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/core/geo/GeoUtils.kt"
click node_places_repo "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt"
click node_places_api "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesApiClient.kt"
click node_places_mapper "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesMapper.kt"
click node_category_registry "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/CategoryRegistry.kt"
click node_database "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/AroundMeDatabase.kt"
click node_room_repos "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/RoomRepositories.kt"
click node_location_contract "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/domain/repository/LocationRepository.kt"
click node_android_location "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/androidMain/kotlin/com/zahid/aroundme/core/platform/AndroidLocationRepository.kt"
click node_ios_location "https://github.com/zahid0162/aroundme/blob/main/composeApp/src/iosMain/kotlin/com/zahid/aroundme/core/platform/IosLocationRepository.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_kmp_app,node_navigation,node_react_entry,node_react_app,node_person toneBlue
class node_explore_screen,node_explore_vm,node_search_screen,node_search_vm,node_details_screen,node_details_vm toneAmber
class node_local_data,node_react_types,node_geo_utils,node_places_repo,node_places_api,node_places_mapper,node_category_registry toneMint
class node_saved_screen,node_saved_vm,node_profile_screen,node_profile_vm,node_database,node_room_repos toneRose
class node_location_contract,node_android_location,node_ios_location toneIndigo
```

## Components

### App entry and navigation

- [Kotlin app shell](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt`
- [Destinations](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/navigation/AroundMeDestination.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/navigation/AroundMeDestination.kt`
- [React entry](https://github.com/zahid0162/aroundme/blob/main/src/main.tsx): `src/main.tsx`
- [React discovery app](https://github.com/zahid0162/aroundme/blob/main/src/App.tsx): `src/App.tsx`

### Explore and search

- [Explore screen](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreScreen.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreScreen.kt`
- [Explore state](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreViewModel.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreViewModel.kt`
- [Search screen](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchScreen.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchScreen.kt`
- [Search state](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchViewModel.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchViewModel.kt`
- [Place details](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsScreen.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsScreen.kt`
- [Details state](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsViewModel.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsViewModel.kt`

### Place data

- [Sample places](https://github.com/zahid0162/aroundme/blob/main/src/data/samplePlaces.ts): `src/data/samplePlaces.ts`
- [Place types](https://github.com/zahid0162/aroundme/blob/main/src/types/aroundme.ts): `src/types/aroundme.ts`
- [Geospatial utilities](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/core/geo/GeoUtils.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/core/geo/GeoUtils.kt`
- [Places repository](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt`
- [Places API client](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesApiClient.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesApiClient.kt`
- [Place mapper](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesMapper.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesMapper.kt`
- [Category registry](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/CategoryRegistry.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/CategoryRegistry.kt`

### Saved places and preferences

- [Saved places](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedScreen.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedScreen.kt`
- [Saved state](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedViewModel.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedViewModel.kt`
- [Profile settings](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileScreen.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileScreen.kt`
- [Profile state](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileViewModel.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileViewModel.kt`
- [Local database](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/AroundMeDatabase.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/AroundMeDatabase.kt`
- [Local repositories](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/RoomRepositories.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/local/RoomRepositories.kt`

### Platform services

- [Location contract](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/commonMain/kotlin/com/zahid/aroundme/domain/repository/LocationRepository.kt): `composeApp/src/commonMain/kotlin/com/zahid/aroundme/domain/repository/LocationRepository.kt`
- [Android location](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/androidMain/kotlin/com/zahid/aroundme/core/platform/AndroidLocationRepository.kt): `composeApp/src/androidMain/kotlin/com/zahid/aroundme/core/platform/AndroidLocationRepository.kt`
- [iOS location](https://github.com/zahid0162/aroundme/blob/main/composeApp/src/iosMain/kotlin/com/zahid/aroundme/core/platform/IosLocationRepository.kt): `composeApp/src/iosMain/kotlin/com/zahid/aroundme/core/platform/IosLocationRepository.kt`

### Other components

- **App user**

## Connections

- App user → Kotlin app shell: uses (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt`)
- Kotlin app shell → Explore screen: routes to (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt`)
- Kotlin app shell → Search screen: routes to (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt`)
- Kotlin app shell → Saved places: routes to (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt`)
- Kotlin app shell → Profile settings: routes to (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt`)
- Kotlin app shell → Place details: routes to (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/App.kt`)
- App user → React entry: uses (evidence: `src/main.tsx`)
- React entry → React discovery app: renders (evidence: `src/main.tsx`)
- React discovery app → Sample places: reads (evidence: `src/App.tsx`)
- React discovery app → Place types: uses types (evidence: `src/App.tsx`)
- Explore screen → Explore state: renders (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreScreen.kt`)
- Search screen → Search state: uses (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/search/SearchScreen.kt`)
- Place details → Details state: uses (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/details/PlaceDetailsScreen.kt`)
- Saved places → Saved state: uses (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/saved/SavedScreen.kt`)
- Profile settings → Profile state: uses (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/profile/ProfileScreen.kt`)
- Explore state → Places repository: loads places
- Explore state → Location contract: reads location (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/feature/explore/ExploreViewModel.kt`)
- Android location → Location contract: implements (evidence: `composeApp/src/androidMain/kotlin/com/zahid/aroundme/core/platform/AndroidLocationRepository.kt`)
- iOS location → Location contract: implements (evidence: `composeApp/src/iosMain/kotlin/com/zahid/aroundme/core/platform/IosLocationRepository.kt`)
- Places repository → Geospatial utilities: computes distance (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt`)
- Places repository → Place mapper: maps results (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt`)
- Places repository → Category registry: gets API types (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesRepositoryImpl.kt`)
- Places repository → Places API client: requests places
- Place mapper → Category registry: maps categories (evidence: `composeApp/src/commonMain/kotlin/com/zahid/aroundme/data/remote/PlacesMapper.kt`)
- Local repositories → Local database: uses database
- Explore state → Local repositories: reads saved state
- Saved state → Local repositories: uses storage
- Profile state → Local repositories: uses preferences
