# loripori/skylab architecture

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

- Interactive diagram: https://gitdiagram.com/loripori/skylab
- Repository: https://github.com/loripori/skylab

## Overview

The available tree contains only a placeholder text file, an HTML entry, a web manifest, and a service worker; there is no README or sampled application source to establish a user workflow. The only supported runtime behavior is the service worker’s same-origin GET network-first cache, with cache fallback. Application features and the service-worker registration point cannot be determined from the evidence provided.

Main entry points: [`sw.js`](https://github.com/loripori/skylab/blob/main/sw.js) (Service worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Offline runtime"]
  node_service_worker["Service worker<br/>[sw.js]"]
  node_cache[("Cache storage")]
end

node_browser(("Browser"))
node_origin["Same-origin server"]

node_browser -->|"dispatches events"| node_service_worker
node_service_worker -->|"writes and matches"| node_cache
node_service_worker -->|"fetches GET"| node_origin

click node_service_worker "https://github.com/loripori/skylab/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_service_worker,node_cache,node_browser toneBlue
class node_origin toneMint
```

## Components

### Offline runtime

- [Service worker](https://github.com/loripori/skylab/blob/main/sw.js): `sw.js`
- **Cache storage**

### Other components

- **Browser**
- **Same-origin server**

## Connections

- Browser → Service worker: dispatches events (evidence: `sw.js`)
- Service worker → Cache storage: writes and matches (evidence: `sw.js`)
- Service worker → Same-origin server: fetches GET (evidence: `sw.js`)
