# web3district/exclusive_realestate architecture

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

- Interactive diagram: https://gitdiagram.com/web3district/exclusive_realestate
- Repository: https://github.com/web3district/exclusive_realestate

## Overview

The repository presents BloxID as a quantum-identity demo, with a Flask terminal workflow for creating identities, listing pioneers, and testing AI resistance. The README also advertises quantum-safe cryptography and W3C-style DIDs, but their implementation modules are not in the supplied tree. A separate Web4City frontend renders Lisbon and embeds an external real-estate demo. Edges for the missing identity-engine internals are omitted; the shown Flask imports establish dependencies, but not their behavior.

Main entry points: [`quantum_terminal_demo.py`](https://github.com/web3district/exclusive_realestate/blob/main/quantum_terminal_demo.py) (Identity API), [`web4city-fresh/src/app/exclusive_realestate/page.tsx`](https://github.com/web3district/exclusive_realestate/blob/main/web4city-fresh/src/app/exclusive_realestate/page.tsx) (Real-estate page), [`web4city-fresh/src/components/OSMScene.tsx`](https://github.com/web3district/exclusive_realestate/blob/main/web4city-fresh/src/components/OSMScene.tsx) (Lisbon scene)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["BloxID identity demo"]
  node_terminal["Terminal UI"]
  node_identity_api["Identity API"]
  node_identity_engine["Identity engine"]
  node_identity_memory[("In-memory identities")]
end

subgraph group_city["Web4City frontend"]
  node_city_scene["Lisbon scene<br/>[OSMScene.tsx]"]
  node_realestate_page["Real-estate page<br/>[page.tsx]"]
end

node_visitor(("Visitor"))
node_demo_site(("Sofia demo site"))

node_visitor -->|"uses"| node_terminal
node_terminal -->|"requests"| node_identity_api
node_identity_api -.->|"creates identities"| node_identity_engine
node_identity_api -->|"stores identities"| node_identity_memory
node_identity_api -->|"lists identities"| node_identity_memory
node_identity_api -.->|"tests authentication"| node_identity_engine
node_visitor -.->|"views"| node_city_scene
node_visitor -.->|"opens"| node_realestate_page
node_realestate_page -->|"embeds"| node_demo_site

click node_terminal "https://github.com/web3district/exclusive_realestate/blob/main/quantum_terminal_demo.py"
click node_identity_api "https://github.com/web3district/exclusive_realestate/blob/main/quantum_terminal_demo.py"
click node_identity_memory "https://github.com/web3district/exclusive_realestate/blob/main/quantum_terminal_demo.py"
click node_city_scene "https://github.com/web3district/exclusive_realestate/blob/main/web4city-fresh/src/components/OSMScene.tsx"
click node_realestate_page "https://github.com/web3district/exclusive_realestate/blob/main/web4city-fresh/src/app/exclusive_realestate/page.tsx"

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_terminal,node_identity_api,node_identity_engine,node_identity_memory toneBlue
class node_city_scene,node_realestate_page toneAmber
class node_visitor,node_demo_site toneIndigo
```

## Components

### BloxID identity demo

- [Terminal UI](https://github.com/web3district/exclusive_realestate/blob/main/quantum_terminal_demo.py): `quantum_terminal_demo.py`
- [Identity API](https://github.com/web3district/exclusive_realestate/blob/main/quantum_terminal_demo.py): `quantum_terminal_demo.py`
- **Identity engine**
- [In-memory identities](https://github.com/web3district/exclusive_realestate/blob/main/quantum_terminal_demo.py): `quantum_terminal_demo.py`

### Web4City frontend

- [Lisbon scene](https://github.com/web3district/exclusive_realestate/blob/main/web4city-fresh/src/components/OSMScene.tsx): `web4city-fresh/src/components/OSMScene.tsx`
- [Real-estate page](https://github.com/web3district/exclusive_realestate/blob/main/web4city-fresh/src/app/exclusive_realestate/page.tsx): `web4city-fresh/src/app/exclusive_realestate/page.tsx`

### Other components

- **Visitor**
- **Sofia demo site**

## Connections

- Visitor → Terminal UI: uses (evidence: `quantum_terminal_demo.py`)
- Terminal UI → Identity API: requests (evidence: `quantum_terminal_demo.py`)
- Identity API → Identity engine: creates identities
- Identity API → In-memory identities: stores identities (evidence: `quantum_terminal_demo.py`)
- Identity API → In-memory identities: lists identities (evidence: `quantum_terminal_demo.py`)
- Identity API → Identity engine: tests authentication
- Visitor → Lisbon scene: views
- Visitor → Real-estate page: opens
- Real-estate page → Sofia demo site: embeds (evidence: `web4city-fresh/src/app/exclusive_realestate/page.tsx`)
