# 420doma/urbex architecture

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

- Interactive diagram: https://gitdiagram.com/420doma/urbex
- Repository: https://github.com/420doma/urbex

## Overview

The repository appears to be a small web application, but the README provides only its published URL, so its user-facing purpose and page behavior cannot be established from the available evidence. The sampled service worker activates immediately, claims control of clients, and passes intercepted requests to the network without caching. The HTML and manifest are present in the tree, but their contents and their connections to the worker were not sampled.

Main entry points: [`sw.js`](https://github.com/420doma/urbex/blob/main/sw.js) (Service worker), [`index.html`](https://github.com/420doma/urbex/blob/main/index.html) (Web page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_page["Web page<br/>[index.html]"]
  node_manifest["App manifest<br/>[manifest.json]"]
  node_worker["Service worker<br/>[sw.js]"]
end

node_visitor(("Browser user"))
node_network(("Network"))

node_visitor -.->|"opens"| node_page
node_worker -->|"forwards requests"| node_network
node_visitor -->|"triggers intercepted requests"| node_worker

click node_page "https://github.com/420doma/urbex/blob/main/index.html"
click node_manifest "https://github.com/420doma/urbex/blob/main/manifest.json"
click node_worker "https://github.com/420doma/urbex/blob/main/sw.js"

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_page,node_manifest,node_worker,node_visitor toneBlue
class node_network toneIndigo
```

## Components

### Web application

- [Web page](https://github.com/420doma/urbex/blob/main/index.html): `index.html`
- [App manifest](https://github.com/420doma/urbex/blob/main/manifest.json): `manifest.json`
- [Service worker](https://github.com/420doma/urbex/blob/main/sw.js): `sw.js`

### Other components

- **Browser user**
- **Network**

## Connections

- Browser user → Web page: opens
- Service worker → Network: forwards requests (evidence: `sw.js`)
- Browser user → Service worker: triggers intercepted requests (evidence: `sw.js`)
