# rohithbhagath/one-tap architecture

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

## Overview

Household Services Marketplace is a Flask application for matching customers with household-service providers. The documented workflow spans account authentication, provider profiles and service bookings, with user, provider and admin dashboards supporting the marketplace. The README also describes statistics and real-time chat support; the sampled JavaScript shows chat requests and provider-availability updates sent to backend routes. The backend source was not sampled, so route-to-domain behavior beyond those documented or visible requests is left unasserted.

Main entry points: [`app.py`](https://github.com/rohithbhagath/one-tap/blob/main/app.py) (Flask application), [`templates/admin_dashboard.html`](https://github.com/rohithbhagath/one-tap/blob/main/templates/admin_dashboard.html) (Admin dashboard), [`templates/login.html`](https://github.com/rohithbhagath/one-tap/blob/main/templates/login.html) (Login page), [`templates/register.html`](https://github.com/rohithbhagath/one-tap/blob/main/templates/register.html) (Registration page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_marketplace["Marketplace"]
  node_webapp["Flask application<br/>[app.py]"]
  node_provider_profiles["Provider profiles<br/>[app.py]"]
  node_service_bookings["Service bookings<br/>[app.py]"]
  node_home_page["Marketplace homepage<br/>[index.html]"]
end

subgraph group_accounts["Accounts and dashboards"]
  node_login["Authentication<br/>[app.py]"]
  node_user_dashboard["User dashboard"]
  node_provider_dashboard["Provider dashboard"]
  node_admin_dashboard["Admin dashboard"]
  node_admin_statistics["Admin statistics<br/>[app.py]"]
  node_login_page["Login page<br/>[login.html]"]
  node_registration_page["Registration page<br/>[register.html]"]
end

subgraph group_support["Support and interaction"]
  node_chat_ui["Chat interface<br/>[main.js]"]
  node_chat_service["Chat support endpoint<br/>[app.py]"]
  node_availability_ui["Availability control<br/>[main.js]"]
  node_availability_update["Availability update<br/>[app.py]"]
end

subgraph group_persistence["Application data"]
  node_marketplace_db[("SQLite database")]
end

node_customer(("Customer"))
node_provider(("Service provider"))
node_admin(("Administrator"))

node_customer -.->|"uses marketplace"| node_webapp
node_provider -.->|"uses marketplace"| node_webapp
node_admin -.->|"uses marketplace"| node_webapp
node_webapp -->|"uses SQLite"| node_marketplace_db
node_customer -.->|"signs in"| node_login_page
node_customer -.->|"registers"| node_registration_page
node_login_page -.->|"authenticates via"| node_login
node_registration_page -.->|"registers via"| node_login
node_customer -.->|"browses services"| node_home_page
node_webapp -->|"supports profiles"| node_provider_profiles
node_webapp -->|"supports bookings"| node_service_bookings
node_customer -.->|"manages services"| node_user_dashboard
node_provider -.->|"manages account"| node_provider_dashboard
node_admin -.->|"manages platform"| node_admin_dashboard
node_admin_dashboard -.->|"shows statistics"| node_admin_statistics
node_chat_ui -->|"posts messages"| node_chat_service
node_availability_ui -->|"posts changes"| node_availability_update

click node_webapp "https://github.com/rohithbhagath/one-tap/blob/main/app.py"
click node_provider_profiles "https://github.com/rohithbhagath/one-tap/blob/main/app.py"
click node_service_bookings "https://github.com/rohithbhagath/one-tap/blob/main/app.py"
click node_login "https://github.com/rohithbhagath/one-tap/blob/main/app.py"
click node_user_dashboard "https://github.com/rohithbhagath/one-tap/blob/main/templates/user_dashboard.html"
click node_provider_dashboard "https://github.com/rohithbhagath/one-tap/blob/main/templates/provider_dashboard.html"
click node_admin_dashboard "https://github.com/rohithbhagath/one-tap/blob/main/templates/admin_dashboard.html"
click node_admin_statistics "https://github.com/rohithbhagath/one-tap/blob/main/app.py"
click node_chat_ui "https://github.com/rohithbhagath/one-tap/blob/main/static/js/main.js"
click node_chat_service "https://github.com/rohithbhagath/one-tap/blob/main/app.py"
click node_availability_ui "https://github.com/rohithbhagath/one-tap/blob/main/static/js/main.js"
click node_availability_update "https://github.com/rohithbhagath/one-tap/blob/main/app.py"
click node_marketplace_db "https://github.com/rohithbhagath/one-tap/blob/main/household_services.db"
click node_home_page "https://github.com/rohithbhagath/one-tap/blob/main/templates/index.html"
click node_login_page "https://github.com/rohithbhagath/one-tap/blob/main/templates/login.html"
click node_registration_page "https://github.com/rohithbhagath/one-tap/blob/main/templates/register.html"

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_webapp,node_provider_profiles,node_service_bookings,node_home_page toneBlue
class node_login,node_user_dashboard,node_provider_dashboard,node_admin_dashboard,node_admin_statistics,node_login_page,node_registration_page toneAmber
class node_chat_ui,node_chat_service,node_availability_ui,node_availability_update toneMint
class node_marketplace_db toneRose
class node_customer,node_provider,node_admin toneIndigo
```

## Components

### Marketplace

- [Flask application](https://github.com/rohithbhagath/one-tap/blob/main/app.py): `app.py`
- [Provider profiles](https://github.com/rohithbhagath/one-tap/blob/main/app.py): `app.py`
- [Service bookings](https://github.com/rohithbhagath/one-tap/blob/main/app.py): `app.py`
- [Marketplace homepage](https://github.com/rohithbhagath/one-tap/blob/main/templates/index.html): `templates/index.html`

### Accounts and dashboards

- [Authentication](https://github.com/rohithbhagath/one-tap/blob/main/app.py): `app.py`
- [User dashboard](https://github.com/rohithbhagath/one-tap/blob/main/templates/user_dashboard.html): `templates/user_dashboard.html`
- [Provider dashboard](https://github.com/rohithbhagath/one-tap/blob/main/templates/provider_dashboard.html): `templates/provider_dashboard.html`
- [Admin dashboard](https://github.com/rohithbhagath/one-tap/blob/main/templates/admin_dashboard.html): `templates/admin_dashboard.html`
- [Admin statistics](https://github.com/rohithbhagath/one-tap/blob/main/app.py): `app.py`
- [Login page](https://github.com/rohithbhagath/one-tap/blob/main/templates/login.html): `templates/login.html`
- [Registration page](https://github.com/rohithbhagath/one-tap/blob/main/templates/register.html): `templates/register.html`

### Support and interaction

- [Chat interface](https://github.com/rohithbhagath/one-tap/blob/main/static/js/main.js): `static/js/main.js`
- [Chat support endpoint](https://github.com/rohithbhagath/one-tap/blob/main/app.py): `app.py`
- [Availability control](https://github.com/rohithbhagath/one-tap/blob/main/static/js/main.js): `static/js/main.js`
- [Availability update](https://github.com/rohithbhagath/one-tap/blob/main/app.py): `app.py`

### Application data

- [SQLite database](https://github.com/rohithbhagath/one-tap/blob/main/household_services.db): `household_services.db`

### Other components

- **Customer**
- **Service provider**
- **Administrator**

## Connections

- Customer → Flask application: uses marketplace
- Service provider → Flask application: uses marketplace
- Administrator → Flask application: uses marketplace
- Flask application → SQLite database: uses SQLite (evidence: `README.md`)
- Customer → Login page: signs in
- Customer → Registration page: registers
- Login page → Authentication: authenticates via
- Registration page → Authentication: registers via
- Customer → Marketplace homepage: browses services
- Flask application → Provider profiles: supports profiles (evidence: `README.md`)
- Flask application → Service bookings: supports bookings (evidence: `README.md`)
- Customer → User dashboard: manages services
- Service provider → Provider dashboard: manages account
- Administrator → Admin dashboard: manages platform
- Admin dashboard → Admin statistics: shows statistics
- Chat interface → Chat support endpoint: posts messages (evidence: `static/js/main.js`)
- Availability control → Availability update: posts changes (evidence: `static/js/main.js`)
