# tharageshwaran-sathyamoorthy/10xconstruction architecture

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

- Interactive diagram: https://gitdiagram.com/tharageshwaran-sathyamoorthy/10xconstruction
- Repository: https://github.com/tharageshwaran-sathyamoorthy/10xconstruction

## Overview

The product is a web/API system for generating obstacle-aware wall-finishing coverage trajectories. Its main workflow accepts wall, tool, and obstacle inputs, validates them, plans coverage and transitions, persists the trajectory, and returns it; separate endpoints retrieve trajectory history and playback data. The sampled code supports the API, planner, persistence, and web entry point. The README establishes the interface and product capabilities, but the UI implementation itself was not sampled, so its detailed interactions are not mapped.

Main entry points: [`app/api/routes.py`](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/api/routes.py) (Planning and retrieval API), [`app/main.py`](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/main.py) (HTTP service), [`app/database.py`](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/database.py) (Database access), [`static/index.html`](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/static/index.html) (Web interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_web_ui["Web interface<br/>[index.html]"]
end

subgraph group_api["API"]
  node_service["HTTP service<br/>[main.py]"]
  node_planning_api["Planning and retrieval API<br/>[routes.py]"]
  node_request_schemas["Request and response schemas<br/>[schemas.py]"]
end

subgraph group_planning["Path planning"]
  node_planner["Coverage planner<br/>[planner.py]"]
end

subgraph group_persistence["Persistence"]
  node_orm_models["Wall and trajectory models<br/>[models.py]"]
  node_database_access["Database access<br/>[database.py]"]
  node_sqlite[("SQLite database<br/>[database.py]")]
end

node_operator(("Operator"))

node_operator -->|"opens"| node_web_ui
node_operator -->|"uses API"| node_service
node_service -->|"serves"| node_web_ui
node_service -->|"routes requests"| node_planning_api
node_service -->|"initializes"| node_database_access
node_planning_api -->|"validates and shapes"| node_request_schemas
node_planning_api -->|"generates paths"| node_planner
node_planning_api -->|"creates and queries"| node_orm_models
node_planning_api -->|"uses sessions"| node_database_access
node_database_access -->|"creates tables"| node_orm_models
node_database_access -->|"connects"| node_sqlite

click node_web_ui "https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/static/index.html"
click node_service "https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/main.py"
click node_planning_api "https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/api/routes.py"
click node_request_schemas "https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/schemas.py"
click node_planner "https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/planner.py"
click node_orm_models "https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/models.py"
click node_database_access "https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/database.py"
click node_sqlite "https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/database.py"

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_web_ui toneBlue
class node_service,node_planning_api,node_request_schemas toneAmber
class node_planner toneMint
class node_orm_models,node_database_access,node_sqlite toneRose
class node_operator toneIndigo
```

## Components

### Web interface

- [Web interface](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/static/index.html): `static/index.html`

### API

- [HTTP service](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/main.py): `app/main.py`
- [Planning and retrieval API](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/api/routes.py): `app/api/routes.py`
- [Request and response schemas](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/schemas.py): `app/schemas.py`

### Path planning

- [Coverage planner](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/planner.py): `app/planner.py`

### Persistence

- [Wall and trajectory models](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/models.py): `app/models.py`
- [Database access](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/database.py): `app/database.py`
- [SQLite database](https://github.com/tharageshwaran-sathyamoorthy/10xconstruction/blob/main/app/database.py): `app/database.py`

### Other components

- **Operator**

## Connections

- Operator → Web interface: opens (evidence: `README.md`)
- Operator → HTTP service: uses API (evidence: `README.md`)
- HTTP service → Web interface: serves (evidence: `app/main.py`)
- HTTP service → Planning and retrieval API: routes requests (evidence: `app/main.py`)
- HTTP service → Database access: initializes (evidence: `app/main.py`)
- Planning and retrieval API → Request and response schemas: validates and shapes (evidence: `app/api/routes.py`)
- Planning and retrieval API → Coverage planner: generates paths (evidence: `app/api/routes.py`)
- Planning and retrieval API → Wall and trajectory models: creates and queries (evidence: `app/api/routes.py`)
- Planning and retrieval API → Database access: uses sessions (evidence: `app/api/routes.py`)
- Database access → Wall and trajectory models: creates tables (evidence: `app/database.py`)
- Database access → SQLite database: connects (evidence: `app/database.py`)
