# safejakie/chatgo_flutter architecture

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

- Interactive diagram: https://gitdiagram.com/safejakie/chatgo_flutter
- Repository: https://github.com/safejakie/chatgo_flutter

## Overview

Chat&Go is a Flutter conversational assistant for finding and contacting local providers and businesses in Abidjan. Its documented user flow is: a user sends a natural-language message in the chat, the app exchanges it with a REST backend, and the interface displays the response and provider cards. The app also keeps discussion history locally and offers contact and website actions. Dart implementation details were not sampled, so the graph relies on the README for these relationships and uses only the documented source paths.

Main entry points: [`lib/main.dart`](https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.dart) (Chat interface), [`lib/database.dart`](https://github.com/safejakie/chatgo_flutter/blob/main/lib/database.dart) (SQLite store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Conversation"]
  node_chat_interface["Chat interface<br/>[main.dart]"]
  node_rest_backend{{"REST backend"}}
end

subgraph group_provider_results["Provider Results"]
  node_provider_cards["Provider cards<br/>[main.dart]"]
end

subgraph group_local_data["Local Data"]
  node_history["Discussion history<br/>[main.dart]"]
  node_sqlite_store[("SQLite store<br/>[database.dart]")]
end

subgraph group_contact_actions["Contact Actions"]
  node_contact_links["Contact and web links<br/>[main.dart]"]
end

node_user(("User"))
node_external_destinations{{"WhatsApp, phone, web"}}

node_user -->|"sends message"| node_chat_interface
node_chat_interface -->|"sends request"| node_rest_backend
node_rest_backend -->|"returns response"| node_chat_interface
node_chat_interface -->|"displays results"| node_provider_cards
node_chat_interface -->|"saves discussion"| node_history
node_history -->|"stores locally"| node_sqlite_store
node_provider_cards -->|"offers actions"| node_contact_links
node_contact_links -->|"opens links"| node_external_destinations

click node_chat_interface "https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.dart"
click node_provider_cards "https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.dart"
click node_history "https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.dart"
click node_sqlite_store "https://github.com/safejakie/chatgo_flutter/blob/main/lib/database.dart"
click node_contact_links "https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.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_chat_interface,node_rest_backend,node_user toneBlue
class node_provider_cards toneAmber
class node_history,node_sqlite_store toneMint
class node_contact_links toneRose
class node_external_destinations toneIndigo
```

## Components

### Conversation

- [Chat interface](https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.dart): `lib/main.dart`
- **REST backend**

### Provider Results

- [Provider cards](https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.dart): `lib/main.dart`

### Local Data

- [Discussion history](https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.dart): `lib/main.dart`
- [SQLite store](https://github.com/safejakie/chatgo_flutter/blob/main/lib/database.dart): `lib/database.dart`

### Contact Actions

- [Contact and web links](https://github.com/safejakie/chatgo_flutter/blob/main/lib/main.dart): `lib/main.dart`

### Other components

- **User**
- **WhatsApp, phone, web**

## Connections

- User → Chat interface: sends message (evidence: `README.md`)
- Chat interface → REST backend: sends request (evidence: `README.md`)
- REST backend → Chat interface: returns response (evidence: `README.md`)
- Chat interface → Provider cards: displays results (evidence: `README.md`)
- Chat interface → Discussion history: saves discussion (evidence: `README.md`)
- Discussion history → SQLite store: stores locally (evidence: `README.md`)
- Provider cards → Contact and web links: offers actions (evidence: `README.md`)
- Contact and web links → WhatsApp, phone, web: opens links (evidence: `README.md`)
