# sitatec/taluxi-open-source architecture

> Architecture diagram of the GitHub repository sitatec/taluxi-open-source, 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/sitatec/taluxi-open-source
- Repository: https://github.com/sitatec/taluxi-open-source

## Overview

Taluxi is a modular taxi-finding system: passengers search for nearby drivers, contact them by voice to agree on a fare, then track the driver during the ride. The README documents the package and service workflow; sampled source supports the location service’s HTTP routing and in-memory repository, plus the Android driver call UI. Most Flutter app and package implementations were not excerpted, so their internal links are limited to documented relationships; the connection watcher’s current implementation is also not established by the excerpts.

Main entry points: [`taluxi_driver/lib`](https://github.com/sitatec/taluxi-open-source/tree/main/taluxi_driver/lib) (Driver app), [`taluxi_passenger/lib`](https://github.com/sitatec/taluxi-open-source/tree/main/taluxi_passenger/lib) (Passenger app), [`taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/IncomingCallActivity.java`](https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/IncomingCallActivity.java) (Incoming call UI), [`backend/driver_location_manager/src/server/controllers.ts`](https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/server/controllers.ts) (Location handlers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Mobile apps"]
  node_passenger["Passenger app"]
  node_driver["Driver app"]
  node_call_ui["Incoming call UI"]
  node_answered_ui["Answered call UI"]
  node_fullscreen["Full-screen base"]
  node_hangup["Hang-up receiver"]
  node_notification["Call notification"]
end

subgraph group_location["Location services"]
  node_location_api["Location HTTP API<br/>[router.ts]"]
  node_location_handlers["Location handlers<br/>[controllers.ts]"]
  node_location_logic["Closest-driver search<br/>[utils.ts]"]
  node_coordinates[("Coordinates repository")]
  node_connection_watcher["Connection watcher<br/>[index.ts]"]
  node_realtime["Real-time location"]
end

subgraph group_identity["Identity"]
  node_user_manager["User manager"]
end

subgraph group_communication["Communication"]
  node_network["Network communication"]
end

subgraph group_shared["Shared UI"]
  node_common["Common UI"]
end

node_passenger_actor(("Passenger"))
node_driver_actor(("Driver"))
node_firebase[("Firebase services")]
node_agora["Agora voice"]
node_onesignal["OneSignal"]

node_passenger_actor -->|"searches"| node_passenger
node_driver_actor -->|"uses"| node_driver
node_passenger -->|"authenticates via"| node_user_manager
node_driver -->|"authenticates via"| node_user_manager
node_passenger -->|"requests drivers"| node_location_api
node_location_api -->|"routes to"| node_location_handlers
node_location_handlers -->|"reads and writes"| node_coordinates
node_location_handlers -->|"ranks candidates"| node_location_logic
node_location_api -->|"routes requests"| node_location_handlers
node_driver -.->|"reports connection"| node_connection_watcher
node_passenger -->|"calls driver via"| node_network
node_driver -->|"handles calls via"| node_network
node_network -.->|"uses voice service"| node_agora
node_network -.->|"uses notifications"| node_onesignal
node_passenger -->|"tracks driver via"| node_realtime
node_driver -->|"shares position via"| node_realtime
node_driver -.->|"receives call in"| node_call_ui
node_call_ui -->|"starts"| node_answered_ui
node_call_ui -->|"broadcasts hang-up"| node_hangup
node_call_ui -->|"extends"| node_fullscreen
node_answered_ui -->|"extends"| node_fullscreen
node_notification -->|"launches"| node_call_ui
node_notification -->|"launches"| node_answered_ui
node_notification -->|"registers action"| node_hangup
node_passenger -.->|"uses shared UI"| node_common
node_driver -.->|"uses shared UI"| node_common
node_connection_watcher -->|"runs on"| node_firebase
node_user_manager -->|"uses services"| node_firebase

click node_passenger "https://github.com/sitatec/taluxi-open-source/tree/main/taluxi_passenger/lib"
click node_driver "https://github.com/sitatec/taluxi-open-source/tree/main/taluxi_driver/lib"
click node_call_ui "https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/IncomingCallActivity.java"
click node_answered_ui "https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/AnsweredCallActivity.java"
click node_fullscreen "https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/FullScreenActivity.java"
click node_hangup "https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/broadcast_receivers/HangUpReceiver.java"
click node_notification "https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/utils/IncomingCallNotificationBuilder.java"
click node_location_api "https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/server/router.ts"
click node_location_handlers "https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/server/controllers.ts"
click node_location_logic "https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/server/utils.ts"
click node_coordinates "https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/data/inMemoryCoordinatesRepository.ts"
click node_connection_watcher "https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_connection_watcher/functions/src/index.ts"
click node_user_manager "https://github.com/sitatec/taluxi-open-source/tree/main/packages/production/user_manager/lib/src"
click node_network "https://github.com/sitatec/taluxi-open-source/tree/main/packages/production/network_communication/lib/src"
click node_realtime "https://github.com/sitatec/taluxi-open-source/tree/main/packages/production/real_time_location/lib/src"
click node_common "https://github.com/sitatec/taluxi-open-source/tree/main/packages/production/taluxi_common/lib/src"

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_passenger,node_driver,node_call_ui,node_answered_ui,node_fullscreen,node_hangup,node_notification toneBlue
class node_location_api,node_location_handlers,node_location_logic,node_coordinates,node_connection_watcher,node_realtime,node_firebase toneAmber
class node_user_manager toneMint
class node_network toneRose
class node_common,node_passenger_actor,node_driver_actor,node_agora,node_onesignal toneIndigo
```

## Components

### Mobile apps

- [Passenger app](https://github.com/sitatec/taluxi-open-source/tree/main/taluxi_passenger/lib): `taluxi_passenger/lib`
- [Driver app](https://github.com/sitatec/taluxi-open-source/tree/main/taluxi_driver/lib): `taluxi_driver/lib`
- [Incoming call UI](https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/IncomingCallActivity.java): `taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/IncomingCallActivity.java`
- [Answered call UI](https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/AnsweredCallActivity.java): `taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/AnsweredCallActivity.java`
- [Full-screen base](https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/FullScreenActivity.java): `taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/FullScreenActivity.java`
- [Hang-up receiver](https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/broadcast_receivers/HangUpReceiver.java): `taluxi_driver/android/app/src/main/java/com/taluxi/driver/broadcast_receivers/HangUpReceiver.java`
- [Call notification](https://github.com/sitatec/taluxi-open-source/blob/main/taluxi_driver/android/app/src/main/java/com/taluxi/driver/utils/IncomingCallNotificationBuilder.java): `taluxi_driver/android/app/src/main/java/com/taluxi/driver/utils/IncomingCallNotificationBuilder.java`

### Location services

- [Location HTTP API](https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/server/router.ts): `backend/driver_location_manager/src/server/router.ts`
- [Location handlers](https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/server/controllers.ts): `backend/driver_location_manager/src/server/controllers.ts`
- [Closest-driver search](https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/server/utils.ts): `backend/driver_location_manager/src/server/utils.ts`
- [Coordinates repository](https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_location_manager/src/data/inMemoryCoordinatesRepository.ts): `backend/driver_location_manager/src/data/inMemoryCoordinatesRepository.ts`
- [Connection watcher](https://github.com/sitatec/taluxi-open-source/blob/main/backend/driver_connection_watcher/functions/src/index.ts): `backend/driver_connection_watcher/functions/src/index.ts`
- [Real-time location](https://github.com/sitatec/taluxi-open-source/tree/main/packages/production/real_time_location/lib/src): `packages/production/real_time_location/lib/src`

### Identity

- [User manager](https://github.com/sitatec/taluxi-open-source/tree/main/packages/production/user_manager/lib/src): `packages/production/user_manager/lib/src`

### Communication

- [Network communication](https://github.com/sitatec/taluxi-open-source/tree/main/packages/production/network_communication/lib/src): `packages/production/network_communication/lib/src`

### Shared UI

- [Common UI](https://github.com/sitatec/taluxi-open-source/tree/main/packages/production/taluxi_common/lib/src): `packages/production/taluxi_common/lib/src`

### Other components

- **Passenger**
- **Driver**
- **Firebase services**
- **Agora voice**
- **OneSignal**

## Connections

- Passenger → Passenger app: searches (evidence: `README.md`)
- Driver → Driver app: uses (evidence: `README.md`)
- Passenger app → User manager: authenticates via (evidence: `README.md`)
- Driver app → User manager: authenticates via (evidence: `README.md`)
- Passenger app → Location HTTP API: requests drivers (evidence: `README.md`)
- Location HTTP API → Location handlers: routes to (evidence: `backend/driver_location_manager/src/server/router.ts`)
- Location handlers → Coordinates repository: reads and writes (evidence: `backend/driver_location_manager/src/server/controllers.ts`)
- Location handlers → Closest-driver search: ranks candidates (evidence: `backend/driver_location_manager/src/server/controllers.ts`)
- Location HTTP API → Location handlers: routes requests (evidence: `backend/driver_location_manager/src/server/router.ts`)
- Driver app → Connection watcher: reports connection
- Passenger app → Network communication: calls driver via (evidence: `README.md`)
- Driver app → Network communication: handles calls via (evidence: `README.md`)
- Network communication → Agora voice: uses voice service
- Network communication → OneSignal: uses notifications
- Passenger app → Real-time location: tracks driver via (evidence: `README.md`)
- Driver app → Real-time location: shares position via (evidence: `README.md`)
- Driver app → Incoming call UI: receives call in
- Incoming call UI → Answered call UI: starts (evidence: `taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/IncomingCallActivity.java`)
- Incoming call UI → Hang-up receiver: broadcasts hang-up (evidence: `taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/IncomingCallActivity.java`)
- Incoming call UI → Full-screen base: extends (evidence: `taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/IncomingCallActivity.java`)
- Answered call UI → Full-screen base: extends (evidence: `taluxi_driver/android/app/src/main/java/com/taluxi/driver/activities/AnsweredCallActivity.java`)
- Call notification → Incoming call UI: launches (evidence: `taluxi_driver/android/app/src/main/java/com/taluxi/driver/utils/IncomingCallNotificationBuilder.java`)
- Call notification → Answered call UI: launches (evidence: `taluxi_driver/android/app/src/main/java/com/taluxi/driver/utils/IncomingCallNotificationBuilder.java`)
- Call notification → Hang-up receiver: registers action (evidence: `taluxi_driver/android/app/src/main/java/com/taluxi/driver/utils/IncomingCallNotificationBuilder.java`)
- Passenger app → Common UI: uses shared UI
- Driver app → Common UI: uses shared UI
- Connection watcher → Firebase services: runs on (evidence: `README.md`)
- User manager → Firebase services: uses services (evidence: `README.md`)
