# kema99/office-booking architecture

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

- Interactive diagram: https://gitdiagram.com/kema99/office-booking
- Repository: https://github.com/kema99/office-booking

## Overview

Office Booking is a public website presenting application offers and a blog. Visitors can browse featured or paginated posts, search titles, open an article, and follow related-post links; the landing-page contact form sends submissions to an external service. Blog data is fetched from JSON and rendered into page content. The excerpts establish these blog calls and the contact submission; connections among unsampled landing-page content and assets are not inferred.

Main entry points: [`Blog/Json/GenericMethods/_js.js`](https://github.com/kema99/office-booking/blob/main/Blog/Json/GenericMethods/_js.js) (JSON loader), [`Blog/GenericMethods/_js.js`](https://github.com/kema99/office-booking/blob/main/Blog/GenericMethods/_js.js) (Blog rendering), [`Blog/Home/_js.js`](https://github.com/kema99/office-booking/blob/main/Blog/Home/_js.js) (Blog home), [`Blog/Posts/AllPosts/_js.js`](https://github.com/kema99/office-booking/blob/main/Blog/Posts/AllPosts/_js.js) (Post listing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public site"]
  node_landing["Offers landing<br/>[index.html]"]
  node_contact["Contact submission<br/>[_js.js]"]
  node_site_assets["Site assets"]
end

subgraph group_blog["Blog experience"]
  node_blog_home["Blog home<br/>[_js.js]"]
  node_all_posts["Post listing<br/>[_js.js]"]
  node_coworking["Coworking article<br/>[_js.js]"]
  node_hotdesking["Hot-desking article<br/>[_js.js]"]
end

subgraph group_content["Blog content"]
  node_posts_data["Post records<br/>[_json.json]"]
  node_sections_data["Article sections<br/>[_json.json]"]
end

subgraph group_shared["Shared runtime"]
  node_post_renderer["Blog rendering<br/>[_js.js]"]
  node_json_loader["JSON loader<br/>[_js.js]"]
end

node_visitor(("Visitor"))
node_contact_service["Form endpoint"]

node_visitor -.->|"visits"| node_landing
node_visitor -.->|"browses"| node_blog_home
node_visitor -.->|"submits form"| node_contact
node_contact -->|"posts form"| node_contact_service
node_blog_home -->|"loads posts"| node_json_loader
node_blog_home -->|"renders featured"| node_post_renderer
node_all_posts -->|"loads posts"| node_json_loader
node_all_posts -->|"renders listings"| node_post_renderer
node_coworking -->|"loads article"| node_post_renderer
node_hotdesking -->|"loads article"| node_post_renderer
node_post_renderer -->|"loads article data"| node_json_loader
node_json_loader -->|"fetches"| node_posts_data
node_json_loader -->|"fetches"| node_sections_data

click node_landing "https://github.com/kema99/office-booking/blob/main/index.html"
click node_contact "https://github.com/kema99/office-booking/blob/main/Home/_js.js"
click node_site_assets "https://github.com/kema99/office-booking/tree/main/Resources"
click node_blog_home "https://github.com/kema99/office-booking/blob/main/Blog/Home/_js.js"
click node_all_posts "https://github.com/kema99/office-booking/blob/main/Blog/Posts/AllPosts/_js.js"
click node_coworking "https://github.com/kema99/office-booking/blob/main/Blog/Posts/CoworkingSpace/_js.js"
click node_hotdesking "https://github.com/kema99/office-booking/blob/main/Blog/Posts/HotDesking/_js.js"
click node_post_renderer "https://github.com/kema99/office-booking/blob/main/Blog/GenericMethods/_js.js"
click node_json_loader "https://github.com/kema99/office-booking/blob/main/Blog/Json/GenericMethods/_js.js"
click node_posts_data "https://github.com/kema99/office-booking/blob/main/Blog/Json/Posts/_json.json"
click node_sections_data "https://github.com/kema99/office-booking/blob/main/Blog/Json/Sections/_json.json"

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_landing,node_contact,node_site_assets toneBlue
class node_blog_home,node_all_posts,node_coworking,node_hotdesking toneAmber
class node_posts_data,node_sections_data toneMint
class node_post_renderer,node_json_loader toneRose
class node_visitor,node_contact_service toneIndigo
```

## Components

### Public site

- [Offers landing](https://github.com/kema99/office-booking/blob/main/index.html): `index.html`
- [Contact submission](https://github.com/kema99/office-booking/blob/main/Home/_js.js): `Home/_js.js`
- [Site assets](https://github.com/kema99/office-booking/tree/main/Resources): `Resources`

### Blog experience

- [Blog home](https://github.com/kema99/office-booking/blob/main/Blog/Home/_js.js): `Blog/Home/_js.js`
- [Post listing](https://github.com/kema99/office-booking/blob/main/Blog/Posts/AllPosts/_js.js): `Blog/Posts/AllPosts/_js.js`
- [Coworking article](https://github.com/kema99/office-booking/blob/main/Blog/Posts/CoworkingSpace/_js.js): `Blog/Posts/CoworkingSpace/_js.js`
- [Hot-desking article](https://github.com/kema99/office-booking/blob/main/Blog/Posts/HotDesking/_js.js): `Blog/Posts/HotDesking/_js.js`

### Blog content

- [Post records](https://github.com/kema99/office-booking/blob/main/Blog/Json/Posts/_json.json): `Blog/Json/Posts/_json.json`
- [Article sections](https://github.com/kema99/office-booking/blob/main/Blog/Json/Sections/_json.json): `Blog/Json/Sections/_json.json`

### Shared runtime

- [Blog rendering](https://github.com/kema99/office-booking/blob/main/Blog/GenericMethods/_js.js): `Blog/GenericMethods/_js.js`
- [JSON loader](https://github.com/kema99/office-booking/blob/main/Blog/Json/GenericMethods/_js.js): `Blog/Json/GenericMethods/_js.js`

### Other components

- **Visitor**
- **Form endpoint**

## Connections

- Visitor → Offers landing: visits (evidence: `README.md`)
- Visitor → Blog home: browses (evidence: `README.md`)
- Visitor → Contact submission: submits form (evidence: `README.md`)
- Contact submission → Form endpoint: posts form (evidence: `Home/_js.js`)
- Blog home → JSON loader: loads posts (evidence: `Blog/Home/_js.js`)
- Blog home → Blog rendering: renders featured (evidence: `Blog/Home/_js.js`)
- Post listing → JSON loader: loads posts (evidence: `Blog/Posts/AllPosts/_js.js`)
- Post listing → Blog rendering: renders listings (evidence: `Blog/Posts/AllPosts/_js.js`)
- Coworking article → Blog rendering: loads article (evidence: `Blog/Posts/CoworkingSpace/_js.js`)
- Hot-desking article → Blog rendering: loads article (evidence: `Blog/Posts/HotDesking/_js.js`)
- Blog rendering → JSON loader: loads article data (evidence: `Blog/GenericMethods/_js.js`)
- JSON loader → Post records: fetches (evidence: `Blog/Json/GenericMethods/_js.js`)
- JSON loader → Article sections: fetches (evidence: `Blog/Json/GenericMethods/_js.js`)
